Hi Antony, I guess you are not allowed to enclose a tag start within a logic tag whithout enclosing the tag end as well. This leads to :
<logic:equal name="testPageBean" property="typeOfProcess" value="add"> <html:form action="/addUser" focus="username"> ... </html:form> </logic:equal> Of course if the only difference in your forms (addUser, modifyUser) are the form action attribute it will duplicate a lot of code. In this case as action attribute is a RunTime Expression you might deal with something like : <bean:define id="formAction" >defaultAction</bean:define> <logic:equal name="testPageBean" property="typeOfProcess" value="add"> <bean:define id="formAction" >/addUser</bean:define> </logic:equal> <logic:equal name="testPageBean" property="typeOfProcess" value="modify"> <bean:define id="formAction" >/modifyUser</bean:define> </logic:equal> <html:form action='<bean:write name="formAction">' focus="username"> or <html:form action='<%=formAction%>' focus="username"> I am not sure about syntax ... but this is the idea Patrick Antony Stace wrote: >Hi Ladies and Gentlemen > >I want to use <logic:equals> tags around a <html:form action> but I am having >errors. I am not sure if this is allowed in struts. Can someone please confirmthat >this is not or is allowed in struts. > >The code I have is > >--------------------------snip---------------------------- > ><logic:equal name="testPageBean" property="typeOfProcess" value="add"> ><html:form action="/addUser" focus="username"> ></logic:equal> ><logic:equal name="testPageBean" property="typeOfProcess" value="modify"> ><html:form action="/modifyUser" focus="username"> ></logic:equal> >....rest of form definition > >--------------------------snip----------------------------- > >The error I am getting is > >org.apache.jasper.compiler.ParseException: /WEB-INF/pages/clientDetails.jsp(21,0) >??????????????: ???? </logic:equal> ??????????????????? > at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java) > at org.apache.jasper.compiler.Parser.parse(Parser.java) > at org.apache.jasper.compiler.Parser.parse(Parser.java) > at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java) > at org.apache.jasper.compiler.Parser.parse(Parser.java) > at org.apache.jasper.compiler.Parser.parse(Parser.java) > at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java) > at org.apache.jasper.compiler.Parser.parse(Parser.java) > at org.apache.jasper.compiler.Parser.parse(Parser.java) > at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java) > at org.apache.jasper.compiler.Parser.parse(Parser.java) > > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

