Meaningless Drivel is fun!
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

Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Dynamic validation for struts2" Watch "Dynamic validation for struts2" New topic

Dynamic validation for struts2

purushotham podaralla

Joined: Sep 12, 2007
Posts: 29

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.

Joe Ess

Joined: Oct 29, 2001
Posts: 9150

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.

[How To Ask Questions On JavaRanch]
I agree. Here's the link:
subject: Dynamic validation for struts2
It's not a secret anymore!