dcsimg

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: ";");