Is there an obvious way to do this I'm missing?

Because of the limitations of JSP 1.1, you can't do:

<bean:define name="foundMyLife" value="false" scope="request"/>
<logic:iterate id="aLife" name="lives" type="java.lang.String">
    <logic:equals name="aLife" value="mine">
        <bean:define name="foundMyLife" value="true" scope="request"/>
    </logic:equals>
</logic:iterate>

<logic:equals name="foundMyLife" value="true" scope="request">
I Found My Life!
</logic:equals>

Right now, I'm having to do:

<bean:define name="foundMyLife" value="false" scope="request"/>
<logic:iterate id="aLife" name="lives" type="java.lang.String">
    <logic:equals name="aLife" value="mine">
        <% request.setAttribute("foundMyLife", "true"); %>
    </logic:equals>
</logic:iterate>

<logic:equals name="foundMyLife" value="true" scope="request">
I Found My Life!
</logic:equals>

Is there any way to avoid breaking out into a Scriptlet?

James



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to