aspose file tools*
The moose likes JSP and the fly likes JavaScript error in JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "JavaScript error in JSP" Watch "JavaScript error in JSP" New topic
Author

JavaScript error in JSP

joseph prabhu
Ranch Hand

Joined: Feb 26, 2008
Posts: 162
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

Joined: Jan 10, 2002
Posts: 61201
    
  66

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Hebert Coelho
Ranch Hand

Joined: Jul 14, 2010
Posts: 754

I am not sure if "${mapped}" works for javascript. =/


[uaiHebert.com] [Full WebApplication JSF EJB JPA JAAS with source code to download] One Table Per SubClass [Web/JSF]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61201
    
  66

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JavaScript error in JSP