I have a JSP File which also uses JavaScript for some operations. To Display a filled textinput-field I use:
String s="theValue";
out.println("<input type='text' value='"+s+"' name='nameField' id='name' onchange=doSomething('str2','str1')/>");
But it won't work if I don't put the doSomething(str1,str2)
under qoutes.
Am I forced to use three types of quotes? Is there a different way to solve this problem?