• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Error in Displaying JSP Escaped Quote

 
Ranch Hand
Posts: 774
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear All,

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

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

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
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:41)



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.
Thanks,
 
reply
    Bookmark Topic Watch Topic
  • New Topic