On Aug 11, 2005, at 9:30 AM, Albrecht Leiprecht wrote:
Just did the following:
<%@ taglib uri="/WEB-INF/c.tld" prefix="c" %>
<%
int errmsglength = 5;
%>
Further down:
<c:if test="${errmsglength > 1}">...</c:if>
One would expect to see the 3 dots ... but nada ...
And yes ...the taglib is loaded in the first line of the file ...Funky
...isn't it ?
Again, I think you're trying to access something in EL that it doesn't
know about. EL doesn't (in my understanding) automatically obtain
scriptlet variables. You'd have to put errmsglength in PageContext so
EL can find it. Try this:
<%@ taglib uri="/WEB-INF/c.tld" prefix="c" %>
<%
int errmsglength = 5;
pageContext.setAttribute("errmsglength", new Integer(errmsglength));
%>
<c:if test="${errmsglength > 1}">...</c:if>
Greg
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]