Java Servlet

Servlet Question:-1 Explain the life cycle methods of a Servlet.

Servlet Question:-2 What is the difference between the getRequestDispatcher(String path) method of javax.servlet.ServletRequest interface and javax.servlet.ServletContext interface?

Servlet Question:-3 Explain the directory structure of a web application.

Servlet Question:-4 What are the common mechanisms used for session tracking?

Servlet Question:-5 Explain ServletContext.

Servlet Question:-6 What is preinitialization of a servlet?

Servlet Question:-7 What is the difference between Difference between doGet() and doPost()?

Servlet Question:-8 What is the difference between HttpServlet and GenericServlet?

Servlet Question:-9 What is the difference between ServletContext and ServletConfig?

Servlet Question:-10 Is it the "servlets" directory or the "servlet" directory?

Servlet Question:-11 How do I support both GET and POST protocol from the same Servlet?

Servlet Question:-12 How do I ensure that my servlet is thread-safe?

Servlet Question:-13 What is the difference between URL encoding, URL rewriting, HTML escaping, and entity encoding?

Servlet Question:-14 How do I upload a file to my servlet or JSP?

Servlet Question:-15 How does a servlet communicate with a JSP page?

Servlet Question:-16 What's a better approach for enabling thread-safe servlets and JSPs?

Servlet Question:-17 Can a servlet maintain a JTA UserTransaction object across multiple servlet invocations?

Servlet Question:-18 How does the performance of JSP pages compare with that of servlets? How does it compare with Perl scripts? 

Servlet Question:-19 How do I call one servlet from another servlet?  

Servlet Question:-20 What are all the different kinds of servers? (Such as Web Servers, Application Servers, etc)  

Servlet Question:-21Should I override the service() method?