This week's book giveaways are in the Scala and Android forums.
We're giving away four copies each of Machine Learning Systems: Designs that scale and Xamarin in Action: Creating native cross-platform mobile apps and have the authors on-line!
See this thread and this one for details.
Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JS + JSTL + HTML and escaping for double quotes  RSS feed

 
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,
 
Author and ninkuma
Marshal
Posts: 66677
167
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
Posts: 66677
167
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.
 
I suggest huckleberry pie. But the only thing on the gluten free menu is this tiny ad:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!