On Thu, 19 Sep 2002, Richard Berger wrote:

> For example...
> <jsp:useBean id="delegate" scope="page" class="golf.util.ResourceDelegate"/>
> ....
> <% Collection coll = delegate.getReservationsForUserID(userid); %>
> <c:forEach items="${coll}" var="teeTime">
> 
> I do not seem to be able to get this to work.  Am I missing something,
> or do I need to do this all in scriptlet world and forget about JSTL
> for this problem?

Tags, whether JSTL or not, cannot read scripting variables.  Instead, you
need to make them scoped attributes, as with

 <% pageContext.setAttribute("coll", coll); %>

-- 
Shawn Bayern
"JSTL in Action"   http://www.jstlbook.com


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

Reply via email to