This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I have user login and registration pages set up right now, and a loginSuccess page. The user goes to the login page first of course, and then hits "register". If registration is successful (condition is username and password being added to database) I want the user sent back to the login page, with a new message saying something like "feel free to login 'newUserName'" I have this all done accept for the message at the top of the page saying "login" or whatever it will say
What is the best way to go about this? I was trying to use a request attribute, but since the attribute is null when you first get to the login page, there are compile errors (I guess you cannot do request.setAttribute within the jsp page?). I would be willing to set this attribute to a default value, like "Please login" but I have not been able to figure out how (guessing in the faces-config file).
Or I would also like to know if there is simply a better way to handle this.
edit - doubt it is needed, but here is the simple login page I am wanting to put the dynamic message on:
True wisdom is in knowing you know nothing - Socrates