473,405 Members | 2,310 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

JSP 2.0 problem in Tomcat5.0.16

I 've wrtien a simple jsp in Tomcat 5.0.16, but get error:
"org.apache.jasper.JasperException: The absolute uri:
http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or
the jar files deployed with this application"

What's the problem on it? Thanks.

The Jsp is:
===========================================
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib tagdir="/WEB-INF/tags" prefix="h" %>
<html>
<head><title>Hello</title></head>
<c:set var="greeting" value="Hello" />
<h2>${greeting}, What's your name?</h2>
<form method="get">
<input type="text" name="username" s ize="25">
<p></p>
<input type="submit" value="Submit">
<input type="reset" value="Reset">
</form>
<c:if test="${fn:length(param.username) > 0}" >
<h:response greeting="${greeting}" name="${param.username}"/>
</c:if>
</body>
</html>
===========================================

A tag in /WEB-INF/tags called response.tag :
===========================================
<%@ attribute name="greeting" required="true"%>
<%@ attribute name="name" required="true"%>
<h2><font color="black">${greeting}, ${name}!</font></h2>
===========================================

A dummy web.xml using 2.4 Schema:
===========================================
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
</web-app>
===========================================

Is tomcat5.0.x default setting use jsp2.0? if not how to set it to use?
Thanks, again!
Jul 17 '05 #1
0 1885

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Tombo | last post by:
Hi, I'm trying to get PHP running as a CGI app on Tomcat. I've managed to do sufficent Tomcat setup to get it to invoke the PHP interpreter, but all I get is the feared "No input file specified."...
0
by: Martin | last post by:
I 've wrtien a simple jsp in Tomcat 5.0.16, but get error: "org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar...
0
by: Liza | last post by:
Hi, I run Tomcat5.0.24 on Fedora Core 1. I have two hosts defined in server.xml in a following way: <Host name ="WebTest1.something.com" debug="0" appBase="webapps" unpackWARs="true"...
0
by: SAIRAAM | last post by:
we have created a web service in notepad.we have compiled it. which automatically generated wsdl and mapping.xml file. whether we have to use ant concept here...if yes how???? coding for web.xml...
0
by: Chen Yang | last post by:
Hi all, I have been working on this problem for two days, any suggestion would be very appreciated. I am installing Tomcat5 on CentOS 4.2 with the following instructions:...
10
by: sssk28 | last post by:
i have installed fedora core 6 and i am getting following error: type Exception report message description The server encountered an internal error () that prevented it from fulfilling this...
9
by: mak1084 | last post by:
hi folks, i installed tomcat 5.5... and there was already jdk 1.5.0.02 was installed. i cofigure the path JAVA_HOME and CLASSPATH corectly but i'm not able to compile servlet. do i need to add ne...
1
by: aradhanathawait | last post by:
Hi all Please tell me the default Login Id and password for Tomcat5.0 Admin. I have installed tomcat5 on Red hat linux 4, it didn't ask for admin password during installlation. Thanx and...
5
oll3i
by: oll3i | last post by:
is there any way i could run jsp files from eclipse i have tomcat added in eclipse but when i try to run a jsp file on a server it says the server failed to start i dont want to copy the files...
1
by: aradhanathawait | last post by:
hiii Please tell me the proceure to install tomcat5 in RHEL5.0 . I m a novice to Linux please help Regards, Aradhana
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.