On Tue, 14 May 2002, Liam wrote:
> this is out code snippet
>
> <%
> ArrayList classifiers = Classifier.DA.getAll();
> %>
> <c:forEach var="classifier" items="$classifiers" varStatus="status" >
Two problems:
- The syntax for expressions is now ${expr}, not $expr. You need to
write ${classifiers}.
- Simply declaring a scripting variable (through your "ArrayList
classifiers" declaration) isn't enough to make the data accessible
to a JSP tag. If you create it manually in a scriptlet, you'll need
to add it to a scope using pageContext.setAttribute().
--
Shawn Bayern
"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]>