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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to