RE: Action Mapping - without formbean

2003-12-09 Thread Ravi Kulkarni
Thanks Henrik, that answers my question.

-Original Message-
From: HG [mailto:[EMAIL PROTECTED]
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" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
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  want to map to any Formbean. How can I do that?
>
>
> Thanks in advance.
>
> Kulkarni.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Action Mapping - without formbean

2003-12-09 Thread HG
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" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
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  want to map to any Formbean. How can I do that?
>
>
> Thanks in advance.
>
> Kulkarni.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]