• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dynamic validation for struts2

 
purushotham podaralla
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9312
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic