LinuxQuestions.org
Review your favorite Linux distribution.
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 04-05-2004, 10:03 PM   #1
Travis86
Member
 
Registered: Dec 2002
Location: The land of GMT -6
Distribution: OS X, PS2 Linux, Ubuntu, IRIX 6.5
Posts: 399

Rep: Reputation: 31
Can't figure out how to use taglibs for JSP


I'm trying to learn JSP, and I've got enough working so that the simple "Hello, World" program works. The source is as follows:

Code:
<HTML>
<HEAD>
<% String title = "Hello World JSP"; %>
<TITLE><%= title %></title>
</head>
<BODY>
<H1><%= title %></h1>
</body>
</html>
Now I'm trying to run this program:

Code:
<%@ page contentType="text/html" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<HTML><HEAD>
<TITLE>hi</TITLE>
<body bgcolor="#FFFFFF">
<p><c:out value="hi"></p>
</BODY></HTML>
Unfortunately, this doesn't work.

I found that I was missing the standard taglibs, but even after I installed them, it didn't work.

These are the files in /WEB-INF/lib/ directory:
dom.jar
jaxp-api.jar
jdbc2_0-stdext.jar
jstl.jar
sax.jar
standard.jar
xalan.jar
xercesImpl.jar

All the files I need are there, right? What am I doing wrong?

Thanks

Last edited by Travis86; 04-06-2004 at 09:58 PM.
 
Old 04-06-2004, 09:58 PM   #2
Travis86
Member
 
Registered: Dec 2002
Location: The land of GMT -6
Distribution: OS X, PS2 Linux, Ubuntu, IRIX 6.5
Posts: 399

Original Poster
Rep: Reputation: 31
And for the eight people who looked at this previously: yes, I did change the question around a bit. Now, instead of asking where to put the files, I ask why are the files a put there working.

Kind of confusing, but it's better than starting a new thread.
 
  


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
Tomcat and Taglibs JohnCotter Programming 0 10-12-2003 10:13 PM
Why JSP and XML? Swift&Smart Programming 10 06-20-2003 08:28 PM
VB to JSP jayakrishnan Linux - General 3 05-08-2002 12:28 AM
ISP with JSP?... BCE_HAMAHA General 2 04-09-2002 12:30 PM
jsp deepak Programming 0 04-18-2001 09:49 AM

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

All times are GMT -5. The time now is 01:37 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