File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Dual Inquiries Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Dual Inquiries" Watch "Dual Inquiries" New topic
Author

Dual Inquiries

Cory Kaos
Greenhorn

Joined: Mar 28, 2001
Posts: 5
I am jumping in feet-first to server-side Java programming and have been charged with upgrading some servlets on a work project.
Two Questions:
1) I have looked over the available texts and tenuously decided on "Core Java Servlets & JSP" by Marty Hall (ISBN 0130893404). Can anyone confirm that this is a worthwhile text?
2) Also, being a complete newbster to servlets, I ran into problems compiling some servlet code that referenced a sun.servlet.http package, specifically the HttpServer class. I am "developing" in JBuilder4 and I did find that this file (ServletServer.java) could be a generated file. However, JB4 can't find the package and I scoured every JAR within a mile to no avail. I am sure I'm missing something elementary that will be cleared up in the first 3 chapters of any servlet book, but would someone entertain the question of where this package can be found?
Thanks in advance......
------------------
Cory Kaos
SCJP2
[This message has been edited by Cory Kaos (edited April 18, 2001).]


Cory Kaos<br />SCPJ2
maha anna
Ranch Hand

Joined: Jan 31, 2000
Posts: 1467
Cory,
The servlet package is an extension to the core java sdk pack. We have to download them extra. There is a servlet.jar file when we download Tomcat. when you install Tomcat in c:\ , you can locate this servlet.jar as C:\jakarta-tomcat\lib\servlet.jar;
You have to add this path C:\jakarta-tomcat\lib\servlet.jar; to your classpath. Then onwards you can compile your servlets. You may also have to add tools.jar which can be found from c:\jdk1.2.2\lib\tools.jar; to your classpath.
Here is a good set of instructions for installing tomcat! http://www.javaranch.com/ubb/Forum7/HTML/000598.html
In case if you already have a servlet.jar in your machine add it to your classpath through autoexec.bat.
regds
maha anna
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Dual Inquiries