Hi all,

--- Jason Carreira <[EMAIL PROTECTED]> wrote:
> Nope. You have different aliases for different
> commands, the way I'm
> talking about it. So to see the form the first time
> you hit this URL:
> 
> http://localhost/fooForm.action
> 
> Which calls doForm() on the FooAction, based on the
> configuration, and
> just returns SUCCESS, which is mapped to foo.jsp.
> Foo.jsp has a form
> with an action of fooProcess.action, which is
> another command mapped to
> the method doProcess() on the FooAction, and which
> has validation
> applied to it. The doProcess() method processes the
> form data and, if
> there's an error will return ERROR which is also
> mapped to foo.jsp,
> whereas if it is successful, it returns SUCCESS
> which is mapped to
> bar.action, which is another Action.
> 

Above is only one way of using CommandDriven
interface, which is basically to make things a bit
more convenient (by not having to define several
Action classes). Another way to use it is in input
form with multiple submit buttons. These buttons would
have the name 'command'. When the form is submitted,
the value of the submitted button would be used as the
command name. It doesn't support internationalization
(on the label of the button) though.

Cheers.

=====
-------------------
Hai Pham Quang
-------------------

__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/


-------------------------------------------------------
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
The most comprehensive and flexible code editor you can use.
Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
www.slickedit.com/sourceforge
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to