aspose file tools*
The moose likes Struts and the fly likes Problem with Validation in multiple pages using Struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply locked New topic
Author

Problem with Validation in multiple pages using Struts

Arka Mitra
Greenhorn

Joined: May 24, 2012
Posts: 16

Hi,
I am developing a web application using Struts and used from bean which extends ValidatorForm for validation purpose. I have one Login.jsp page where user will login with his/her User ID, password and one Registration.jsp page where new user will register like any normal applications. I have given proper validations on both the pages and used validate(ActionMapping mapping, HttpServletRequest request) method. All kinds of validation codes are perfectly OK and working fine indivisually that I have tested seperately. But my problem is when I am in Registraion.jsp page and submitting the form with wrong data, the validations are not working and it's redirecting to Login.jsp page and displaying the validation messages of Login.jsp page. Please give me any idea about this problem. I can provide you more information regarding this if you want. Please help...


Thanks & Regards
Arka Mitra
Sumit Patil
Ranch Hand

Joined: May 25, 2009
Posts: 296

Please do not create duplicate thread


Thanks & Regards, Sumeet
SCJP 1.4, SCWCD 5, LinkedIn Profile
 
Don't get me started about those stupid light bulbs.
 
subject: Problem with Validation in multiple pages using Struts