This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Problem Dealing with Struts DispatchAction Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Problem Dealing with Struts DispatchAction" Watch "Problem Dealing with Struts DispatchAction" New topic
Author

Problem Dealing with Struts DispatchAction

sushil bharwani
Greenhorn

Joined: Mar 02, 2006
Posts: 26
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

Joined: Mar 17, 2006
Posts: 44
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


"What's in a name? That which we call a rose by any other name would smell just as sweet."<br />(William Shakespeare, Romeo and Juliet, Act II, Scene II)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem Dealing with Struts DispatchAction
 
Similar Threads
Validations using ActionErros Validate
radio button textfield
command button validations
isCancelled(request) not invoked
Find source of button click