jp.terasoluna.fw.web.struts.taglib
Class JavascriptValidatorTagEx

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by org.apache.struts.taglib.html.JavascriptValidatorTag
              extended by jp.terasoluna.fw.web.struts.taglib.JavascriptValidatorTagEx
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 JavascriptValidatorTagEx
extends org.apache.struts.taglib.html.JavascriptValidatorTag

Class extended from JavascriptValidatorTag class. This JavascriptValidatorTag class is provided in Struts. Full-width and half-width kana string which is fetched from property file is output as Javascript variable.

Attribute supported by tag

Refer to API of <html:javascript> tag.

See Also:
FieldChecksEx, Serialized Form

Field Summary
private static long serialVersionUID
          Serial version ID
 
Fields inherited from class org.apache.struts.taglib.html.JavascriptValidatorTag
bundle, cdata, defaultLocale, dynamicJavascript, formName, HTML_BEGIN_COMMENT, HTML_END_COMMENT, htmlComment, jsFormName, lineEnd, methodName, page, scriptLanguage, src, staticJavascript
 
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
JavascriptValidatorTagEx()
           
 
Method Summary
 int doStartTag()
          It is called at the time of starting tag evaluation. Fetches half-width and full-width kana list from the variable of FieldCheckEx class and outputs it as the JavaScript variable.
protected  java.lang.String renderKanaList()
          Fetches half-width kana and full-width kana string from FieldCheckEx class, edits it as the string of JavaScript variable definition and returns the string.
 
Methods inherited from class org.apache.struts.taglib.html.JavascriptValidatorTag
getBundle, getCdata, getDynamicJavascript, getFormName, getHtmlComment, getJavascriptBegin, getJavascriptEnd, getJavascriptStaticMethods, getJsFormName, getMethod, getPage, getScriptLanguage, getSrc, getStaticJavascript, release, renderJavascript, renderStartElement, setBundle, setCdata, setDynamicJavascript, setFormName, setHtmlComment, setJsFormName, setMethod, setPage, setScriptLanguage, setSrc, setStaticJavascript
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doEndTag, doInitBody, getBodyContent, getPreviousOut, 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
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Serial version ID

See Also:
Constant Field Values
Constructor Detail

JavascriptValidatorTagEx

public JavascriptValidatorTagEx()
Method Detail

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
It is called at the time of starting tag evaluation. Fetches full-width and half-width kana list from the variable of FieldCheckEx class and outputs it as JavaScript variable.

Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class org.apache.struts.taglib.html.JavascriptValidatorTag
Returns:
Process result
Throws:
javax.servlet.jsp.JspException - Exception when the process fails

renderKanaList

protected java.lang.String renderKanaList()
Fetches half-width and full-width kana string from FieldCheckEx class, edits it as the string of JavaScript variable definition and returns the string.

Returns:
Variable definition string of full-width and half-width kana.