com.infosoftglobal.fusioncharts
Class InitServlet

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended bycom.infosoftglobal.fusioncharts.InitServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class InitServlet
extends javax.servlet.http.HttpServlet
implements javax.servlet.Servlet

Servlet implementation class for Servlet: InitServlet Initializes the database name,path,DSN.Also, it instantiates the DBConnection class
and puts it in the Application context so that all jsps can use this instance of
DBConnection class which has all the db related parameters configured.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.servlet.http.HttpServlet
 
Fields inherited from class javax.servlet.GenericServlet
 
Constructor Summary
InitServlet()
           
 
Method Summary
 void destroy()
           
 java.lang.String getServletInfo()
           
 void init(javax.servlet.ServletConfig config)
          Init method of the servlet.
Reads the ServletContext parameters, instantiates DBConnection class
and sets these values to it.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.Servlet
getServletConfig, service
 

Constructor Detail

InitServlet

public InitServlet()
See Also:
HttpServlet.HttpServlet()
Method Detail

destroy

public void destroy()
Specified by:
destroy in interface javax.servlet.Servlet
See Also:
Servlet.destroy()

getServletInfo

public java.lang.String getServletInfo()
Specified by:
getServletInfo in interface javax.servlet.Servlet
See Also:
Servlet.getServletInfo()

init

public void init(javax.servlet.ServletConfig config)
          throws javax.servlet.ServletException
Init method of the servlet.
Reads the ServletContext parameters, instantiates DBConnection class
and sets these values to it.

Specified by:
init in interface javax.servlet.Servlet
Throws:
javax.servlet.ServletException