aspose file tools
The moose likes Struts and the fly likes validatation should not work for some actions Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "validatation should not work for some actions" Watch "validatation should not work for some actions" New topic
Author

validatation should not work for some actions

Rauhl Roy
Ranch Hand

Joined: Aug 01, 2006
Posts: 401

Hi,

I am using "required" in validation.xml for my jSP, where I have 3 buttons(say..Next, Cancel, Back). The problem here is when I click on next button my validation rule "required" must be fired. But when I click on back button I do not want my validation to fire. Still it fires since I have used the html:form action name in validation.xml.

I can solve this problem my using java script but I do not know how to solve this problem without using JS. Can anyone tell me.

Regards,
Rahul.
 
I agree. Here's the link: http://jrebel.com/download
 
subject: validatation should not work for some actions
 
Similar Threads
Struts-Validations -PROBLEMS
validation.xml is miss firing
validator in LookupDispachAction
validation problem
history.back problem