You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Nikolaus Rumm <ni...@mail.kephera.com> on 2000/12/05 22:39:49 UTC
Nesting form inside ifParameterEquals
Hello,
what I wanted to do is...
<struts:ifParameterEquals name="action" value="create">
<struts:form action="/html/user/storeUser.do?action=create" name="userForm" type="com.kephera.scivent.client.participant.UserForm">
</struts:ifParameterEquals>
<struts:ifParameterEquals name="action" value="edit">
<struts:form action="/html/user/storeUser.do?action=edit" name="userForm" type="com.kephera.scivent.client.participant.UserForm">
</struts:ifParameterEquals>
However, under struts 0.5 the tag's body and thus the form tag is not evaluated, but the whole page is skipped. Is there a way to dynamically alter the action of a struts:form tag ?
Regards
Nikolaus
Re: Nesting form inside ifParameterEquals
Posted by Jim Richards <gr...@cyber4.org>.
You can use java script. I posted a message about this
to the struts-dev mailing list a few days ago. I don't
have the email, but you can find it in the mail archives,
which I don't have a reference for either.
> Nikolaus Rumm wrote:
>
> Hello,
>
> what I wanted to do is...
>
> <struts:ifParameterEquals name="action" value="create">
> <struts:form action="/html/user/storeUser.do?action=create" name="userForm" type="com.kephera.scivent.client.participant.UserForm">
> </struts:ifParameterEquals>
> <struts:ifParameterEquals name="action" value="edit">
> <struts:form action="/html/user/storeUser.do?action=edit" name="userForm" type="com.kephera.scivent.client.participant.UserForm">
> </struts:ifParameterEquals>
>
> However, under struts 0.5 the tag's body and thus the form tag is not evaluated, but the whole page is skipped. Is there a way to dynamically alter the action of a struts:form tag ?
>
> Regards
>
> Nikolaus