Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using jsp:param and expression scripting element

 
Adrian Kan
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am trying to troubleshoot a problem with my JSP

This works fine:


While this isn't and returns an error


Error Returned:
Attribute value request.getParameter("abc") is quoted with " which must be escaped when used within the value

Making <%= request.getParameter(\"abc\")%> works. as normal.


Any advice?

Running Tomcat 6.0.18

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64613
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Adrian Kan wrote:Any advice?

Yes. Pull yourself kicking and screaming out of 2002 and stop using scriptlets in your JSP pages.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic