wood burning stoves 2.0*
The moose likes JSP and the fly likes Where to find javax.servlet.jsp package? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Where to find javax.servlet.jsp package?" Watch "Where to find javax.servlet.jsp package?" New topic
Author

Where to find javax.servlet.jsp package?

gyan kumar
Ranch Hand

Joined: Sep 28, 2011
Posts: 61
I am using jdk6 and tomcat 6.
sagar kumar nerella
Greenhorn

Joined: Jul 09, 2011
Posts: 18

if you are using tomcat6 .
the default installation directory will be:
c:\program files\apache software foundation\tomcat 6.0.
in this directory you should find the lib(libraries) directory there you will find servlet.jar or tomcat-servlet.jar and also the main containers responsible for running of servletengine.

extract the jar file and set the class path to the extracted directory or just copy the jar file to the webapplication you building.


sagar kumar nerella,
java certified professional
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61626
    
  67

sagar kumar nerella wrote:extract the jar file and set the class path to the extracted directory or just copy the jar file to the webapplication you building.

NO!!!

Do not extract or copy the file anywhere! Leave it where it is and just make sure that the one jar file is in your compilation class path.

The last thing you need is multiple copies floating around that are likely to get out of version sync with each other.

Again, do not extract, do not copy!

And above all, do not ever copy it to your web application. Ever!


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
gyan kumar
Ranch Hand

Joined: Sep 28, 2011
Posts: 61
in my classpath servlet.jar file classpath is set but still not able to compile.
gyan kumar
Ranch Hand

Joined: Sep 28, 2011
Posts: 61
I just tried with jsp-api.jar and was able to compile.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61626
    
  67

For Tomcat 6, the Servlet API is in servlet-api.jar, and the JSP API in jsp-api.jar.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Where to find javax.servlet.jsp package?