Apostrophes And Parenthesis in the string
Hi Everyone.
How do you guys handle apostrophes and parenthesis in java?
I have a solution where the client wants to put apostrophes and parenthesis in the database as part of their strings. ie O'reily (also known as dude)
Now these apostrophes and parenthesis come from the database into the java program -- will it break my javascript strings manipulation? If so how can i treat it before it breaks the string
I know for a fact it breaks my javascript.
For example, I have a javascript method that is populated with variables that come from the database.
onchange="return DoThisFunction("<%=rs.getString("whatever")%>","<%=rs.getString("whoever")%>");"
thanks to parenthesis and apostrophes I get javascript alert errors can someone please enlightenme as to how i can fix this problem
Sincerely and Gratefully Yours,
Stephen A. Sutherland

