hello,
thanks for your previous answer.
I'd like to pass a parameter to method called within the forEach tag.
This method have
to initialize the collection used by forEach. And this parameter is
retrieved throught
a request.getParameter()...
We can do it using JSTL c-rt.tld but we would like to do it using
the c.tld taglib. This to improve our tests an mainly to simplify the
end user interface creation ...
thanks.
>
> On Thu, 14 Mar 2002, RAYMOND Romain wrote:
>
> > I initilize my collections using beans : "
> > <%
> > Collection serialNos = datamodule.getAllApplicableSerialNos("HAP");
> > %>
> > "
> >
> > and I must use pageContext.getAttribute to get back iterators values :"
> > <c:forEach var="serial" items="<%= serialNos %>">
> > <option><%= pageContext.getAttribute("serial")
> > %></option>
> > </c:forEach>
> > "
> >
> > Is ot normal and is there a way to do it without accessing
> > pageContext, using only current and normal runtime ?
>
> If you need to use the 'rtexprvalue' library and scripting variables, you
> can declare the scripting variables with a <jsp:useBean> tag:
>
> <c:forEach var="serial ...>
> <jsp:useBean id="serial" type="..." />
> <option><%= serial %></option>
> </c:forEach>
>
> --
> Shawn Bayern
> Author, "JSP Standard Tag Library" http://www.jstlbook.com
> (coming this summer from Manning Publications)
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>