Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HFSJ AdvisorTagHandler compile errors

 
Chip Post
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Greetings.

I'm unable to compile AdvisorTagHandler.java from Chapter 9.

Here are my imports:

package net.chippost;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.SimpleTagSupport;
import java.io.IOException;

public class AdvisorTagHandler extends SimpleTagSupport {

Here is my classpath:

$ echo $CLASSPATH
:/Users/chippost/Applications2/tomcat/common/lib/servlet-api.jar:./classes:.


But I'm getting the following compiler errors, is there somewhere else that needs to be in my CLASSPATH?
I'm on java version "1.5.0_16"

src/net/chippost/AdvisorTagHandler.java:3: package javax.servlet.jsp does not exist
import javax.servlet.jsp.JspException;
^
src/net/chippost/AdvisorTagHandler.java:4: package javax.servlet.jsp.tagext does not exist
import javax.servlet.jsp.tagext.SimpleTagSupport;


Any advice would be appreciated.

Thanks - chip


"Survival kit contents check. In them you'll find: one forty-five caliber automatic; two boxes of ammunition; four days' concentrated emergency rations; one drug issue containing antibiotics, morphine, vitamin pills, pep pills, sleeping pills, tranquilizer pills; one miniature combination Russian phrase book and Bible; one hundred dollars in rubles; one hundred dollars in gold; nine packs of chewing gum; one issue of prophylactics; three lipsticks; three pair of nylon stockings. Shoot, a fella' could have a pretty good weekend in Vegas with all that stuff"

- Major T. J. "King" Kong, Dr. Strangelove

 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You also need to put jsp-api.jar in the CLASSPATH.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic