LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-13-2005, 04:48 PM   #1
csfalcon
Member
 
Registered: Jun 2004
Location: MD
Distribution: Fedora Core
Posts: 269

Rep: Reputation: 31
jstl problem with c:out


Hi,

I have this simple hello world code for jstl

Code:
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
...
<c:set var="hello" value="Hello World!"/>
<c:out value="${hello}"/>
it is suppose to print out "Hello World!", but instead it prints "${hello}". I have included jstl.jar and standard.jar into the class path. Has anyone run into this before? Thanks.
 
Old 07-13-2005, 05:32 PM   #2
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
Try removing the quote from around ${hello}.

<c:out value=${hello}/>
 
Old 07-13-2005, 05:46 PM   #3
csfalcon
Member
 
Registered: Jun 2004
Location: MD
Distribution: Fedora Core
Posts: 269

Original Poster
Rep: Reputation: 31
I believe the quotes are needed, if I remove them I get this error:

org.apache.jasper.JasperException: /index.jsp(13,17) quote symbol expected

I forgot to mention I am using Eclipse 3.1 with Web Tool plugin to develop and deploy the webapps.
 
Old 07-14-2005, 06:20 PM   #4
vladmihaisima
Member
 
Registered: Oct 2002
Location: Delft, Netherlands
Distribution: Gentoo
Posts: 196

Rep: Reputation: 33
Works fine with NetBeans 4.1 and jdk 5.0.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
perl problem? apache problem? cgi problem? WorldBuilder Linux - Software 1 09-17-2003 08:45 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration