This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Struts and the fly likes Dynamic validation for struts2 Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "Dynamic validation for struts2" Watch "Dynamic validation for struts2" New topic
Author

Dynamic validation for struts2

purushotham podaralla
Greenhorn

Joined: Sep 12, 2007
Posts: 29
Hi,

i have a scenario like to validate in one case and shouldn't do validation in another case in a single action.
suppose for example:-
When i press save button i have to do a validation.
When i press continue button shouldn't do a validation.
i have to do this one in struts 2.
Please do the needful.

Thanks in Advance.

Regards,
Purushotham
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8261

Struts 2 can be configured to invoke different methods in one action class. Validation can be configured on a per-method basis. Have your submit and continue buttons invoke different methods.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Dynamic validation for struts2
 
Similar Threads
How to disable bean validation on some fields in JSF 2 page?
Validating jtable cells with different editors
How to ByPass the validation framework
Jsp <html:link building of an url
multiple forms in struts