You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by meeboo <de...@gmail.com> on 2007/04/28 18:44:11 UTC
Nested
Hey all
Is there a way to nest s:form elements in S2? I have a nested form which
won't reach the specified action, even though it is correctly mapped. If I
move it outside of the first form it automagically starts working.
The action is mapped like:
<action name="deleteMovie/*/"
class="com.myapp.web.struts.action.user.UserProfile"
method="deleteMovie">
<param name="movieId">{1}</param>
<result name="success"
type="redirect-action">user/${normalizedUsername}/movies/</result>
<result name="error">/userProfile.jsp</result>
</action>
The odd thing is that the result success works fine (it even reads the
normalizedUsername), but the method deleteMovie is never reached when the
form is nested.
Any ideas?
Thanks!
--
View this message in context: http://www.nabble.com/Nested-%3Cs%3Aform%3E-tf3662755.html#a10234465
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: Nested
Posted by James Mitchell <ed...@gmail.com>.
Nested forms are not valid HTML.
--
James Mitchell
On Apr 28, 2007, at 12:44 PM, meeboo wrote:
>
> Hey all
>
> Is there a way to nest s:form elements in S2? I have a nested form
> which
> won't reach the specified action, even though it is correctly
> mapped. If I
> move it outside of the first form it automagically starts working.
>
> The action is mapped like:
> <action name="deleteMovie/*/"
> class="com.myapp.web.struts.action.user.UserProfile"
> method="deleteMovie">
> <param name="movieId">{1}</param>
> <result name="success"
> type="redirect-action">user/${normalizedUsername}/movies/</result>
> <result name="error">/userProfile.jsp</result>
> </action>
>
> The odd thing is that the result success works fine (it even reads the
> normalizedUsername), but the method deleteMovie is never reached
> when the
> form is nested.
>
> Any ideas?
>
> Thanks!
> --
> View this message in context: http://www.nabble.com/Nested-%3Cs%
> 3Aform%3E-tf3662755.html#a10234465
> 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
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org