hello,

i have a FreeMarker template which looks like this:

<@s.url id="viewurl" includeParams="none" action="view"
        title=title.text />
<a href="${viewurl}">View</a>

as long as title.text contains "simple" text, this works fine: it
outputs <a href=".../view.action?title=whatever">.  however, if the
literal value of title.text looks like a FreeMarker expression,
FreeMarker actually evaluates the result of the s.url.  e.g. if
title.text was "${foo}", and ${foo} had the value "bar", the output
would be:

  <a href=".../view.action?title=bar">

instead of:

  <a href=".../view.action?title=${foo}">

why is this happening, and how can i stop it?  (it seems to prevent
outputting any user-supplied data in a URL...)

thanks,
        - river.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to