How can I get quotes in my servlet output so the string will be quoted for JavaScript?

Marin Velikov

You need to escape the character with a , like the following:

out.println("var themessage = "message: ";"); 
0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact