Re: URL-escape a var with JSTL

2006-03-01 Thread ogjunk-taglib
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

URL-escape a var with JSTL

2006-02-28 Thread ogjunk-taglib
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

Re: JSTL converts ' to '

2004-10-30 Thread ogjunk-taglib
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

JSTL converts ' to #039;

2004-10-29 Thread ogjunk-taglib
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.