Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem Dealing with Struts DispatchAction

 
sushil bharwani
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wanted to have two submit button perform different activities within My HTML Page so I used dispatch Action But I had a critical Requirment that when First Button is Clicked Validate Method Of ActionForm Should Be Called While when Second Button is Clicked Validate method should not be called suggested me any solutions


Thanks in Advance


Cheers

Sushil

Let the Knowledge Flow Direction Does'nt Matters
 
Liju Cherian
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could set the validate parameter, within the action tag in the struts-config.xml, to false; and then explicitly call the validate method, of the respective action form from within the action class itself.
This should solve ur problem.

Cheers,
Liju
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic