jQuery in Action, 3rd edition
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
JavaRanch » Java Forums » Frameworks » Struts
Reply locked New topic

Problem with Validation in multiple pages using Struts

Arka Mitra

Joined: May 24, 2012
Posts: 16

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
I agree. Here's the link: http://aspose.com/file-tools
subject: Problem with Validation in multiple pages using Struts
It's not a secret anymore!