<logic:equal
<html:form
</html:form
</logic:equal>
is valid xml & should work (never done it myself).
<logic:equal
<html:form
</logic:equal>
</html:form
isnt valid xml.
But this means you'll have a large piece of duplicated jsp code.
In my limited experience when I hit this situation I have 2 JSP's, I find lots
of code inside <logic tags very nasty.
Actually you could probably use struts include to hold the duplicated bit.
Does any-one know if you can have form fields inside an include?
--- Antony Stace <[EMAIL PROTECTED]> 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)
>
>
>
> --
>
>
> Cheers
>
> Tony��
> ---------------------------------------------------------------------
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> --
> To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
__________________________________________________
Do You Yahoo!?
Got something to say? Say it better with Yahoo! Video Mail
http://mail.yahoo.com
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>