File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "about HttpRequest" Watch "about HttpRequest" New topic

about HttpRequest

amanda wu

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 package javax.servlet does not exist
import javax.servlet.*;
^ package javax.servlet.http does not exist
import javax.servlet.http.*;
Praful Thakare
Ranch Hand

Joined: Feb 10, 2001
Posts: 642
Hi Amanda
Try setting ur classpath as
where TOMCAT_T_HOME is path of directory where u have install tomcat
now compile ur file

All desirable things in life are either illegal, banned, expensive or married to someone else !!!
I agree. Here's the link:
subject: about HttpRequest
jQuery in Action, 3rd edition