• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with JSTL c:out tag

 
Anand Ramachandran
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a c:out JSTL tag in a Javascript function, it does not seem to work when I mix expressions with string
below is the code



I get expected ")" error in the javascript for the 2 c:out lines above
need help
Thanks in advance
 
Mohamed Sanaulla
Saloon Keeper
Posts: 3159
33
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Anand, Welcome to JavaRanch!!

Can you edit your post to disable smilies in the message? And also use Code tags to post your source code?
 
Ilari Moilanen
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you certain that the error is a javascript error as you say? Since if it is then why do you show us how the javascript is generated and not the final generated javascript function. The jstl part may of course be relevant (since it shows how you create the javascript function) but the final result is needed to see why the javascript is not valid.

If on the other hand you meant that the jstl is invalid then someone may help you with the code and see where you went wrong.
 
Lester Burnham
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What values do "snapShotDate" and "freeMemory" have? Since they're not in quotes in the JavaScript code, they could only be numbers (or you'll get errors).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic