Hello all,
I'm retriving a ntext field from a MS-SQL server DB.
In this field can be any character in unicode format with lenght up to 2048 char.
When I put on a web page using the c:out value=myrec.row[0].column / I lost any \r\n
char that I have in the source record.
I use the
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() %%
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
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,
I noticed that c:param's in a c:url are added backwards.
So if I have:
c:url var=my_url value=http://example.com/script.jsp;
c:param name=A1/c:param
c:param name=B2/c:param
c:param name=C3/c:param
/c:url
It produces:
http://example.com/script.jsp?C=3amp;B=2amp;A=1
This isn't so good
On Mon, 8 Apr 2002, Steve Morrison wrote:
I noticed that c:param's in a c:url are added backwards.
So if I have:
c:url var=my_url value=http://example.com/script.jsp;
c:param name=A1/c:param
c:param name=B2/c:param
c:param name=C3/c:param
/c:url
It produces: