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>
&nbsp;<c:out value='${engine.name}' />&nbsp;<c:out
value='${engine.description}' />

<%--works correctly--%>
<html:multibox disabled="<%=val%>" property="userSearchEngines">
     <c:out value='${engine.id}' />
</html:multibox>
&nbsp;<c:out value='${engine.name}' />&nbsp;<c:out
value='${engine.description}' />
<br/>

</c:forEach>

-- 
Bill Taylor

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

Reply via email to