Hello friends, I was trying for the past few days to start learning JSP and servlets. But i am not successful. I don't know exactly the sequence of steps to be followed in installing the servers required and the ClassPaths to be set. The books i have do not explain it properly. Can anyone please help me by explaining me how to get started? thank you very much Divya
Hello Divya, I suggest you start with 1)The book "Professional JSP" from wrox and 2)JavaWebServer 2.0 as your webserver. TO START THE WEBSERVER : Get into the bin directory under JavaWebserver2.0 and type the command "httpd" like this.. c:\JavaWebserver2.0\bin>httpd This should start the webserver where the webservices listen at port 8080 and the administration at port 9090. To work on servlets and jsp's place these files in either JavaWebserver2.0/public_html folder (or) in JavaWebserver2.0/examples/jsp(or)servlet folder. If you are putting your files in the public_html directory then to execute it, type the following URL in the address bar of IE/NETSCAPE.. http://localhost:8080/servlet/MyServlet (or) if it is a JSP.. http://localhost:8080/MyJSP If you are putting your files in the examples/servlets (or) jsp directory then to execute it, type the following URL in the address bar of IE/NETSCAPE.. http://localhost:8080/examples/servlets/MyServlet (or) if it is a JSP.. http://localhost:8080/examples/jsp/MyJSP. To compile servlet java files set your classpath to c:\javawebserver2.0\lib\servlet.jar.You will find other jars also conventionally placed under the lib directory. Hope this helps, Manjunath
Manjunath's suggestion is very good. Also you can follow the book "Java Servlets" by James Goodwill to start with servlets.It is good for beginners.It explains about webservers especially Java Web Server(JWS).Also It gives step by step procedure of JWS including configuration. Hope this book will help you to know about servlets.. Best Regards, Paramaguru
Divya Rajan
Greenhorn
Joined: Aug 15, 2001
Posts: 4
posted
0
Thanks manjunath and parama guru. Can you please suggest me where i can download the Java web server. Sun web site does not have it.