posted 12 years ago
Sorry Joe if I made a mess while posting the problem. Please let me give a few sentences to explain where my problem is. I am just putting the scenario in as brief as possible.
In my web application using Struts I used form bean which extends ValidatorForm and used validate() method for server side validation purpose in new user registration page. All kinds of validation are working fine if I declare welcome page as "Registration.jsp" in web.xml like below.
web.xml (when the validations are working):
But if I put the home page i.e. the Login.jsp page as welcome page in web.xml like below and redirect to Registration.jsp page whenever new user wants to register then the none of the validations are working. Even when I am submitting the empty form, it's redirecting to the Login page.
web.xml (when the validations are not working):
Please let me know if I have clearly pointed out this peculiar problem. Expecting a solution from you about this very eagerly.
In addition I have shown you the validate method which is used for registration form validation.
The validate() method in form bean:
Thanks & Regards
Arka Mitra