jQuery in Action, 2nd edition
The moose likes JSP and the fly likes JS + JSTL + HTML and escaping for double quotes Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply 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: 56232
    
  13

Moved to the JSP forum.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56232
    
  13

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
 
Similar Threads
q on JSTL
JSP Struts/JSTL Form problem
c:out JSTL tag of the core libaray of general purpose
JSTL not working
howto use JSTL foreach to display list ?