tHanks for your analyse but so, why and how this code using c-rt.tld
don't work with c.tld taglib ?

<%@taglib uri="http://java.sun.com/jstl/ea/core"; prefix="c"%>
<%@taglib uri="http://java.sun.com/jstl/ea/core-rt"; prefix="c-rt"%>
...

<c-rt:forEach var="serial" items="<%=
datamodule.getAllApplicableSerialNos(selVersion) %>">
        ...
</c-rt:forEach>
...

So what is the way to pass parameter method using c.tld like this
example
<c:forEach var="version" items="${datamodule.allApplicableVersions}">
but with ... a parameter


John Baker a �crit :
> 
> Stupid question. What is the difference between c.tld and c-rt.tld ?  Or in
> general, what does -rt dictate?
> 
> On Friday 15 Mar 2002 11H:02 am, you wrote:
> > 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)
> 
> --
> John Baker, BSc CS.
> Java Developer, TEAM/Slb. http://www.teamenergy.com
> Views expressed in this mail are my own.
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

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

Reply via email to