so I have this problem with the following JSP code.
while(rs.next()){
out.println("<tr>");
out.println("<td>" + rs.getString(2) + "</td>");
out.println("<td> <button type='submit' value='delete' onclick = deleteObj(out, " + rs.getString(2) + ")'>HI</button> </td>");
out.println("</tr>");
}
Here as one can see the function looks like onclick="deleteObj(out, "fat ..etc, that quote seems to be getting in the way and I am unsure what to do about it.
https://i.stack.imgur.com/EdrqM.png
Also I am wondering how the server knows that deleteObj is a JSP method. Isn't this the same format for javascript method calls on click?
Thank you
the " persists right before the second parameter which is why I suspect that this fails but I am not sure what I can do.