marino      2004/03/11 18:06:18

  Added:       docs/javadoc/org/apache/velocity/tools/struts
                        ValidatorUtils.html
  Log:
  javadoc
  
  Revision  Changes    Path
  1.1                  
jakarta-velocity-tools/docs/javadoc/org/apache/velocity/tools/struts/ValidatorUtils.html
  
  Index: ValidatorUtils.html
  ===================================================================
  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
"http://www.w3.org/TR/html4/loose.dtd";>
  <!--NewPage-->
  <HTML>
  <HEAD>
  <!-- Generated by javadoc (build 1.4.2_01) on Fri Mar 12 02:01:03 GMT 2004 -->
  <TITLE>
  ValidatorUtils (Velocity Tools 1.1-dev Documentation)
  </TITLE>
  
  <META NAME="keywords" CONTENT="org.apache.velocity.tools.struts.ValidatorUtils 
class">
  
  <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" 
TITLE="Style">
  
  <SCRIPT type="text/javascript">
  function windowTitle()
  {
      parent.document.title="ValidatorUtils (Velocity Tools 1.1-dev Documentation)";
  }
  </SCRIPT>
  
  </HEAD>
  
  <BODY BGCOLOR="white" onload="windowTitle();">
  
  
  <!-- ========= START OF TOP NAVBAR ======= -->
  <A NAME="navbar_top"><!-- --></A>
  <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
  <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  <TR>
  <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  <A NAME="navbar_top_firstrow"><!-- --></A>
  <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
    <TR ALIGN="center" VALIGN="top">
    <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A 
HREF="../../../../../overview-summary.html"><FONT 
CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
    <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT 
CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
    <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT 
CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
    <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT 
CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
    <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A 
HREF="../../../../../deprecated-list.html"><FONT 
CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
    <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A 
HREF="../../../../../index-all.html"><FONT 
CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
    <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A 
HREF="../../../../../help-doc.html"><FONT 
CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
    </TR>
  </TABLE>
  </TD>
  <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  </EM>
  </TD>
  </TR>
  
  <TR>
  <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  &nbsp;<A 
HREF="../../../../../org/apache/velocity/tools/struts/ValidatorTool.ValidatorActionComparator.html"
 title="class in org.apache.velocity.tools.struts"><B>PREV CLASS</B></A>&nbsp;
  &nbsp;<A 
HREF="../../../../../org/apache/velocity/tools/struts/ValidatorUtils.ValidatorActionComparator.html"
 title="class in org.apache.velocity.tools.struts"><B>NEXT CLASS</B></A></FONT></TD>
  <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
    <A HREF="../../../../../index.html" target="_top"><B>FRAMES</B></A>  &nbsp;
  &nbsp;<A HREF="ValidatorUtils.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
  &nbsp;<SCRIPT type="text/javascript">
    <!--
    if(window==top) {
      document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All 
Classes</B></A>');
    }
    //-->
  </SCRIPT>
  <NOSCRIPT>
    <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
  </NOSCRIPT>
  
  </FONT></TD>
  </TR>
  <TR>
  <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
    SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;<A 
HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A 
HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A 
HREF="#method_summary">METHOD</A></FONT></TD>
  <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A 
HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A 
HREF="#method_detail">METHOD</A></FONT></TD>
  </TR>
  </TABLE>
  <A NAME="skip-navbar_top"></A>
  <!-- ========= END OF TOP NAVBAR ========= -->
  
  <HR>
  <!-- ======== START OF CLASS DATA ======== -->
  <H2>
  <FONT SIZE="-1">
  org.apache.velocity.tools.struts</FONT>
  <BR>
  Class ValidatorUtils</H2>
  <PRE>
  java.lang.Object
    <IMG SRC="../../../../../resources/inherit.gif" ALT="extended 
by"><B>org.apache.velocity.tools.struts.ValidatorUtils</B>
  </PRE>
  <DL>
  <DT><B>All Implemented Interfaces:</B> <DD><A 
HREF="../../../../../org/apache/velocity/tools/view/tools/ViewTool.html" 
title="interface in org.apache.velocity.tools.view.tools">ViewTool</A></DD>
  </DL>
  <HR>
  <DL>
  <DT>public class <B>ValidatorUtils</B><DT>extends java.lang.Object<DT>implements <A 
HREF="../../../../../org/apache/velocity/tools/view/tools/ViewTool.html" 
title="interface in org.apache.velocity.tools.view.tools">ViewTool</A></DL>
  
  <P>
  <p>View tool that works with Struts Validator to
      produce client side javascript validation for your forms.</p>
   <p>Usage:
   <pre>
   Template example:
  
   $validator.getJavascript("nameOfYourForm")
  
   Toolbox configuration:
   &lt;tool&gt;
     &lt;key&gt;validator&lt;/key&gt;
     &lt;scope&gt;request&lt;/scope&gt;
     &lt;class&gt;org.apache.velocity.tools.struts.ValidatorTool&lt;/class&gt;
   &lt;/tool&gt;
   </pre>
   </p>
   <p>This is an adaptation of the JavascriptValidatorTag
   from the Struts 1.1 validator library.</p>
  <P>
  
  <P>
  <DL>
  <DT><B>Since:</B></DT>
    <DD>VelocityTools 1.1</DD>
  <DT><B>Version:</B></DT>
    <DD>$Revision: 1.1 $ $Date: 2004/03/12 02:06:18 $</DD>
  <DT><B>Author:</B></DT>
    <DD>David Winterfeldt, David Graham, <a href="mailto:[EMAIL PROTECTED]">Marino A. 
Jonsson</a>, <a href="mailto:[EMAIL PROTECTED]">Nathan Bubna</a></DD>
  </DL>
  <HR>
  
  <P>
  <!-- ======== NESTED CLASS SUMMARY ======== -->
  
  <A NAME="nested_class_summary"><!-- --></A>
  <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  <TD COLSPAN=2><FONT SIZE="+2">
  <B>Nested Class Summary</B></FONT></TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>protected &nbsp;class</CODE></FONT></TD>
  <TD><CODE><B><A 
HREF="../../../../../org/apache/velocity/tools/struts/ValidatorUtils.ValidatorActionComparator.html"
 title="class in 
org.apache.velocity.tools.struts">ValidatorUtils.ValidatorActionComparator</A></B></CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Inner class for use when 
creating dynamic javascript</TD>
  </TR>
  </TABLE>
  &nbsp;
  <!-- =========== FIELD SUMMARY =========== -->
  
  <A NAME="field_summary"><!-- --></A>
  <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  <TD COLSPAN=2><FONT SIZE="+2">
  <B>Field Summary</B></FONT></TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>protected &nbsp;javax.servlet.ServletContext</CODE></FONT></TD>
  <TD><CODE><B><A 
HREF="../../../../../org/apache/velocity/tools/struts/ValidatorUtils.html#app">app</A></B></CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A reference to the 
ServletContext</TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>private &nbsp;boolean</CODE></FONT></TD>
  <TD><CODE><B><A 
HREF="../../../../../org/apache/velocity/tools/struts/ValidatorUtils.html#cdata">cdata</A></B></CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>protected &nbsp;<A 
HREF="../../../../../org/apache/velocity/tools/view/context/ViewContext.html" 
title="interface in 
org.apache.velocity.tools.view.context">ViewContext</A></CODE></FONT></TD>
  <TD><CODE><B><A 
HREF="../../../../../org/apache/velocity/tools/struts/ValidatorUtils.html#context">context</A></B></CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A reference to the 
ViewContext</TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>protected &nbsp;org.apache.commons.validator.Form</CODE></FONT></TD>
  <TD><CODE><B><A 
HREF="../../../../../org/apache/velocity/tools/struts/ValidatorUtils.html#form">form</A></B></CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>private &nbsp;java.lang.String</CODE></FONT></TD>
  <TD><CODE><B><A 
HREF="../../../../../org/apache/velocity/tools/struts/ValidatorUtils.html#formName">formName</A></B></CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>private static&nbsp;java.lang.String</CODE></FONT></TD>
  <TD><CODE><B><A 
HREF="../../../../../org/apache/velocity/tools/struts/ValidatorUtils.html#HTML_BEGIN_COMMENT">HTML_BEGIN_COMMENT</A></B></CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>private static&nbsp;java.lang.String</CODE></FONT></TD>
  <TD><CODE><B><A 
HREF="../../../../../org/apache/velocity/tools/struts/ValidatorUtils.html#HTML_END_COMMENT">HTML_END_COMMENT</A></B></CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>private &nbsp;boolean</CODE></FONT></TD>
  <TD><CODE><B><A 
HREF="../../../../../org/apache/velocity/tools/struts/ValidatorUtils.html#htmlComment">htmlComment</A></B></CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>protected &nbsp;java.util.Locale</CODE></FONT></TD>
  <TD><CODE><B><A 
HREF="../../../../../org/apache/velocity/tools/struts/ValidatorUtils.html#locale">locale</A></B></CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>protected &nbsp;org.apache.struts.util.MessageResources</CODE></FONT></TD>
  <TD><CODE><B><A 
HREF="../../../../../org/apache/velocity/tools/struts/ValidatorUtils.html#messages">messages</A></B></CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>private &nbsp;java.lang.String</CODE></FONT></TD>
  <TD><CODE><B><A 
HREF="../../../../../org/apache/velocity/tools/struts/ValidatorUtils.html#methodName">methodName</A></B></CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>private &nbsp;int</CODE></FONT></TD>
  <TD><CODE><B><A 
HREF="../../../../../org/apache/velocity/tools/struts/ValidatorUtils.html#page">page</A></B></CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>protected &nbsp;javax.servlet.http.HttpServletRequest</CODE></FONT></TD>
  <TD><CODE><B><A 
HREF="../../../../../org/apache/velocity/tools/struts/ValidatorUtils.html#request">request</A></B></CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A reference to the 
HttpServletRequest.</TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>protected 
&nbsp;org.apache.commons.validator.ValidatorResources</CODE></FONT></TD>
  <TD><CODE><B><A 
HREF="../../../../../org/apache/velocity/tools/struts/ValidatorUtils.html#resources">resources</A></B></CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A reference to the 
HttpSession.</TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>protected &nbsp;javax.servlet.http.HttpSession</CODE></FONT></TD>
  <TD><CODE><B><A 
HREF="../../../../../org/apache/velocity/tools/struts/ValidatorUtils.html#session">session</A></B></CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A reference to the 
HttpSession.</TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>private &nbsp;java.lang.String</CODE></FONT></TD>
  <TD><CODE><B><A 
HREF="../../../../../org/apache/velocity/tools/struts/ValidatorUtils.html#src">src</A></B></CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>private &nbsp;boolean</CODE></FONT></TD>
  <TD><CODE><B><A 
HREF="../../../../../org/apache/velocity/tools/struts/ValidatorUtils.html#xhtml">xhtml</A></B></CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  </TR>
  </TABLE>
  &nbsp;
  <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  
  <A NAME="constructor_summary"><!-- --></A>
  <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  <TD COLSPAN=2><FONT SIZE="+2">
  <B>Constructor Summary</B></FONT></TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD><CODE><B><A 
HREF="../../../../../org/apache/velocity/tools/struts/ValidatorUtils.html#ValidatorUtils()">ValidatorUtils</A></B>()</CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default constructor. 
</TD>
  </TR>
  </TABLE>
  &nbsp;
  <!-- ========== METHOD SUMMARY =========== -->
  
  <A NAME="method_summary"><!-- --></A>
  <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  <TD COLSPAN=2><FONT SIZE="+2">
  <B>Method Summary</B></FONT></TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>&nbsp;java.util.List</CODE></FONT></TD>
  <TD><CODE><B><A 
HREF="../../../../../org/apache/velocity/tools/struts/ValidatorUtils.html#createActionList()">createActionList</A></B>()</CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get List of actions for 
the given Form.</TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
  <TD><CODE><B><A 
HREF="../../../../../org/apache/velocity/tools/struts/ValidatorUtils.html#createMethods(java.util.List)">createMethods</A></B>(java.util.List&nbsp;actions)</CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates the JavaScript 
methods list from the given actions.</TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>&nbsp;boolean</CODE></FONT></TD>
  <TD><CODE><B><A 
HREF="../../../../../org/apache/velocity/tools/struts/ValidatorUtils.html#getCdata()">getCdata</A></B>()</CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the cdata 
setting "true" or "false".</TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
  <TD><CODE><B><A 
HREF="../../../../../org/apache/velocity/tools/struts/ValidatorUtils.html#getDynamicJavascript()">getDynamicJavascript</A></B>()</CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Render just the dynamic 
JavaScript to perform validations based
   on the form name already set the form name via <CODE>#setFormName</CODE>
   or the form name attribute of the action mapping associated
   with the current request (if such exists). </TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
  <TD><CODE><B><A 
HREF="../../../../../org/apache/velocity/tools/struts/ValidatorUtils.html#getDynamicJavascript(java.lang.String)">getDynamicJavascript</A></B>(java.lang.String&nbsp;formName)</CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Render just the dynamic 
JavaScript to perform validations based
   on the supplied form name. </TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>&nbsp;boolean</CODE></FONT></TD>
  <TD><CODE><B><A 
HREF="../../../../../org/apache/velocity/tools/struts/ValidatorUtils.html#getHtmlComment()">getHtmlComment</A></B>()</CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets whether or not to 
delimit the
   JavaScript with html comments.  </TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
  <TD><CODE><B><A 
HREF="../../../../../org/apache/velocity/tools/struts/ValidatorUtils.html#getJavascript()">getJavascript</A></B>()</CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Render both dynamic and 
static JavaScript to perform
   validations based on the form name already set the form name
   via <CODE>#setFormName</CODE> or the form name attribute of the action
   mapping associated with the current request (if such exists).</TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
  <TD><CODE><B><A 
HREF="../../../../../org/apache/velocity/tools/struts/ValidatorUtils.html#getJavascript(java.lang.String)">getJavascript</A></B>(java.lang.String&nbsp;formName)</CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Render both dynamic and 
static JavaScript to perform
   validations based on the supplied form name.</TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>protected &nbsp;java.lang.String</CODE></FONT></TD>
  <TD><CODE><B><A 
HREF="../../../../../org/apache/velocity/tools/struts/ValidatorUtils.html#getJavascript(java.lang.String,
 boolean)">getJavascript</A></B>(java.lang.String&nbsp;formName,
                boolean&nbsp;getStatic)</CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Render both dynamic and 
static JavaScript to perform
   validations based on the supplied form name.</TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>protected &nbsp;java.lang.String</CODE></FONT></TD>
  <TD><CODE><B><A 
HREF="../../../../../org/apache/velocity/tools/struts/ValidatorUtils.html#getJavascriptBegin(java.lang.String)">getJavascriptBegin</A></B>(java.lang.String&nbsp;methods)</CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the opening 
script element and some initial javascript.</TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
  <TD><CODE><B><A 
HREF="../../../../../org/apache/velocity/tools/struts/ValidatorUtils.html#getJavascriptDynamic(java.util.List)">getJavascriptDynamic</A></B>(java.util.List&nbsp;actions)</CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Generates the dynamic 
JavaScript for the form.</TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>protected &nbsp;java.lang.String</CODE></FONT></TD>
  <TD><CODE><B><A 
HREF="../../../../../org/apache/velocity/tools/struts/ValidatorUtils.html#getJavascriptEnd()">getJavascriptEnd</A></B>()</CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the closing 
script element.</TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
  <TD><CODE><B><A 
HREF="../../../../../org/apache/velocity/tools/struts/ValidatorUtils.html#getJavascriptStaticMethods()">getJavascriptStaticMethods</A></B>()</CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
  <TD><CODE><B><A 
HREF="../../../../../org/apache/velocity/tools/struts/ValidatorUtils.html#getMethod()">getMethod</A></B>()</CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the method name 
that will be used for the Javascript
   validation method name if it has a value.  </TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
  <TD><CODE><B><A 
HREF="../../../../../org/apache/velocity/tools/struts/ValidatorUtils.html#getNextVar(java.lang.String)">getNextVar</A></B>(java.lang.String&nbsp;input)</CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The value 
<code>null</code> will be returned at the end of the sequence.
       </TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>&nbsp;int</CODE></FONT></TD>
  <TD><CODE><B><A 
HREF="../../../../../org/apache/velocity/tools/struts/ValidatorUtils.html#getPage()">getPage</A></B>()</CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the current page 
number of a multi-part form.
   </TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
  <TD><CODE><B><A 
HREF="../../../../../org/apache/velocity/tools/struts/ValidatorUtils.html#getSrc()">getSrc</A></B>()</CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the src attribute's 
value when defining
   the html script element.</TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>private &nbsp;java.lang.String</CODE></FONT></TD>
  <TD><CODE><B><A 
HREF="../../../../../org/apache/velocity/tools/struts/ValidatorUtils.html#getStartElement()">getStartElement</A></B>()</CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs the beginning 
<script> element depending on xhtml status.</TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
  <TD><CODE><B><A 
HREF="../../../../../org/apache/velocity/tools/struts/ValidatorUtils.html#getStaticJavascript()">getStaticJavascript</A></B>()</CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Render just the static 
JavaScript methods. </TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>&nbsp;java.util.Collection</CODE></FONT></TD>
  <TD><CODE><B><A 
HREF="../../../../../org/apache/velocity/tools/struts/ValidatorUtils.html#getValidatorActions()">getValidatorActions</A></B>()</CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>&nbsp;void</CODE></FONT></TD>
  <TD><CODE><B><A 
HREF="../../../../../org/apache/velocity/tools/struts/ValidatorUtils.html#init(java.lang.Object)">init</A></B>(java.lang.Object&nbsp;obj)</CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Initializes this 
tool.</TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>&nbsp;boolean</CODE></FONT></TD>
  <TD><CODE><B><A 
HREF="../../../../../org/apache/velocity/tools/struts/ValidatorUtils.html#prepareForm()">prepareForm</A></B>()</CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
  <TD><CODE><B><A 
HREF="../../../../../org/apache/velocity/tools/struts/ValidatorUtils.html#prepareName()">prepareName</A></B>()</CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>private &nbsp;java.lang.String</CODE></FONT></TD>
  <TD><CODE><B><A 
HREF="../../../../../org/apache/velocity/tools/struts/ValidatorUtils.html#replaceChar(java.lang.String,
 int, char)">replaceChar</A></B>(java.lang.String&nbsp;input,
              int&nbsp;pos,
              char&nbsp;c)</CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Replaces a single 
character in a <code>String</code></TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>&nbsp;void</CODE></FONT></TD>
  <TD><CODE><B><A 
HREF="../../../../../org/apache/velocity/tools/struts/ValidatorUtils.html#setCdata(boolean)">setCdata</A></B>(boolean&nbsp;cdata)</CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the cdata 
status.</TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>&nbsp;void</CODE></FONT></TD>
  <TD><CODE><B><A 
HREF="../../../../../org/apache/velocity/tools/struts/ValidatorUtils.html#setHtmlComment(boolean)">setHtmlComment</A></B>(boolean&nbsp;htmlComment)</CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets whether or not to 
delimit the
   JavaScript with html comments.  </TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>&nbsp;void</CODE></FONT></TD>
  <TD><CODE><B><A 
HREF="../../../../../org/apache/velocity/tools/struts/ValidatorUtils.html#setMethod(java.lang.String)">setMethod</A></B>(java.lang.String&nbsp;methodName)</CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the method name 
that will be used for the Javascript
   validation method name if it has a value.  </TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>&nbsp;void</CODE></FONT></TD>
  <TD><CODE><B><A 
HREF="../../../../../org/apache/velocity/tools/struts/ValidatorUtils.html#setPage(int)">setPage</A></B>(int&nbsp;page)</CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the current page 
number of a multi-part form.
   </TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  <CODE>&nbsp;void</CODE></FONT></TD>
  <TD><CODE><B><A 
HREF="../../../../../org/apache/velocity/tools/struts/ValidatorUtils.html#setSrc(java.lang.String)">setSrc</A></B>(java.lang.String&nbsp;src)</CODE>
  
  <BR>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the src attribute's 
value (used to include
   an external script resource) when defining
   the html script element. </TD>
  </TR>
  </TABLE>
  &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
  <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  <TD><B>Methods inherited from class java.lang.Object</B></TD>
  </TR>
  <TR BGCOLOR="white" CLASS="TableRowColor">
  <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 
wait, wait, wait</CODE></TD>
  </TR>
  </TABLE>
  &nbsp;
  <P>
  
  <!-- ============ FIELD DETAIL =========== -->
  
  <A NAME="field_detail"><!-- --></A>
  <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  <TD COLSPAN=1><FONT SIZE="+2">
  <B>Field Detail</B></FONT></TD>
  </TR>
  </TABLE>
  
  <A NAME="context"><!-- --></A><H3>
  context</H3>
  <PRE>
  protected <A 
HREF="../../../../../org/apache/velocity/tools/view/context/ViewContext.html" 
title="interface in org.apache.velocity.tools.view.context">ViewContext</A> 
<B>context</B></PRE>
  <DL>
  <DD>A reference to the ViewContext
  <P>
  <DL>
  </DL>
  </DL>
  <HR>
  
  <A NAME="app"><!-- --></A><H3>
  app</H3>
  <PRE>
  protected javax.servlet.ServletContext <B>app</B></PRE>
  <DL>
  <DD>A reference to the ServletContext
  <P>
  <DL>
  </DL>
  </DL>
  <HR>
  
  <A NAME="request"><!-- --></A><H3>
  request</H3>
  <PRE>
  protected javax.servlet.http.HttpServletRequest <B>request</B></PRE>
  <DL>
  <DD>A reference to the HttpServletRequest.
  <P>
  <DL>
  </DL>
  </DL>
  <HR>
  
  <A NAME="session"><!-- --></A><H3>
  session</H3>
  <PRE>
  protected javax.servlet.http.HttpSession <B>session</B></PRE>
  <DL>
  <DD>A reference to the HttpSession.
  <P>
  <DL>
  </DL>
  </DL>
  <HR>
  
  <A NAME="resources"><!-- --></A><H3>
  resources</H3>
  <PRE>
  protected org.apache.commons.validator.ValidatorResources <B>resources</B></PRE>
  <DL>
  <DD>A reference to the HttpSession.
  <P>
  <DL>
  </DL>
  </DL>
  <HR>
  
  <A NAME="locale"><!-- --></A><H3>
  locale</H3>
  <PRE>
  protected java.util.Locale <B>locale</B></PRE>
  <DL>
  <DL>
  </DL>
  </DL>
  <HR>
  
  <A NAME="messages"><!-- --></A><H3>
  messages</H3>
  <PRE>
  protected org.apache.struts.util.MessageResources <B>messages</B></PRE>
  <DL>
  <DL>
  </DL>
  </DL>
  <HR>
  
  <A NAME="form"><!-- --></A><H3>
  form</H3>
  <PRE>
  protected org.apache.commons.validator.Form <B>form</B></PRE>
  <DL>
  <DL>
  </DL>
  </DL>
  <HR>
  
  <A NAME="HTML_BEGIN_COMMENT"><!-- --></A><H3>
  HTML_BEGIN_COMMENT</H3>
  <PRE>
  private static final java.lang.String <B>HTML_BEGIN_COMMENT</B></PRE>
  <DL>
  <DL>
  <DT><B>See Also:</B><DD><A 
HREF="../../../../../constant-values.html#org.apache.velocity.tools.struts.ValidatorUtils.HTML_BEGIN_COMMENT">Constant
 Field Values</A></DL>
  </DL>
  <HR>
  
  <A NAME="HTML_END_COMMENT"><!-- --></A><H3>
  HTML_END_COMMENT</H3>
  <PRE>
  private static final java.lang.String <B>HTML_END_COMMENT</B></PRE>
  <DL>
  <DL>
  <DT><B>See Also:</B><DD><A 
HREF="../../../../../constant-values.html#org.apache.velocity.tools.struts.ValidatorUtils.HTML_END_COMMENT">Constant
 Field Values</A></DL>
  </DL>
  <HR>
  
  <A NAME="xhtml"><!-- --></A><H3>
  xhtml</H3>
  <PRE>
  private boolean <B>xhtml</B></PRE>
  <DL>
  <DL>
  </DL>
  </DL>
  <HR>
  
  <A NAME="htmlComment"><!-- --></A><H3>
  htmlComment</H3>
  <PRE>
  private boolean <B>htmlComment</B></PRE>
  <DL>
  <DL>
  </DL>
  </DL>
  <HR>
  
  <A NAME="cdata"><!-- --></A><H3>
  cdata</H3>
  <PRE>
  private boolean <B>cdata</B></PRE>
  <DL>
  <DL>
  </DL>
  </DL>
  <HR>
  
  <A NAME="formName"><!-- --></A><H3>
  formName</H3>
  <PRE>
  private java.lang.String <B>formName</B></PRE>
  <DL>
  <DL>
  </DL>
  </DL>
  <HR>
  
  <A NAME="methodName"><!-- --></A><H3>
  methodName</H3>
  <PRE>
  private java.lang.String <B>methodName</B></PRE>
  <DL>
  <DL>
  </DL>
  </DL>
  <HR>
  
  <A NAME="src"><!-- --></A><H3>
  src</H3>
  <PRE>
  private java.lang.String <B>src</B></PRE>
  <DL>
  <DL>
  </DL>
  </DL>
  <HR>
  
  <A NAME="page"><!-- --></A><H3>
  page</H3>
  <PRE>
  private int <B>page</B></PRE>
  <DL>
  <DL>
  </DL>
  </DL>
  
  <!-- ========= CONSTRUCTOR DETAIL ======== -->
  
  <A NAME="constructor_detail"><!-- --></A>
  <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  <TD COLSPAN=1><FONT SIZE="+2">
  <B>Constructor Detail</B></FONT></TD>
  </TR>
  </TABLE>
  
  <A NAME="ValidatorUtils()"><!-- --></A><H3>
  ValidatorUtils</H3>
  <PRE>
  public <B>ValidatorUtils</B>()</PRE>
  <DL>
  <DD>Default constructor. Tool must be initialized before use.
  <P>
  </DL>
  
  <!-- ============ METHOD DETAIL ========== -->
  
  <A NAME="method_detail"><!-- --></A>
  <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  <TD COLSPAN=1><FONT SIZE="+2">
  <B>Method Detail</B></FONT></TD>
  </TR>
  </TABLE>
  
  <A NAME="init(java.lang.Object)"><!-- --></A><H3>
  init</H3>
  <PRE>
  public void <B>init</B>(java.lang.Object&nbsp;obj)</PRE>
  <DL>
  <DD>Initializes this tool.
  <P>
  <DD><DL>
  <DT><B>Specified by:</B><DD><CODE><A 
HREF="../../../../../org/apache/velocity/tools/view/tools/ViewTool.html#init(java.lang.Object)">init</A></CODE>
 in interface <CODE><A 
HREF="../../../../../org/apache/velocity/tools/view/tools/ViewTool.html" 
title="interface in org.apache.velocity.tools.view.tools">ViewTool</A></CODE></DL>
  </DD>
  <DD><DL>
  <DT><B>Parameters:</B><DD><CODE>obj</CODE> - the current ViewContext
  <DT><B>Throws:</B>
  <DD><CODE>java.lang.IllegalArgumentException</CODE> - if the param is not a 
ViewContext</DL>
  </DD>
  </DL>
  <HR>
  
  <A NAME="getPage()"><!-- --></A><H3>
  getPage</H3>
  <PRE>
  public int <B>getPage</B>()</PRE>
  <DL>
  <DD>Gets the current page number of a multi-part form.
   Only field validations with a matching page number
   will be generated that match the current page number.
   Only valid when the formName attribute is set.
  <P>
  <DD><DL>
  </DL>
  </DD>
  <DD><DL>
  
  <DT><B>Returns:</B><DD>the current page number of a multi-part form</DL>
  </DD>
  </DL>
  <HR>
  
  <A NAME="setPage(int)"><!-- --></A><H3>
  setPage</H3>
  <PRE>
  public void <B>setPage</B>(int&nbsp;page)</PRE>
  <DL>
  <DD>Sets the current page number of a multi-part form.
   Only field validations with a matching page number
   will be generated that match the current page number.
  <P>
  <DD><DL>
  </DL>
  </DD>
  <DD><DL>
  <DT><B>Parameters:</B><DD><CODE>page</CODE> - the current page number of a 
multi-part form</DL>
  </DD>
  </DL>
  <HR>
  
  <A NAME="getMethod()"><!-- --></A><H3>
  getMethod</H3>
  <PRE>
  public java.lang.String <B>getMethod</B>()</PRE>
  <DL>
  <DD>Gets the method name that will be used for the Javascript
   validation method name if it has a value.  This overrides
   the auto-generated method name based on the key (form name)
   passed in.
  <P>
  <DD><DL>
  </DL>
  </DD>
  <DD><DL>
  
  <DT><B>Returns:</B><DD>the method name that will be used for the Javascript 
validation method</DL>
  </DD>
  </DL>
  <HR>
  
  <A NAME="setMethod(java.lang.String)"><!-- --></A><H3>
  setMethod</H3>
  <PRE>
  public void <B>setMethod</B>(java.lang.String&nbsp;methodName)</PRE>
  <DL>
  <DD>Sets the method name that will be used for the Javascript
   validation method name if it has a value.  This overrides
   the auto-generated method name based on the key (form name)
   passed in.
  <P>
  <DD><DL>
  </DL>
  </DD>
  <DD><DL>
  <DT><B>Parameters:</B><DD><CODE>methodName</CODE> - the method name that will be 
used for the Javascript validation method name</DL>
  </DD>
  </DL>
  <HR>
  
  <A NAME="getHtmlComment()"><!-- --></A><H3>
  getHtmlComment</H3>
  <PRE>
  public boolean <B>getHtmlComment</B>()</PRE>
  <DL>
  <DD>Gets whether or not to delimit the
   JavaScript with html comments.  If this is set to 'true', which
   is the default, html comments will surround the JavaScript.
  <P>
  <DD><DL>
  </DL>
  </DD>
  <DD><DL>
  
  <DT><B>Returns:</B><DD>true if the JavaScript should be delimited with html 
comments</DL>
  </DD>
  </DL>
  <HR>
  
  <A NAME="setHtmlComment(boolean)"><!-- --></A><H3>
  setHtmlComment</H3>
  <PRE>
  public void <B>setHtmlComment</B>(boolean&nbsp;htmlComment)</PRE>
  <DL>
  <DD>Sets whether or not to delimit the
   JavaScript with html comments.  If this is set to 'true', which
   is the default, html comments will surround the JavaScript.
  <P>
  <DD><DL>
  </DL>
  </DD>
  <DD><DL>
  <DT><B>Parameters:</B><DD><CODE>htmlComment</CODE> - whether or not to delimit the 
JavaScript with html comments</DL>
  </DD>
  </DL>
  <HR>
  
  <A NAME="getSrc()"><!-- --></A><H3>
  getSrc</H3>
  <PRE>
  public java.lang.String <B>getSrc</B>()</PRE>
  <DL>
  <DD>Gets the src attribute's value when defining
   the html script element.
  <P>
  <DD><DL>
  </DL>
  </DD>
  <DD><DL>
  
  <DT><B>Returns:</B><DD>the src attribute's value</DL>
  </DD>
  </DL>
  <HR>
  
  <A NAME="setSrc(java.lang.String)"><!-- --></A><H3>
  setSrc</H3>
  <PRE>
  public void <B>setSrc</B>(java.lang.String&nbsp;src)</PRE>
  <DL>
  <DD>Sets the src attribute's value (used to include
   an external script resource) when defining
   the html script element. The src attribute is only recognized
   when the formName attribute is specified.
  <P>
  <DD><DL>
  </DL>
  </DD>
  <DD><DL>
  <DT><B>Parameters:</B><DD><CODE>src</CODE> - the src attribute's value</DL>
  </DD>
  </DL>
  <HR>
  
  <A NAME="getCdata()"><!-- --></A><H3>
  getCdata</H3>
  <PRE>
  public boolean <B>getCdata</B>()</PRE>
  <DL>
  <DD>Returns the cdata setting "true" or "false".
  <P>
  <DD><DL>
  </DL>
  </DD>
  <DD><DL>
  
  <DT><B>Returns:</B><DD>boolean - "true" if JavaScript will be hidden in a CDATA 
section</DL>
  </DD>
  </DL>
  <HR>
  
  <A NAME="setCdata(boolean)"><!-- --></A><H3>
  setCdata</H3>
  <PRE>
  public void <B>setCdata</B>(boolean&nbsp;cdata)</PRE>
  <DL>
  <DD>Sets the cdata status.
  <P>
  <DD><DL>
  </DL>
  </DD>
  <DD><DL>
  <DT><B>Parameters:</B><DD><CODE>cdata</CODE> - The cdata to set</DL>
  </DD>
  </DL>
  <HR>
  
  <A NAME="getJavascript()"><!-- --></A><H3>
  getJavascript</H3>
  <PRE>
  public java.lang.String <B>getJavascript</B>()
                                 throws java.lang.Exception</PRE>
  <DL>
  <DD>Render both dynamic and static JavaScript to perform
   validations based on the form name already set the form name
   via <CODE>#setFormName</CODE> or the form name attribute of the action
   mapping associated with the current request (if such exists).
  <P>
  <DD><DL>
  </DL>
  </DD>
  <DD><DL>
  
  <DT><B>Returns:</B><DD>the javascript for the current form
  <DT><B>Throws:</B>
  <DD><CODE>java.lang.Exception</CODE></DL>
  </DD>
  </DL>
  <HR>
  
  <A NAME="getJavascript(java.lang.String)"><!-- --></A><H3>
  getJavascript</H3>
  <PRE>
  public java.lang.String <B>getJavascript</B>(java.lang.String&nbsp;formName)
                                 throws java.lang.Exception</PRE>
  <DL>
  <DD>Render both dynamic and static JavaScript to perform
   validations based on the supplied form name.
  <P>
  <DD><DL>
  </DL>
  </DD>
  <DD><DL>
  <DT><B>Parameters:</B><DD><CODE>formName</CODE> - the key (form name)
  <DT><B>Returns:</B><DD>the Javascript for the specified form
  <DT><B>Throws:</B>
  <DD><CODE>java.lang.Exception</CODE></DL>
  </DD>
  </DL>
  <HR>
  
  <A NAME="getDynamicJavascript()"><!-- --></A><H3>
  getDynamicJavascript</H3>
  <PRE>
  public java.lang.String <B>getDynamicJavascript</B>()
                                        throws java.lang.Exception</PRE>
  <DL>
  <DD>Render just the dynamic JavaScript to perform validations based
   on the form name already set the form name via <CODE>#setFormName</CODE>
   or the form name attribute of the action mapping associated
   with the current request (if such exists). Useful i.e. if the static
   parts are located in a seperate .js file.
  <P>
  <DD><DL>
  </DL>
  </DD>
  <DD><DL>
  
  <DT><B>Returns:</B><DD>the javascript for the current form
  <DT><B>Throws:</B>
  <DD><CODE>java.lang.Exception</CODE></DL>
  </DD>
  </DL>
  <HR>
  
  <A NAME="getStaticJavascript()"><!-- --></A><H3>
  getStaticJavascript</H3>
  <PRE>
  public java.lang.String <B>getStaticJavascript</B>()
                                       throws java.lang.Exception</PRE>
  <DL>
  <DD>Render just the static JavaScript methods. Useful i.e. if the static
   parts should be located in a seperate .js file.
  <P>
  <DD><DL>
  </DL>
  </DD>
  <DD><DL>
  
  <DT><B>Returns:</B><DD>all static Javascript methods
  <DT><B>Throws:</B>
  <DD><CODE>java.lang.Exception</CODE></DL>
  </DD>
  </DL>
  <HR>
  
  <A NAME="getDynamicJavascript(java.lang.String)"><!-- --></A><H3>
  getDynamicJavascript</H3>
  <PRE>
  public java.lang.String <B>getDynamicJavascript</B>(java.lang.String&nbsp;formName)
                                        throws java.lang.Exception</PRE>
  <DL>
  <DD>Render just the dynamic JavaScript to perform validations based
   on the supplied form name. Useful i.e. if the static
   parts are located in a seperate .js file.
  <P>
  <DD><DL>
  </DL>
  </DD>
  <DD><DL>
  <DT><B>Parameters:</B><DD><CODE>formName</CODE> - the key (form name)
  <DT><B>Returns:</B><DD>the dynamic Javascript for the specified form
  <DT><B>Throws:</B>
  <DD><CODE>java.lang.Exception</CODE></DL>
  </DD>
  </DL>
  <HR>
  
  <A NAME="getJavascript(java.lang.String, boolean)"><!-- --></A><H3>
  getJavascript</H3>
  <PRE>
  protected java.lang.String <B>getJavascript</B>(java.lang.String&nbsp;formName,
                                           boolean&nbsp;getStatic)
                                    throws java.lang.Exception</PRE>
  <DL>
  <DD>Render both dynamic and static JavaScript to perform
   validations based on the supplied form name.
  <P>
  <DD><DL>
  </DL>
  </DD>
  <DD><DL>
  <DT><B>Parameters:</B><DD><CODE>formName</CODE> - the key (form 
name)<DD><CODE>getStatic</CODE> - indicates if the static methods should be rendered
  <DT><B>Returns:</B><DD>the Javascript for the specified form
  <DT><B>Throws:</B>
  <DD><CODE>java.lang.Exception</CODE></DL>
  </DD>
  </DL>
  <HR>
  
  <A NAME="prepareForm()"><!-- --></A><H3>
  prepareForm</H3>
  <PRE>
  public boolean <B>prepareForm</B>()</PRE>
  <DL>
  <DD><DL>
  </DL>
  </DD>
  <DD><DL>
  </DL>
  </DD>
  </DL>
  <HR>
  
  <A NAME="getJavascriptDynamic(java.util.List)"><!-- --></A><H3>
  getJavascriptDynamic</H3>
  <PRE>
  public java.lang.String 
<B>getJavascriptDynamic</B>(java.util.List&nbsp;actions)</PRE>
  <DL>
  <DD>Generates the dynamic JavaScript for the form.
  <P>
  <DD><DL>
  </DL>
  </DD>
  <DD><DL>
  
  <DT><B>Returns:</B><DD>the dynamic javascript</DL>
  </DD>
  </DL>
  <HR>
  
  <A NAME="createMethods(java.util.List)"><!-- --></A><H3>
  createMethods</H3>
  <PRE>
  public java.lang.String <B>createMethods</B>(java.util.List&nbsp;actions)</PRE>
  <DL>
  <DD>Creates the JavaScript methods list from the given actions.
  <P>
  <DD><DL>
  </DL>
  </DD>
  <DD><DL>
  <DT><B>Parameters:</B><DD><CODE>actions</CODE> - A List of ValidatorAction objects.
  <DT><B>Returns:</B><DD>JavaScript methods.</DL>
  </DD>
  </DL>
  <HR>
  
  <A NAME="createActionList()"><!-- --></A><H3>
  createActionList</H3>
  <PRE>
  public java.util.List <B>createActionList</B>()</PRE>
  <DL>
  <DD>Get List of actions for the given Form.
  <P>
  <DD><DL>
  </DL>
  </DD>
  <DD><DL>
  
  <DT><B>Returns:</B><DD>A sorted List of ValidatorAction objects.</DL>
  </DD>
  </DL>
  <HR>
  
  <A NAME="prepareName()"><!-- --></A><H3>
  prepareName</H3>
  <PRE>
  public java.lang.String <B>prepareName</B>()</PRE>
  <DL>
  <DD><DL>
  </DL>
  </DD>
  <DD><DL>
  </DL>
  </DD>
  </DL>
  <HR>
  
  <A NAME="getJavascriptBegin(java.lang.String)"><!-- --></A><H3>
  getJavascriptBegin</H3>
  <PRE>
  protected java.lang.String 
<B>getJavascriptBegin</B>(java.lang.String&nbsp;methods)</PRE>
  <DL>
  <DD>Returns the opening script element and some initial javascript.
  <P>
  <DD><DL>
  </DL>
  </DD>
  <DD><DL>
  <DT><B>Parameters:</B><DD><CODE>methods</CODE> - javascript validation methods
  <DT><B>Returns:</B><DD>the opening script element and some initial javascript</DL>
  </DD>
  </DL>
  <HR>
  
  <A NAME="getJavascriptStaticMethods()"><!-- --></A><H3>
  getJavascriptStaticMethods</H3>
  <PRE>
  public java.lang.String <B>getJavascriptStaticMethods</B>()</PRE>
  <DL>
  <DD><DL>
  </DL>
  </DD>
  <DD><DL>
  
  <DT><B>Returns:</B><DD>the static javascript methods</DL>
  </DD>
  </DL>
  <HR>
  
  <A NAME="getValidatorActions()"><!-- --></A><H3>
  getValidatorActions</H3>
  <PRE>
  public java.util.Collection <B>getValidatorActions</B>()</PRE>
  <DL>
  <DD><DL>
  </DL>
  </DD>
  <DD><DL>
  
  <DT><B>Returns:</B><DD>the static javascript methods</DL>
  </DD>
  </DL>
  <HR>
  
  <A NAME="getJavascriptEnd()"><!-- --></A><H3>
  getJavascriptEnd</H3>
  <PRE>
  protected java.lang.String <B>getJavascriptEnd</B>()</PRE>
  <DL>
  <DD>Returns the closing script element.
  <P>
  <DD><DL>
  </DL>
  </DD>
  <DD><DL>
  
  <DT><B>Returns:</B><DD>the closing script element</DL>
  </DD>
  </DL>
  <HR>
  
  <A NAME="getNextVar(java.lang.String)"><!-- --></A><H3>
  getNextVar</H3>
  <PRE>
  public java.lang.String <B>getNextVar</B>(java.lang.String&nbsp;input)</PRE>
  <DL>
  <DD>The value <code>null</code> will be returned at the end of the sequence.
       ex: "zz" will return <code>null</code>
  <P>
  <DD><DL>
  </DL>
  </DD>
  <DD><DL>
  <DT><B>Parameters:</B><DD><CODE>input</CODE> - the string to process
  <DT><B>Returns:</B><DD>the next var</DL>
  </DD>
  </DL>
  <HR>
  
  <A NAME="replaceChar(java.lang.String, int, char)"><!-- --></A><H3>
  replaceChar</H3>
  <PRE>
  private java.lang.String <B>replaceChar</B>(java.lang.String&nbsp;input,
                                       int&nbsp;pos,
                                       char&nbsp;c)</PRE>
  <DL>
  <DD>Replaces a single character in a <code>String</code>
  <P>
  <DD><DL>
  </DL>
  </DD>
  <DD><DL>
  <DT><B>Parameters:</B><DD><CODE>input</CODE> - the string to 
process<DD><CODE>pos</CODE> - the position of the caracter to 
replace<DD><CODE>c</CODE> - the substitute char
  <DT><B>Returns:</B><DD>the input string with the specified char replaced</DL>
  </DD>
  </DL>
  <HR>
  
  <A NAME="getStartElement()"><!-- --></A><H3>
  getStartElement</H3>
  <PRE>
  private java.lang.String <B>getStartElement</B>()</PRE>
  <DL>
  <DD>Constructs the beginning <script> element depending on xhtml status.
  <P>
  <DD><DL>
  </DL>
  </DD>
  <DD><DL>
  
  <DT><B>Returns:</B><DD>the beginning <script> element depending on xhtml status</DL>
  </DD>
  </DL>
  <!-- ========= END OF CLASS DATA ========= -->
  <HR>
  
  
  <!-- ======= START OF BOTTOM NAVBAR ====== -->
  <A NAME="navbar_bottom"><!-- --></A>
  <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
  <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  <TR>
  <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  <A NAME="navbar_bottom_firstrow"><!-- --></A>
  <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
    <TR ALIGN="center" VALIGN="top">
    <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A 
HREF="../../../../../overview-summary.html"><FONT 
CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
    <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT 
CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
    <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT 
CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
    <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT 
CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
    <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A 
HREF="../../../../../deprecated-list.html"><FONT 
CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
    <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A 
HREF="../../../../../index-all.html"><FONT 
CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
    <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A 
HREF="../../../../../help-doc.html"><FONT 
CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
    </TR>
  </TABLE>
  </TD>
  <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  </EM>
  </TD>
  </TR>
  
  <TR>
  <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  &nbsp;<A 
HREF="../../../../../org/apache/velocity/tools/struts/ValidatorTool.ValidatorActionComparator.html"
 title="class in org.apache.velocity.tools.struts"><B>PREV CLASS</B></A>&nbsp;
  &nbsp;<A 
HREF="../../../../../org/apache/velocity/tools/struts/ValidatorUtils.ValidatorActionComparator.html"
 title="class in org.apache.velocity.tools.struts"><B>NEXT CLASS</B></A></FONT></TD>
  <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
    <A HREF="../../../../../index.html" target="_top"><B>FRAMES</B></A>  &nbsp;
  &nbsp;<A HREF="ValidatorUtils.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
  &nbsp;<SCRIPT type="text/javascript">
    <!--
    if(window==top) {
      document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All 
Classes</B></A>');
    }
    //-->
  </SCRIPT>
  <NOSCRIPT>
    <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
  </NOSCRIPT>
  
  </FONT></TD>
  </TR>
  <TR>
  <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
    SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;<A 
HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A 
HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A 
HREF="#method_summary">METHOD</A></FONT></TD>
  <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A 
HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A 
HREF="#method_detail">METHOD</A></FONT></TD>
  </TR>
  </TABLE>
  <A NAME="skip-navbar_bottom"></A>
  <!-- ======== END OF BOTTOM NAVBAR ======= -->
  
  <HR>
  Copyright (c) 2003 Apache Software Foundation
  </BODY>
  </HTML>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to