struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Allen <...@mojavelinux.com>
Subject Re: Action attribute 'input'-- why required?
Date Mon, 23 Jun 2003 18:26:31 GMT

Lukas Bradley (lukas@somnia.com) wrote:

> Error message:
> 
> "No input attribute for mapping path /user/BankAccount"
> 
> My action:
> 
>   <action path="/user/BankAccount" type="mypackage.ui.actions.BankAccountAction"
>    name="form.user.bankaccount" scope="request">
>    <forward name="success" path="tile.user.bankaccountform" />
>    <forward name="failure" path="/user/AccountMgt.do" />
>   </action>
> 
> My question:
> 
> In short, who gives a damn?  Why do I need an input attribute on an action?  Why can't
I post to a url, and the action be smart enough to parse the necessary data?  The action knows
it is request data.  The action knows the name of the form, and it is correctly defined. 
The action knows where to go upon a failure, and upon success.
> 
> The input attribute does not seem to need to be required.

It should only be required if validation is set to true for this
mapping.

Dan

-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Daniel Allen, <dan@mojavelinux.com>
http://www.mojavelinux.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
"If you are going to play the game of trial and error, 
don't be surprised when the results are revealing. -- me"
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message