You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by styl9090 <st...@gmail.com> on 2008/10/15 22:18:25 UTC
dynamic action in form
Hi,
I am using struts 2 in my current project.
How can I write the action dynamically in my JSP form tag?
Here is the example: This case, I have my form action is in session.
<s:form name="sampleForm" action="????">
I have tried using below, which didn't work:
<s:form name="openForm" action="%{session.action_name}">
Any help is greatly appreciated.
Thanks,
Shekar.
--
View this message in context: http://www.nabble.com/dynamic-action-in-form-tp20001478p20001478.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: dynamic action in form
Posted by styl9090 <st...@gmail.com>.
It worked out.. Thank you!
Laurie Harper wrote:
>
> styl9090 wrote:
>> Hi,
>> I am using struts 2 in my current project.
>> How can I write the action dynamically in my JSP form tag?
>> Here is the example: This case, I have my form action is in session.
>> <s:form name="sampleForm" action="????">
>>
>> I have tried using below, which didn't work:
>> <s:form name="openForm" action="%{session.action_name}">
>
> Assuming the action attribute is evaluated, it would be %{#session
> (notice the '#').
>
> L.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/dynamic-action-in-form-tp20001478p20039684.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: dynamic action in form
Posted by Laurie Harper <la...@holoweb.net>.
styl9090 wrote:
> Hi,
> I am using struts 2 in my current project.
> How can I write the action dynamically in my JSP form tag?
> Here is the example: This case, I have my form action is in session.
> <s:form name="sampleForm" action="????">
>
> I have tried using below, which didn't work:
> <s:form name="openForm" action="%{session.action_name}">
Assuming the action attribute is evaluated, it would be %{#session
(notice the '#').
L.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org