This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes struts action form Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts action form" Watch "struts action form" New topic

struts action form

Rajiv Chelsea
Ranch Hand

Joined: Jun 15, 2010
Posts: 88
If we have a single action class for multiple forms, how do we perform validation?

Can it be done by overloading validate() method of ActionForm class?
Richard Golebiowski
Ranch Hand

Joined: May 05, 2010
Posts: 213

In Struts 1 each form can have a validate method.
David Newton

Joined: Sep 29, 2008
Posts: 12617

Or be configured for XML validation (form-based as opposed to action-based).
I agree. Here's the link:
subject: struts action form
Similar Threads
Cannot retrieve mapping for action
New page is loading with old values
Call Action Class Using Anchor Tag Without showing parameter list in address bar of the browser
Can Action class be treated as controller