• Post Reply Bookmark Topic Watch Topic
  • New Topic

Compiling my first custom tag handler  RSS feed

 
Brad Strausbaugh
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to compile my first tag handler. Actually, it's the one in Head First Servlets and JSPs at the end of Chapter 9, the AdvisorTagHandler class.

The compiler complains about my imports, namely that javax.servlet.jsp.JspException does not exist. My compile command looks like this and I have verified that servlet-api.jar actually resides where the classpath is indicating...



Does anything jump out? Or can anyone suggest something to try? Here is the source that I'm trying to compile. The first error occurs on the first import line ...

 
Gamini Sirisena
Ranch Hand
Posts: 378
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've checked servlet.jar (no servlet-api.jar in this distribution) in jakarta-tomcat-4.1.29\common\lib and javax.servlet.jsp.JspException is in it.

However in Tomcat 5.5 you don't get servlet.jar

It seems in Tomcat 5.5 javax.servlet.jsp.JspException is in jsp-api.jar
Try using that..
 
Brad Strausbaugh
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, Gamini. That did the trick.

-Brad
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!