Hi Bill,
Make sure you have activated El evaluation. My suggestion: add "<%@
page isELIgnored="false"%>" on top of your JSP file. This precedes any
settings in the web.xml file
BTW, this <c:set.../> script is OK, at least it works on my machine.
On Thu, 26 Aug 2004 17:30:03 -0400, Bill Taylor
<[EMAIL PROTECTED]> wrote:
> I haven't been successful with using the <c:set> tag and using this
> output value within a Stuts tag.
>
> The variable "engineTest" (below) does not seem to output correctly as
> a boolean value to the <html:multibox> tag. However, as a test, I can
> succesfully use the scriptlet variable "val" which invokes the disable
> attribute correctly.
>
> I have also tried: ${Boolean.TRUE.booleanValue} with no luck.
>
> Should I be able to do this or should use the tried and true scriptlets?
>
> Example:
>
> <% boolean val = false%>
>
> <c:forEach begin="0" end="3"
> items='${saveUserPreferences.map.searchEngines}' var='engine'>
> <c:if test="${engine.active == 0}">
> <c:set var="engineTest" value="${true}"/>
> <% val = true;%>
> </c:if>
>
> <%--disable attribute not invoked--%>
> <html:multibox disabled="${engineTest}" property="userSearchEngines">
> <c:out value='${engine.id}' />
> </html:multibox>
> <c:out value='${engine.name}' /> <c:out
> value='${engine.description}' />
>
> <%--works correctly--%>
> <html:multibox disabled="<%=val%>" property="userSearchEngines">
> <c:out value='${engine.id}' />
> </html:multibox>
> <c:out value='${engine.name}' /> <c:out
> value='${engine.description}' />
> <br/>
>
> </c:forEach>
>
> --
> Bill Taylor
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
Best regards,
Can Zheng
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]