Dynamic values in checkbox
Hello,
I have a servlet where I submit the value of check box to other servlet and print them there.
out.println("<input type=\"checkbox\" name=\"option2\" value=\"2\" checked>");
out.println(word+"
");
for this check box no problem as the value is static and always =2
I tryed to make the vlaue dynamic value ="string"
out.println("<input type=\"checkbox\" name=\"option1\" value=\"<%=word%>\" checked>");
out.println(word+"
");
but when i print this i got :
2 null
any help

