Re: Does not STRUTS handle escape characters

2005-01-05 Thread Isteyaque Zahur
Hi If u want to escape characters in JSP use taglibs provided by jakarta(ie http://jakarta.apache.org/taglibs/doc/string-doc/index.html#escape) and if u want to escape String in java classes use commons-lang package (api refeence is http://jakarta.apache.org/commons/lang/api/org/apache/common

Re: Does not STRUTS handle escape characters

2005-01-05 Thread fzlists
To the best of my knowledge, struts does NOT handle this. I have faced this issue, as I'm sure many have. Here's the code I use to solve it... This is simply a static method of a Helpers class I reuse throughout most of my projects... I don't for a second claim it is the best answer, but it do

Re: Does not STRUTS handle escape characters

2005-01-05 Thread fzlists
Wasn't sure this posted the first time, apologies if this winds up a double-post... To the best of my knowledge, struts does NOT handle this. I have faced this issue, as I'm sure many have. Here's the code I use to solve it... This is simply a static method of a Helpers class I reuse througho

Re: Does not STRUTS handle escape characters

2005-01-05 Thread Jeff Beal
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 ''' and '"' respectively, ra

Does not STRUTS handle escape characters

2005-01-05 Thread Krishna Mohan Radhakrishnan
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. D