Saturday, July 9, 2011

What is Servlet Class Hierarchy

The Java Servlet class hierarchy is given below. Like all java classes GenericServlet also inherits from Object class. Apart from GenericServlet and HttpServlet classes, ServletRequest, HttpServletRequest, ServeltResponse and HttpServletResponse are also helpful in writing a servlet. As you can guess ServletRequest & ServletResponse are used in conjunction with GenericServlet. These classes are used for processing protocol

What is Java Servlet Life Cycle and how to explain it

A servlet is managed through a well defined life cycle that defines how it is loaded and instantiated, is initialized, handles requests from clients, and is taken out of service. This life cycle is expressed in the API by the init, service, and destroy methods of the javax.servlet.Servlet interface that all servlets must implement directly or indirectly through the GenericServlet or HttpServlet abstract classes.

Stages of Servlet Lifecycle:

A servlet passes through the following stages in its life.
  • Initialize
  • Service
  • Destroy

What is Java Servlet

A servlet is a Java technology-based Web component answer to CGI programming, managed by a container that generates dynamic content. CGI was widely used for generating dynamic content before Servlets arrived. They were programs written mostly in C,C++ that run on a web server and used to build web pages.
Like other Java technology-based components, servlets are platform independent Java classes that are

Friday, July 8, 2011

How to make Customizable Corporate Menu Bar for NetBeans Platform Applications

I have study a blog from Oracle blog and found it very useful to create a highly customized menu bar in our NetBeans Platform application. You can also access this blog by click below link