aspose file tools*
The moose likes Servlets and the fly likes I don't have javax.servlet.*? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "I don Watch "I don New topic
Author

I don't have javax.servlet.*?

ricky gonzalez
Ranch Hand

Joined: Jun 30, 2000
Posts: 167
While compiling one of Sun's servlet examples, I got this:
BookDBServlet.java:23: package java.servlet does not exist
import java.servlet.*;
Am I missing something? Should I re-install my JDK1.3?
Thanks!
Carl Trusiak
Sheriff

Joined: Jun 13, 2000
Posts: 3340
Servlets are a seperate API from the standard jdk. You need to download it from Sun. I recommend you go ahead and get the full Java Server Development Kit which includes Servlets and JSP's etc. It can be downloaded here. http://java.sun.com/products/jsp/download.html


[This message has been edited by Carl Trusiak (edited September 14, 2000).]


I Hope This Helps
Carl Trusiak, SCJP2, SCWCD
ricky gonzalez
Ranch Hand

Joined: Jun 30, 2000
Posts: 167
THank you so much Carl....this shows my ignorance.
Irene Fernandez
Greenhorn

Joined: Jan 26, 1999
Posts: 15
One more thing to watch out for:
use==> import javax.servlet.*;
The servlet classes are in package javax. I have seen some examples which leave out the x.
Irene
[This message has been edited by Irene Fernandez (edited September 20, 2000).]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: I don't have javax.servlet.*?