| Article: |
Designing JSP Custom Tag Libraries | |
| Subject: | help trying tu run it | |
| Date: | 2004-06-25 00:24:00 | |
| From: | sjsobol | |
|
Response to: help trying tu run it
|
||
| Specifically, the class file containing the tag library handler needs to go in WEB-INF/classes. (At least, that's right for Jetty, which is what I use. Should be the same for Tomcat.) | ||
Showing messages 1 through 3 of 3.
-
help trying tu run it
2004-06-25 00:29:12 sjsobol [View]
-
help trying to run it
2004-06-29 18:00:41 jeepzy3 [View]
I made the corrections posted by sjsobol, moved the TLD file to the top level(was previously getting an error as well), but still can't seem to get this to work.
I am getting error:
org.apache.jasper.JasperException: /hello.jsp(7,16) Unable to load class hello
hello.jsp
<%@ taglib uri="/oreillySample.tld" prefix="sample" %>
<html>
<head>
<title>Your Standard Hello World Demo</title>
</head>
<body bgcolor="#ffffff">
<hr />
<sample:hello name="Sue"/>
<hr />
</body>
</html>
Any ideas of what else I can check? -- thanks -
help trying to run it
2004-06-29 18:02:44 jeepzy3 [View]
Forgot to mention... I am running jakarta-tomcat-4.1.27.



I use Apache to serve HTML/PHP. I am using Jetty to serve JSP files and servlets from the same directory as the HTML and PHP files. In my case, the example given by Sue required me to put the TLD file in the top directory of the website, not under WEB-INF. So it depends on what your specific setup is.