struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From João Vieira da Luz <joao....@gmail.com>
Subject Re: Question on conditionally changing action is html:form
Date Wed, 23 Feb 2005 16:24:22 GMT
Try to do this:

<bean:define id="myform" scope="session" name="xyzForm" type="XYZForm" />
<bean:define id="action">

  <logic:present name="myForm" property="flag" >action1</logic:present>
   <logic:notPresent name="myForm" property="flag" 
 >action2</logic:notPresent>
</bean:define>
<html:form action="<%= action %>>
best regards,
          João
Nandita Rajagopalan wrote:

>I have the following piece of code :
> 
><bean:define id="myform" scope="session" name="xyzForm" type="XYZForm" />
>
><% if (myform.getFlag()) { %>
>
><html:form action='action1'>
>
><% } else { %>
>
><html:form action='action2'>
>
><% } %>
>
> 
>
>The above gives the error:
>
> 
>
>Unterminated <html:form tag' 
>
> 
>
>There is a </html:form> in my jsp- so not sure what this error is about. If
>I remove the condition above , it works.
>
> 
>
>Can anyone throw some light on this issue.
>
> 
>
>Thanks,
>
>Nandita
>
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message