Tuesday 12 June 2012

Servlet For You


This Servlet tutorial is also a good starting guide for the beginners. You will learn how to write Servlet, compile, configure on Tomcat, start server and test the Servlet. We will also explain how you can recompile and test the Servlet if there is any error or code modification is needed.
Servlet is used for developing server side programs for a web application based on JAVA. Servlet is based on request response model which can handle any type of request but Servlet also provides Http specific API to handle Http request more efficiently and easily.
Previously CGI was the means of providing dynamic content. CGI was platform dependent and needs to recompile the programs in the new operating system, it is process based. But Servlet is platform independent because of Java's platform independent feature and is thread based. Servlet are more advantageous over CGI in terms of features like Platform Independence, Performance, Extensibility and Security etc.
Servlet runs on JVM on the server and so safe and portable. Servlet do not require java in web browser unlike Applets.


Topics In Servlets



3.Servlet Classes and Interfaces

4.First Servlet Program

5.MIME Type for Servlets

6.URL Patterns

7.About HttpRequest Object

8.About HttpResponse Object

9.Techniques to follow to Request Process

10.Difference Between GET and POST

11.Reading Form Data

12.Difference between Web Server and Application Server

13.Form Validation(Client Side)

14.Form Validation(Server Side)

15.Servlet to Database s/w Communication

16.Difference between ServletConfig and ServletContext

17.Servlet Chaning

18.SendRedirection 

19.Pass data from one servlet to anther servlet
  1. Request Attribute
  2. Session Attribute
  3. ServletContext Attribute
  1. Hidden Form fields
  2. Cookies
  3. HttpSession with Cookies
  4. HttpSession with URL rewriting
21.Thread safety in Servlet Programming

22.Applet with Servlet



25.Servlet Objective Questions

26.Servlet interview Questions with Answers










No comments:

Post a Comment