This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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: 613
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
Similar Threads
compile errors
javax.Servlet.. Oh where, oh wher can it be?
Compile error
problems compiling servlets