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 want to learn how to tell the succes and error events in ajax to show messages according to a java value.
My boolean value will tell me if the user is ok to login or not.This is my server side loginForm.jsp
Any help would be apreciated.I really need to understand how succes and error work and the most secure way to do such login actions.
How does succes and error work? I want to show a message only when the boolean is true or false.It seems succes is called whenever the data gets there corectly.But I want more than that.I want to show a succes message when I am 100% positive that the server-side code worked.Is succes and error reliable?What if the data gets on my jsp page, but it fails to make the controller call corectly.It will still point out to the user that the action was succesfull.I know modern jsp pages don't have scriptlets on.In the future I will try it that way.I only use managed beans on the pages.I have different beans for the view.It's still MVC.