• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with "" (double quotes on JSP)

 
Prasad Sonawane
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • 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..
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64959
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you properly URL-encoding the parameters?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64959
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As this has nothing to do with JSP, moved to the HTML forum.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It would help if you showed the actual problem. AKA Show us some code.

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic