*
The moose likes JSP and the fly likes JS + JSTL + HTML and escaping for double quotes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "JS + JSTL + HTML and escaping for double quotes" Watch "JS + JSTL + HTML and escaping for double quotes" New topic
Author

JS + JSTL + HTML and escaping for double quotes

Tina Desai
Ranch Hand

Joined: Mar 13, 2003
Posts: 365
We are uing a for each loop of JSTL for creating the TRs in a HTML Table.
We have the following code for generating the on click of each TR based on data:



The trouble is when the name value contains double quotes, the process method is not getting called at all.

Also though the is putting the unicode value of the double quote, for some unknown reason Im getting "expected ')' " when the page loads.

Any suggestions how I can overcome this issue.

Regards,


Alongwith being a good coder, try to be a good professional as well!
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61092
    
  66

Moved to the JSP forum.


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

Joined: Jan 10, 2002
Posts: 61092
    
  66

When posting code, be sure that 'disable similes' is checked. You might want to edit your post to fix up you code examples.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JS + JSTL + HTML and escaping for double quotes