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.
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.