net.sourceforge.formview.servlet
Class FormViewServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by net.sourceforge.formview.servlet.FormViewServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class FormViewServlet
extends javax.servlet.http.HttpServlet

Description : FormView Servlet wich store FormView resources into Servlet Context. This Servlet must be used if you want use Formview without Struts (otherwise use Plguin Struts) Exemple of config : formview net.sourceforge.formview.servlet.FormViewServlet formViewConfig /WEB-INF/form-view.xml,/WEB-INF/form-view2.xml validatorConfig /WEB-INF/validation.xml displayerConfig /WEB-INF/displayers-config.xml

Version:
1.0.0
Author:
Angelo ZERR
See Also:
Serialized Form

Field Summary
protected  FormViewResources resources
          The set of Form instances that have been created and initialized, keyed by the struts form name.
static long serialVersionUID
           
 
Constructor Summary
FormViewServlet()
           
 
Method Summary
 void destroy()
           
 void init()
           
protected  void initFormViewResources()
          Initialize the form view resources for this module.
 void mergeWithDisplayerConfig()
           
protected  void mergeWithValidator()
          Initialize the validator resources for this module.
 
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, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values

resources

protected FormViewResources resources
The set of Form instances that have been created and initialized, keyed by the struts form name.

Constructor Detail

FormViewServlet

public FormViewServlet()
Method Detail

init

public void init()
          throws javax.servlet.ServletException
Overrides:
init in class javax.servlet.GenericServlet
Throws:
javax.servlet.ServletException

destroy

public void destroy()
Specified by:
destroy in interface javax.servlet.Servlet
Overrides:
destroy in class javax.servlet.GenericServlet

initFormViewResources

protected void initFormViewResources()
                              throws java.io.IOException,
                                     javax.servlet.ServletException
Initialize the form view resources for this module.

Throws:
java.io.IOException - if an input/output error is encountered
javax.servlet.ServletException - if we cannot initialize these resources

mergeWithValidator

protected void mergeWithValidator()
                           throws java.io.IOException,
                                  javax.servlet.ServletException
Initialize the validator resources for this module.

Throws:
java.io.IOException - if an input/output error is encountered
javax.servlet.ServletException - if we cannot initialize these resources

mergeWithDisplayerConfig

public void mergeWithDisplayerConfig()
                              throws java.io.IOException,
                                     javax.servlet.ServletException
Throws:
java.io.IOException
javax.servlet.ServletException


Copyright 2006 null. All Rights Reserved.