tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Affan Qureshi" <quere...@etilize.com>
Subject Accessing page local variables using JSTL
Date Tue, 06 May 2003 07:59:12 GMT
Hi,
How do I access local variables using JSTL <c:if>, <c:out> tags.

Example:
<% boolean someFlag = getFlagValue(); %>

<c:if test="${someFlag}">
    ...... do this .....
</c:if>

This doesn't work unless i do pageContext.setAttribute("someFlag", new
Boolean(someFlag));

Thanks,

Affan


---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org


Mime
View raw message