forEach in the rt lib question...

2002-04-08 Thread Julia A. Case

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. ]



msg01923/pgp0.pgp
Description: PGP signature


Re: forEach in the rt lib question...

2002-04-08 Thread Shawn Bayern

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]




Re: forEach in the rt lib question...

2002-04-08 Thread Julia A. Case

Quoting Shawn Bayern ([EMAIL PROTECTED]):
 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. ]



msg01925/pgp0.pgp
Description: PGP signature