tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher Stead" <>
Subject using <c_rt:out> with scoped variables
Date Wed, 17 Sep 2003 19:12:42 GMT
Using nested tags, I am not able to access the value of a scoped variable 
set by the parent tag:

<jsp:useBean id="file" scope="application" 

  <c_rt:forTokens var="repo_names" items="<%= file.getContents() %>" 
        <c_rt:out value="<%= pageContext.getAttribute("repo_names",
                      PageContext.PAGE_SCOPE) %>" default="test"/>

I've looked at javax.servlet.jsp.jstl.core.TagLoopSupport and the source 
code is definitely setting variable scope, so what am I doing wrong?  I've 
also tried using pageContext.findAttribute("repo_names") but that didn't 
work.  My default value doesn't display either.

Thanks for your time and consideration.


Compare Cable, DSL or Satellite plans: As low as $29.95.

View raw message