Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

about servlet path

 
surya rajugaru
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1392
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Surya,

This thread might have your answer.

Joyce
[ October 28, 2004: Message edited by: Joyce Lee ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic