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" class="myPkg.ReadWriteRepositoryFile"/>

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


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.

Cheers,
Chris

_________________________________________________________________
Compare Cable, DSL or Satellite plans: As low as $29.95. https://broadband.msn.com



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



Reply via email to