Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Idée : gérer titres et modif commonPostGetAttributes #17

Open
AlexisMelo opened this issue Dec 14, 2020 · 0 comments
Open

Idée : gérer titres et modif commonPostGetAttributes #17

AlexisMelo opened this issue Dec 14, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@AlexisMelo
Copy link
Member

Pour chaque Controller qui a besoin d'avoir des informations communes entre doPost et doGet j'utilise une méthode commonPostGetAttributes

pb : c'est copié collé et adapté pour chaque truc

solution :
commonPostGetAttributes -> déplacer dans controlerServlet, le faire appeller un truc style request.setAttribute(requete, this.getTitle())
ajouter une fonction getTitle() abstraite à redefinir dans les servlet
faire que part défaut doPost et doGet appellent commonPostGetAttributes, comme ça on peut les enlever des classes filles

@AlexisMelo AlexisMelo added the enhancement New feature or request label Dec 14, 2020
@AlexisMelo AlexisMelo assigned AlexisMelo and unassigned AlexisMelo Dec 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant