It's not a secret anymore!*
The moose likes Servlets and the fly likes Loosing my first job bcz of Servlets..... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Loosing my first job bcz of Servlets....." Watch "Loosing my first job bcz of Servlets....." New topic
Author

Loosing my first job bcz of Servlets.....

Amit Tyagi
Ranch Hand

Joined: Oct 18, 2000
Posts: 52
Hi,
I am a new born fish in the servlets.
Could any body tell me about the basics of servlets.
How to run my first prog.? What are the free resources available on net?
What other things are required to apart from JDK1.3?
What are the things we have to know before starting this?
I am just loosing my first US job offer because of servlets.
I don't understand how can they expect a man to be perfect in all the fields?
Any way friends
I need your help....
Amit
anis mistry
Ranch Hand

Joined: Nov 11, 2000
Posts: 52
hi
apart from jdk1.3 you need jsdk2.0 this you can download from javasoft.com because
after you compile your prg the class file is stored in examples folder of the jsdk2.0 then start the servletrunner app from bin of the jsdk2.0 which acts as a server and it expects the class to be in the example folder and it connects at the port 8080
you have to buy a good book which is dedicated to servlets
such as INSIDE SERVLET OR SERVLET PROGRAMMING BY JAMES HUNTER
here is the smallest example of the servlet
import javax.servlet.*;
import java.io.*;
public class Hello extends GenericServlet
{
public void service(ServletRequest request, ServletResponse response) throws ServletException, IOException
{
PrintWriter pw;
pw=response.getWriter();
response.setContentType("text/html");
pw.println("<html> <b>Hello World <br>From Kishor </html>");
}
}
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
NO - don't get the JSDK, get the Tomcat server from
jakarta.apache.org
this is the official Sun reference implementation and is the version most in step with the current and future APIs
Bill

------------------
author of:
mamta m
Greenhorn

Joined: Nov 24, 2000
Posts: 4
Hello Amit,
"Inside Servlets " bu Dustin Callaway is a very good book for servlets. Try reading it.
Are you by any chance A friend of Girija Shanker (of Wipro)? LEt me know.
Regds
Mamta
Amit Tyagi
Ranch Hand

Joined: Oct 18, 2000
Posts: 52

Hi,
thank you all guys.
I have started my journey.
thanks
Amit
 
Consider Paul's rocket mass heater.
 
subject: Loosing my first job bcz of Servlets.....
 
Similar Threads
File writing synchronization
Java Experince: a pre-requisite to SCJP 5.0 or not??
OMG v/s Brainbench exams
Apache/Tomcat
help getting started with JSP's