j2ee newbie questions: resource not available.

D

DaLoverhino

Hello. I'm trying to learn J2EE. I am running Apache Tomcat/5.5.12 in
Windows XP. I must have overlooked something, but I can't seem to get
past the following problem that appears in my browser:


HTTP Status 404 - /Ch04/TopicList.jsp

type Status report
message /Ch04/TopicList.jsp
description The requested resource (/Ch04/TopicList.jsp) is not
available.

Apache Tomcat/5.5.12



That's when I type the following in my browser:

http://localhost:8080/Ch04/TopicList.jsp?topic=EL




Now, I've been able to isolate the problem. If I remove the following
nodes from my web.xml, the program works:

<!-- These elements are for the JSTL example -->
<taglib>
<taglib-uri>http://java.sun.com/jstl/core_rt</taglib-uri>
<tablib-location>/WEB-INF/tlds/c-rt.tld</taglib-location>
</taglib>

<taglib>
<taglib-uri>http://java.sun.com/jstl/format</taglib-uri>
<taglib-location>/WEB-INF/tlds/fmt.tld</taglib-location>
</taglib>


Here is TopicList.jsp:


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head><title>Topic Questions</title></head>
<body>
<h1>Topic Questions</h1>

<p>Click a link to get the answer.</p>
</body>
</html>



My guess is the tomcat server can't find the jar files associated with
c-rt.tld, and fmt.tld? So I placed those jar files into
TOMCAT_DIR\common\lib. That doesn't seem to work either. I think I am
using the standard tags 1.1.


Any leads/solutions would be appreciated.
 
S

slippymississippi

I would say it looks like you need a taglib directive in your JSP, but
I don't even see where you are *using* JSTL in your JSP.

Is the posted html code supposed to contain any JSTL?
 
D

DaLoverhino

I would say it looks like you need a taglib directive in your JSP, but
I don't even see where you are *using* JSTL in your JSP.

Is the posted html code supposed to contain any JSTL?

It use to, but I took it out, because I was trying to chase down the
error message posted. I started to chop parts of the jsp off to
isolate the problem.

Anyways, thanks for the reply... I think I'll put it back in and see if
anything changes. I did catch typos in the web.xml as I was isolating
the problem. So maybe, if I put the use of JSTL in the page, the
problem would be 'solved'.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top