To understand why this is a problem, look at the source of the Java
servlet that's generated. Remember that the JSP is translated statically
into Java, and then the resulting Java is compiled and run.
Try this instead:
<bean:define id="test1">
<logic:equal name="test" value="0">2</logic:equal>
<logic:equal name="test" value="1">3</logic:equal>
</bean:define>
L.
temp temp wrote:
Can somebody help me with this?
Michael Jouravlev <[EMAIL PROTECTED]> wrote: On 3/10/06, Michael Jouravlev
wrote:
On 3/10/06, temp temp wrote:
I am using struts 1.1
I using logic equal tag to check whether a page context attribute value
equals to some value .
here is my code
So only one logic equal will be true but not both . But when I call this
jsp in the browser I get
jsp exception
OracleJSP: oracle.jsp.parse.JspParseException: Line # 220,
Error: Tag attempted to define a bean which already exists: test1
Why should I get this error when only one condition is true?
What about the very first line of your code?
Oops, I take that back. It is a different bean.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------
Yahoo! Mail
Bring photos to life! New PhotoMail makes sharing a breeze.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]