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 javax.servlet.* package 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 "javax.servlet.* package" Watch "javax.servlet.* package" New topic
Author

javax.servlet.* package

Ramesh Bhagasra
Greenhorn

Joined: Nov 21, 2003
Posts: 8
cant find the package javax.servlet.*;
cant compile the java code because of this. please help me out..i have already searched out the src.zip to locate javax.servlet package. but javax folder exists but the servelet inside javax does not. please help at ur earliest..
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
You have to download it separately if you haven't already. It's not part of the standard java package. Once that's done copy servlet.jar to "jdk directory\jre\lib\ext\" folder.


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
Tim Baker
Ranch Hand

Joined: Oct 04, 2003
Posts: 541
if you have tomcat or probably any other container downloaded then you should find servlet.jar somewhere in the installation


Kim Jong II (North Korea's Dear Leader) said:Nuclear weapons don't kill people, people kill people.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60749
    
  65

Tim is correct. However, different containers may name the jar file something other than servlet.jar (as Tomcat does). Resin names it jsdk23.jar, for example. Check the documentation of whatever servlet container you are planning to use.
bear
[ December 10, 2003: Message edited by: Bear Bibeault ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: javax.servlet.* package
 
Similar Threads
new to servlets! plz help!!!
NetBeans 5.0
Help needed with Javax package
How to set javax in classpath
import javax.servlet.* error