File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes Problem with Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Problem with "" (double quotes on JSP)" Watch "Problem with "" (double quotes on JSP)" New topic

Problem with "" (double quotes on JSP)

Prasad Sonawane

Joined: Jul 28, 2008
Posts: 9
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 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..


Regards ~
Prasad Sonawane, Member Technical Staff, CDAC, India.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63844

Are you properly URL-encoding the parameters?

[Asking smart questions] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63844

As this has nothing to do with JSP, moved to the HTML forum.
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
It would help if you showed the actual problem. AKA Show us some code.

I agree. Here's the link:
subject: Problem with "" (double quotes on JSP)
It's not a secret anymore!