| 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]
|
 |
 |
|
|
subject: Dynamic validation for struts2
|
|
|