com.cl.taglibs.isq
Class Form

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by com.cl.taglibs.isq.Form
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public class Form
extends javax.servlet.jsp.tagext.BodyTagSupport

Form Tag Handler

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
Form()
          Creates new instance of tag handler
 
Method Summary
 int doAfterBody()
          This method is called after the JSP engine processes the body content of the tag.
 int doEndTag()
          This method is called after the JSP engine finished processing the tag.
 int doStartTag()
          This method is called when the JSP engine encounters the start tag, after the attributes are processed.
 java.lang.String getAction()
          Getter form property action
 java.util.Map getAttributes()
          Getter for property attribute
 java.lang.String getBean()
          Getter for the beanId
 JsValidator getJsValidator()
          return the object that hold javascript checking
 java.lang.String getMethod()
          Getter for property method
 java.lang.String getName()
          Setter for property name
 java.lang.String getSerializedAttributes()
          Build a property's string like key=value from attribute's Map if not null
 boolean isJsValidation()
          Getter for property jsValidation.
 void setAction(java.lang.String value)
          Setter for the action attribute.
 void setAttributes(java.util.Map attributes)
          Setter for property attributes
 void setBean(java.lang.String value)
          Setter for the bean attribute.
 void setJsValidation(boolean jsValidation)
          Setter for property jsValidation.
 void setMethod(java.lang.String value)
          Setter for the method attribute.
 void setName(java.lang.String value)
          Setter for the name attribute.
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doInitBody, getBodyContent, getPreviousOut, release, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
 

Constructor Detail

Form

public Form()
Creates new instance of tag handler

Method Detail

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException,
                      javax.servlet.jsp.JspException
This method is called when the JSP engine encounters the start tag, after the attributes are processed. Scripting variables (if any) have their values set here.

Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class javax.servlet.jsp.tagext.BodyTagSupport
Returns:
EVAL_BODY_BUFFERED if the JSP engine should evaluate the tag body, otherwise return SKIP_BODY. This method is automatically generated. Do not modify this method. Instead, modify the methods that this method calls.
Throws:
javax.servlet.jsp.JspException - JspException

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException,
                    javax.servlet.jsp.JspException
This method is called after the JSP engine finished processing the tag.

Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class javax.servlet.jsp.tagext.BodyTagSupport
Returns:
EVAL_PAGE if the JSP engine should continue evaluating the JSP page, otherwise return SKIP_PAGE. This method is automatically generated. Do not modify this method. Instead, modify the methods that this method calls.
Throws:
javax.servlet.jsp.JspException - JspException

doAfterBody

public int doAfterBody()
                throws javax.servlet.jsp.JspException
This method is called after the JSP engine processes the body content of the tag.

Specified by:
doAfterBody in interface javax.servlet.jsp.tagext.IterationTag
Overrides:
doAfterBody in class javax.servlet.jsp.tagext.BodyTagSupport
Returns:
EVAL_BODY_AGAIN if the JSP engine should evaluate the tag body again, otherwise return SKIP_BODY. This method is automatically generated. Do not modify this method. Instead, modify the methods that this method calls.
Throws:
javax.servlet.jsp.JspException - JspException

setName

public void setName(java.lang.String value)
Setter for the name attribute.

Parameters:
value - The name of the form

setAction

public void setAction(java.lang.String value)
Setter for the action attribute.

Parameters:
value - the action form

setMethod

public void setMethod(java.lang.String value)
Setter for the method attribute.

Parameters:
value - the form method, POST or GET

setBean

public void setBean(java.lang.String value)
Setter for the bean attribute.

Parameters:
value - The "main" Bean where value can be loaded from

isJsValidation

public boolean isJsValidation()
Getter for property jsValidation.

Returns:
Value of property jsValidation.

setJsValidation

public void setJsValidation(boolean jsValidation)
Setter for property jsValidation.

Parameters:
jsValidation - New value of property jsValidation.

getName

public java.lang.String getName()
Setter for property name

Returns:
property name

getAction

public java.lang.String getAction()
Getter form property action

Returns:
property action

getMethod

public java.lang.String getMethod()
Getter for property method

Returns:
property method

getBean

public java.lang.String getBean()
Getter for the beanId

Returns:
the beanId

getJsValidator

public JsValidator getJsValidator()
return the object that hold javascript checking

Returns:
javascript checking object

getAttributes

public java.util.Map getAttributes()
Getter for property attribute

Returns:
The Atrribut's map

setAttributes

public void setAttributes(java.util.Map attributes)
Setter for property attributes

Parameters:
attributes - Map's of attributes

getSerializedAttributes

public java.lang.String getSerializedAttributes()
                                         throws javax.servlet.jsp.JspTagException
Build a property's string like key=value from attribute's Map if not null

Returns:
The HTML string
Throws:
javax.servlet.jsp.JspTagException - JspTagException