You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-user@tomcat.apache.org by "Julia A. Case" <ju...@MageNet.com> on 2002/04/08 16:38:23 UTC
forEach in the rt lib question...
I'm trying the following with no luck...
<c:forEach var="artist" items="<% playlist.getMP3Artists() %>">
<jsp:useBean id="artist" type="String" />
<OPTION value="/jsp/view?artist=<%= artist %>"><%= artist %></OPTION>
</c:forEach>
And what it produces is this
<OPTION value="/jsp/view?artist=<% playlist.getMP3Artists() %>"><%
playlist.getMP3Artists() %></OPTION>
So it's not evalutating the expersion, and I am using the c-rt.tld
Thanks,
Julia
--
[ Julia Anne Case ] [ Ships are safe inside the harbor, ]
[Programmer at large] [ but is that what ships are really for. ]
[ Admining Linux ] [ To thine own self be true. ]
[ Windows/WindowsNT ] [ Fair is where you take your cows to be judged. ]
Re: forEach in the rt lib question...
Posted by "Julia A. Case" <ju...@MageNet.com>.
Quoting Shawn Bayern (bayern@essentially.net):
> An attribute value that begins "<% " isn't an rtexprvalue; you're instead
> passing a string literal. Rtexprvalues must begin with "<%=".
>
Yes, that was it, I knew I was missing something simple... now that
I've got it working it is very cool.
Thanks,
Julia
--
[ Julia Anne Case ] [ Ships are safe inside the harbor, ]
[Programmer at large] [ but is that what ships are really for. ]
[ Admining Linux ] [ To thine own self be true. ]
[ Windows/WindowsNT ] [ Fair is where you take your cows to be judged. ]
Re: forEach in the rt lib question...
Posted by Shawn Bayern <ba...@essentially.net>.
On Mon, 8 Apr 2002, Julia A. Case wrote:
> I'm trying the following with no luck...
>
> <c:forEach var="artist" items="<% playlist.getMP3Artists() %>">
> <jsp:useBean id="artist" type="String" />
> <OPTION value="/jsp/view?artist=<%= artist %>"><%= artist %></OPTION>
> </c:forEach>
>
> And what it produces is this
>
> <OPTION value="/jsp/view?artist=<% playlist.getMP3Artists() %>"><%
> playlist.getMP3Artists() %></OPTION>
>
> So it's not evalutating the expersion, and I am using the c-rt.tld
An attribute value that begins "<% " isn't an rtexprvalue; you're instead
passing a string literal. Rtexprvalues must begin with "<%=".
Hope that helps,
--
Shawn Bayern
Author, "JSP Standard Tag Library" http://www.jstlbook.com
(coming this summer from Manning Publications)
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>