aspose file tools*
The moose likes Struts and the fly likes Dynamic validation for struts2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
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: 8895
    
    8

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