I've a form which is created in a while loop. I would like to use one of the variables generated in the while loop as a value in the text area of my form control. My code is as follows:
myName = "name"+i;
out.println("<td>" + "<form name='form1'>"+ "<textarea name="text1" value="<%=myName%>">"+"</td>");
This code generates the following error:
unclosed string literal "<textarea name="text1" value=\"<%=i
How can i resolve this?