This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Struts and the fly likes validatation should not work for some actions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: validatation should not work for some actions
 
It's not a secret anymore!