wood burning stoves 2.0*
The moose likes JSP and the fly likes Problem with JSTL c:out tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Problem with JSTL c:out tag" Watch "Problem with JSTL c:out tag" New topic
Author

Problem with JSTL c:out tag

Anand Ramachandran
Greenhorn

Joined: May 06, 2008
Posts: 3
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

Joined: Sep 08, 2007
Posts: 3056
    
  33

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?


Mohamed Sanaulla | My Blog
Ilari Moilanen
Ranch Hand

Joined: Apr 15, 2008
Posts: 198
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

Joined: Oct 14, 2008
Posts: 1337
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).
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with JSTL c:out tag
 
Similar Threads
How to Set HashMap in request attribute using JSTL Tag
Object does not support property error!
Implementation of google charts in JSP
JSTL & JavaScript
Struts and javascript