my dog learned polymorphism
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

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Problem with JSTL c:out tag" Watch "Problem with JSTL c:out tag" New topic

Problem with JSTL c:out tag

Anand Ramachandran

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: 3152

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: 199
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

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:
subject: Problem with JSTL c:out tag
It's not a secret anymore!