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:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to