I am preparing for web component developer exam. I was making a sample jsp and was running in Tomcat when i came across this
error. Have a look at error below
type Exception report
description The server encountered an internal error () that prevented it from fulfilling this request.
org.apache.jasper.JasperException: /chap07/poemOfTheDay.jsp (line: 15, column: 22) Attribute value request.getParameter("poem") is quoted with " which must be escaped when used within the value
I tried the following solutions possible added following line into catalina.bat
It started working absolutely fine. Then i commented this line in catalina.bat and changed the double quotes in jsp into single quotes like this
It solved the problem. My main concern is that what is the meaning of the error and what causes it.