Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Re: using <logic:equal> tag

Michael J.

2006-03-10

Replies:

On 3/10/06, temp temp <miroconnect@(protected):
> 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
>
>     <bean:define id="test" value="0"/>
>     <logic:equal name="test" value="0">
>       <bean:define id="test1" value="2" />
>     </logic:equal>
>
>     <logic:equal name="test" value="1">
>       <bean:define id="test1" value="3" />
>     </logic:equal>
>
>  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,
>  <bean:define id="test1" value="3" />
>  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?

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.