wood burning stoves 2.0*
The moose likes Tomcat and the fly likes about servlet path 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 » Products » Tomcat
Bookmark "about servlet path" Watch "about servlet path" New topic

about servlet path

surya rajugaru

Joined: Oct 28, 2004
Posts: 1
i ma getting these errors while compileing ,i am using xp ,do i need any path to set mail me plz
"src\com\example\web\BeerSelect.java:2: package javax.servlet does not exist
import javax.servlet.*;
src\com\example\web\BeerSelect.java:3: package javax.servlet does not exist
import javax.servlet.http;
src\com\example\web\BeerSelect.java:4: cannot resolve symbol
symbol : class io
location: package java
import java.io;
src\com\example\web\BeerSelect.java:6: cannot resolve symbol
symbol : class HttpServlet
location: class com.example.web.BeerSelect
class BeerSelect extends HttpServlet{
src\com\example\web\BeerSelect.java:7: cannot resolve symbol
symbol : class HttpServletRequest
location: class com.example.web.BeerSelect
public void doPost(HttpServletRequest request,HttpServletResponse response)throws IOException,ServletException{"

And some more similar errors. Please advise me what to do and also tell me what does "...servlet-api.jar:classes:." mean in the above command
Joyce Lee
Ranch Hand

Joined: Jul 11, 2003
Posts: 1392
Hi Surya,

This thread might have your answer.

[ October 28, 2004: Message edited by: Joyce Lee ]
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: about servlet path
Similar Threads
Newbie question: Going through Head First Servlets & JSP book
How To Compile Servlet
Deploying Servlets on tomcat
problem in compiling servlet
package does not exist problem