Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

taglib - O'Reilly tutorial problem

Zollinhofer, Matt

2004-05-17

Replies:

I am running Tomcat 5.0.1.9 on OS X. I found an O'Reilly tutorial
online (http://www.onjava.com/pub/a/onjava/2001/04/19/tomcat.html) which
I always find helpful. Following the tutorial, I got basic jsp/servlets
working.

The last part of the tutorial is creating custom tags, and when I
implement that part of the tutorial, I receive a
javax.servlet.ServletException:
javax.servlet.jsp.tagext.TagInfo.<init>(...) exception. Googling the
error didn't turn up any seemingly useful information, and the end of
the article also did not show anyone else having the same issue.

--code--

<%@(protected)" %>

<html>
<head>
<title>OnJava Demo</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
</head>

<table width="500" border="0" cellspacing="0" cellpadding="0">
<tr>
 <td> </td>
</tr>
<tr>
<td>
 <img src="/onjava/images/monitor2.gif"></td>
<td>
<!-- With this line uncommented and the next line commented (and the
first line of the file deleted), everything works great -->

<!--  <b>Welcome : <%= request.getAttribute("USER")%></b> -->
 <b><onjava:hello /> : <%= request.getAttribute("USER") %></b>

<!-- but I get the error with the current setup -->

</td>
</tr>
<tr>
 <td> </td>
</tr>
</table>
</body>
</html>

--code-


I feel like I'm missing something fairly obvious, but I've followed the
tutorial exactly (as best I can tell). If it would help to see more
code or anything please let me know and I'll post it. The web.xml has
<taglib> tags and the taglib.tld is in the lib directory. If there are
any resources you can point me to I'd be appreciative.

Thanks for you consideration,
matt

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.