You will have to escape it so freemarker doesn't expand it, like:
$\{test} http://freemarker.sourceforge.net/docs/dgui_template_exp.html regards musachy On 4/6/07, River Tarnell <[EMAIL PROTECTED]> wrote:
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]
-- "Hey you! Would you help me to carry the stone?" Pink Floyd