Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JavaScript error in JSP

 
joseph prabhu
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi i am using same code as follows


it gives javascript error as . what syntax i have to change for this?

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64858
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are getting a JavaScript error, then you need to look at the client-side generated code, not the server-side markup.

What is that line translated to by the time it reaches the browser? Is it valid JavaScript? If not, how did it get set up incorrectly?

These are the questions you should be asking yourself.
 
Hebert Coelho
Ranch Hand
Posts: 754
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not sure if "${mapped}" works for javascript. =/
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64858
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hebert Coelho wrote:I am not sure if "${mapped}" works for javascript. =/

It has nothing to do with JavaScript. The JSP markup is evaluated on the server long before the JavaScript engine sees the resulting markup. The EL expression never makes it past the server.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic