aspose file tools*
The moose likes JSP and the fly likes about HttpRequest Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "about HttpRequest" Watch "about HttpRequest" New topic
Author

about HttpRequest

amanda wu
Greenhorn

Joined: Mar 16, 2003
Posts: 25
i am using j2sdk1.4.1, ant, and tomcat,
why javax.servlet etc cannot be found?
and methods like getRequestedSessionID() etc also cannot be found
the following is the msg :
C:\jakarta-tomcat-4.1.18\webapps\cartapp\WEB-INF\classes\com\cartapp\user>javac
statBean.java
statBean.java:3: package javax.servlet does not exist
import javax.servlet.*;
^
statBean.java:4: package javax.servlet.http does not exist
import javax.servlet.http.*;
^
Praful Thakare
Ranch Hand

Joined: Feb 10, 2001
Posts: 641
Hi Amanda
Try setting ur classpath as
ON WINDOWS
CLASSPATH=%CLASSPATH%;TOMCAT_HOME/common/lib/servlet.jar
[B] ON LINUX [\B]
CLASSPATH=$CLASSPATH:CAT$TOMCAT_HOME/common/lib/servlet.jar
where TOMCAT_T_HOME is path of directory where u have install tomcat
now compile ur file
regards


All desirable things in life are either illegal, banned, expensive or married to someone else !!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: about HttpRequest