ch 12 compiling com\wrox\secure\*.java classes
-Following exactly the text in the books I can't compile the classes (com\wrox\secure\*.java)
-The error is:
com\wrox\secure\ForceLoginTag.java:3: package javax.servlet.http does not exist
import javax.servlet.http.HttpServletRequest;
^
com\wrox\secure\ForceLoginTag.java:4: package javax.servlet.http does not exist
import javax.servlet.http.HttpSession;
^
com\wrox\secure\ValidateTag.java:5: package javax.servlet.http does not exist
import javax.servlet.http.HttpServletRequest;
^
com\wrox\secure\ValidateTag.java:6: package javax.servlet.http does not exist
import javax.servlet.http.HttpSession;
^
com\wrox\secure\ForceLoginTag.java:20: cannot resolve symbol
symbol : class HttpSession
location: class com.wrox.secure.ForceLoginTag
HttpSession session = pageContext.getSession();
^
com\wrox\secure\ValidateTag.java:42: cannot resolve symbol
symbol : class HttpSession
location: class com.wrox.secure.ValidateTag
HttpSession thisSession = pageContext.getSession();
-First I changed the classpath into:
%CATALINA_HOME%\common\lib\jsp-api.jar;;%CATALINA_HOME%\common\lib\jsp-api.jar; as in the book
-Then I changed in dosbox to:
C:\java\Tomcat-5.0.9\webapps\Security\WEB-INF\classes
-Followed by command:
javac com\wrox\secure\*.java
How to solve this problem?
Thanks in advance JH
|