To my knowledge, the escape mechanisms in the Struts custom tags only handle characters that have special significance in HTML textual content, not JavaScript. It may only escape '&','<', and '>'. If it does escape "'" and '"' (I think it does), it escapes them as '&apos;' and '&quot;' respectively, rather than "\'" and '\"' as JavaScript requires.

-- Jeff

Krishna Mohan Radhakrishnan wrote:
Hi all,
This is a javascript function that is being called when a button called
"Update" is pressed.

Now if the planTitle or verbalDescription has got any apostrophe(') then
it is throwing up a javascrit error that ) is expected.

Does not struts handle these type of characters like ',",/ etc.

Does anybody has a solution to the problem?

Regards,
Krishna Mohan R


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



Reply via email to