• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JS + JSTL + HTML and escaping for double quotes

 
Tina Desai
Ranch Hand
Posts: 365
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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,
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65229
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moved to the JSP forum.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65229
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When posting code, be sure that 'disable similes' is checked. You might want to edit your post to fix up you code examples.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic