aspose file tools*
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
Author

Problem with "" (double quotes on JSP)

Prasad Sonawane
Greenhorn

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 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..

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

Joined: Jan 10, 2002
Posts: 61218
    
  66

Are you properly URL-encoding the parameters?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61218
    
  66

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

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

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with "" (double quotes on JSP)