| 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: 56210
|
|
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!
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About 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: 56210
|
|
|
For Tomcat 6, the Servlet API is in servlet-api.jar, and the JSP API in jsp-api.jar.
|
 |
 |
|
|
subject: Where to find javax.servlet.jsp package?
|
|
|