• 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

Problem with "" (double quotes on JSP)

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all..

I am stuck with a problem. I have a web application in Struts 1.1 running on JBoss 4.0.2.

I have a JSP say sample.jsp containing a link (anchor tag). When i click this link i open a pop-up window say popup.jsp paasing some parameters through window.open() method (in javascript). On popup.jsp i display some values in String format. When i select (clicking a button) one value it gets replaced on parent page sample.jsp.
Everything is working fine until i have a String value containing double quotes ("") . When i have value with "" at sample.jsp and popup.jsp, it wont allow me to select anything. Even some links that i display at popup.jsp wont work and i am left with the only solution to close the pop-up.

I have achieved replacing mechanism using innerHTML property. I found over net that innerHTML is not a public standard. If it is the case , what else can i use ? How should i handle this issue ?
Any suggestion will be greatly appreciated..

Thanks..
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are you properly URL-encoding the parameters?
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As this has nothing to do with JSP, moved to the HTML forum.
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It would help if you showed the actual problem. AKA Show us some code.

Eric
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic