<% org.apache.struts.action.ActionMapping mapping = null; mapping = (org.apache.struts.action.ActionMapping) request.getAttribute("org.apache.struts.action.mapping.instance"); %> <html:form action="<%= mapping.getPath() %>" method="POST">
-----Original Message----- From: Nandita Rajagopalan [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 23, 2005 6:12 PM To: struts-user@jakarta.apache.org Subject: Question on conditionally changing action is html:form 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]