• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

create a js array on the server-side

 
Ranch Hand
Posts: 225
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to create an array as a String and then use a JSP bean:write tag to display the array as javascript. The problem I am running into is the double quotes are not appearing as double quotes when I view source of the page. The double quotes are shown as ""e;". Any ideas how I can get the javascript to display the double quotes?
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am just getting into this Java stuff so this is a shot in the dark. Most serverside code will spit out the entities which is the proper way for characters to be displayed in HTML. You need to turn that off. I think it is done with this:

<bean:write name="foobar" filter="false"/"

Eric
reply
    Bookmark Topic Watch Topic
  • New Topic