This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I have a function in my JSP and am calling it when the user clicks on an image.
I get a runtime error "Unterminated string constant" I tried all possibilities like using escape characters, removing double quotes ..etc. do anyone have an answer..? [ July 16, 2002: Message edited by: Sathish ]
Joined: Jul 16, 2002
Hi, What if the the single quote's position in the string varies dynamically..? Sathish
Sathish i agree with what Yuriy said. also, i thought single quotes were used inside double quotes. i dont see any double quotes enclosing the single quotes. otherwise Yuriy's code looks right to me(it's been a while but i seem to recall using \ to escape special chars). semicolon at end is not needed either although it is allowed.
I hate to say this but, your name does not comply with the Javaranch naming guidelines which can be found at http://www.javaranch.com/name.jsp please register again with a valid name. [ July 17, 2002: Message edited by: Randall Twede ]