• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

Problem with JSTL c:out tag

 
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
 
Bartender
Posts: 3225
34
IntelliJ IDE Oracle Spring Chrome Java
  • 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?
 
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.
 
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).
 
Oh, sure, you could do that. Or you could eat some pie. While reading this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!