What prevents you from displaying an appropriate message in the HTML that is returned in the response? All common web frameworks (Struts, Stripes, JSF, etc.) have this functionality -displaying error messages next to input fields that failed a valiadtion- built in, by the way. You may want to check out some of those frameworks.
Joined: Jan 23, 2012
I am not getting alert message. Plese check my code given below:
This code sending back to same html page without alert message. Is there anyother way to show message beside corresponding field?
Bosun Bello wrote:If you are not familiar with frameworks, then Google for it and get familiar with them. It will make things much easier got you.
Meh, I'm not much of a cheer-leader for the frameworks. If the OP doesn't know enough yet to be able to send information to a JSP for conditional inclusion on the page, a framework is premature and will just add to the confusion, or, worse, actively prevent him from learning basic servlet and JSP concepts that he needs to know.