You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ravi Kulkarni <rk...@applabs.net> on 2003/12/09 10:37:21 UTC
Action Mapping - without formbean
Hi All,
I have a form with yes/no buttons. I want to use <html:form tag but do not
want to map to any Formbean. How can I do that?
Thanks in advance.
Kulkarni.
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
RE: Action Mapping - without formbean
Posted by Ravi Kulkarni <rk...@applabs.net>.
Thanks Henrik, that answers my question.
-----Original Message-----
From: HG [mailto:struts@websolver.dk]
Sent: Tuesday, December 09, 2003 3:30 PM
To: Struts Users Mailing List
Subject: Re: Action Mapping - without formbean
Hi Ravi
The action attribute of your form tag points to the path for your action.
By using this action path, Struts finds the action and then the form bean
(subclass of ActionForm) (if any) associated with this action (through name
attribute in struts-config.xml).
So you can invoke your action without having a form bean. You could "sniff"
the request object in your action to get the parameters and attributes
passed along with the request.
But why don't you just use a form bean for intercepting the results of
pressing either the Yes or No button. IMO it is "cleaner" and done the
"Struts way".
Sorry if I misunderstood your quuestion..
Regards
Henrik
----- Original Message -----
From: "Ravi Kulkarni" <rk...@applabs.net>
To: "'Struts Users Mailing List'" <st...@jakarta.apache.org>
Sent: Tuesday, December 09, 2003 10:37 AM
Subject: Action Mapping - without formbean
>
> Hi All,
>
> I have a form with yes/no buttons. I want to use <html:form tag but do not
> want to map to any Formbean. How can I do that?
>
>
> Thanks in advance.
>
> Kulkarni.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: Action Mapping - without formbean
Posted by HG <st...@nospam.websolver.dk>.
Hi Ravi
The action attribute of your form tag points to the path for your action.
By using this action path, Struts finds the action and then the form bean
(subclass of ActionForm) (if any) associated with this action (through name
attribute in struts-config.xml).
So you can invoke your action without having a form bean. You could "sniff"
the request object in your action to get the parameters and attributes
passed along with the request.
But why don't you just use a form bean for intercepting the results of
pressing either the Yes or No button. IMO it is "cleaner" and done the
"Struts way".
Sorry if I misunderstood your quuestion..
Regards
Henrik
----- Original Message -----
From: "Ravi Kulkarni" <rk...@applabs.net>
To: "'Struts Users Mailing List'" <st...@jakarta.apache.org>
Sent: Tuesday, December 09, 2003 10:37 AM
Subject: Action Mapping - without formbean
>
> Hi All,
>
> I have a form with yes/no buttons. I want to use <html:form tag but do not
> want to map to any Formbean. How can I do that?
>
>
> Thanks in advance.
>
> Kulkarni.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org