Question regarding quotation marks when mixing jsp and html forms
Hey all
I'm trying to escape some quotation marks but can't figure out how to do it.
<form METHOD"POST" ACTION="mockup.jsp">
<select size="1" name="view">
<% out.println(" <option value="yes">" +getTopic);" %></option> //Problem
</select>
<input type="submit" value="Submit">
</form>
Tomcat output:
An error occurred at line: 117 in the jsp file: /mockup/mockup.jsp
Generated servlet error:
Syntax error, insert ")" to complete MethodInvocation
An error occurred at line: 117 in the jsp file: /mockup/mockup.jsp
Generated servlet error:
Syntax error, insert ";" to complete Statement

