wood burning stoves 2.0*
The moose likes Struts and the fly likes validation.xml is miss firing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "validation.xml is miss firing" Watch "validation.xml is miss firing" New topic
Author

validation.xml is miss firing

Anil Verghese
Ranch Hand

Joined: Oct 11, 2006
Posts: 155
Hi,
I am using save and update button, when i click update it goes to the next page but on clicking it the validation of the previous page gets fired ... I hope I explained it clearly..
I have two buttons on a page that uses validation.xml for validation. when i click update button it goes to the next page but then the current page will have no values in it. So every time i click it the validation takes place and prevents the next page from loading. How do i avoid this
Regards
Anil
Dom Lassy
Ranch Hand

Joined: May 05, 2006
Posts: 181
I don't really understand your question, but on the action that you don't want validation firing on, put this in your action mapping:
Anil Verghese
Ranch Hand

Joined: Oct 11, 2006
Posts: 155
Hi,

Thanks for the reply. I have a single page that does save and update operations. when i select update it goes to the next page where updation takes place but i am using validation.xml which fires when i click the update button. I need validation ... is there a solution to avoid this

Anil
Brent Sterling
Ranch Hand

Joined: Feb 08, 2006
Posts: 948
It is usually best to limit yourself to one post on the same topic.

- Brent
 
 
subject: validation.xml is miss firing
 
Similar Threads
validatation should not work for some actions
After submit the link parameter get null
struts 2 validation problem
can i control the flow validation if i use validator.xml
Subit the form with html:link