Kruse, Matt írta:

Simple question,

When I want to use <bean:write> to print a value into a JSP, to be included
as an argument in a javascript function, how can I escape the output in
cases where it has ' and " and newline characters?

For example,
addName('<bean:write name="person" property="lastname"/>');


try this:

addName('<bean:write name="person" property="lastname" filter="true"/>');

This filters the html sensitive chars. Tib





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



Reply via email to