struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From CyberZombie <CyberZom...@mediaone.net>
Subject Re: Using <logic:equals> tag around <html:form action.... > tag. Is it legal?
Date Fri, 15 Feb 2002 05:52:07 GMT
When I ran into that issue, I just used two action mappings --
"/editUser" to initialize the form (including an action property that
identified add vs. edit) and forward that to the .jsp. And in the .jsp
form tag I used "/storeEditUser" to process the results.

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) ??????????????:
???? &lt;/logic:equal&gt; ???????????????????
>	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:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message