Hi,
True, but I'm not using to construct my URLs, because my URLs are rewritten
(mod_rewrite) and don't look like they are in the webapp context. For example,
if I have myapp.war, and URLs are normally under http://example.com/myapp/
, then yes, c:url would work. However, my links are
Hello,
I need to URL-escape a variable in JSTL, and am not having much luck finding
the way to do it.
For example, I currently do:
c:set var=foo param=${param.foo}/
Since foo param may include some funky characters, I need to URL-escape that.
So I'm looking for something similar to:
c:set
Ah, thanks - I thought false was the default.
Otis
--- Kris Schneider [EMAIL PROTECTED] wrote:
script
alert(c:out value='${foo}' escapeXml='false'/);
script
Quoting [EMAIL PROTECTED]:
Hello,
I'm having some JSTL difficulties that I haven't encountered
before.
I have a string
Hello,
I'm having some JSTL difficulties that I haven't encountered before.
I have a string with a single quote in it:
c:set var=foo value=Foo's Moos/
If I just print that out (c:out), JSTL converts the single quote to
#039; and my browser recognizes that and renders it as a single quote.