| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN""http://www.w3.org/TR/REC-html40/loose.dtd"> |
| <!--NewPage--> |
| <HTML> |
| <HEAD> |
| <!-- Generated by javadoc on Fri Aug 22 03:43:57 EDT 2003 --> |
| <TITLE> |
| Resources (Apache Struts API Documentation) |
| </TITLE> |
| <META NAME="keywords" CONTENT="org.apache.struts.validator.Resources,Resources class"> |
| <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> |
| </HEAD> |
| <SCRIPT> |
| function asd() |
| { |
| parent.document.title="Resources (Apache Struts API Documentation)"; |
| } |
| </SCRIPT> |
| <BODY BGCOLOR="white" onload="asd();"> |
| |
| <!-- ========== START OF NAVBAR ========== --> |
| <A NAME="navbar_top"><!-- --></A> |
| <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"> |
| <TR> |
| <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
| <A NAME="navbar_top_firstrow"><!-- --></A> |
| <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> |
| <TR ALIGN="center" VALIGN="top"> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
| <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Resources.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
| </TR> |
| </TABLE> |
| </TD> |
| <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
| </EM> |
| </TD> |
| </TR> |
| |
| <TR> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../org/apache/struts/validator/FieldChecks.html"><B>PREV CLASS</B></A> |
| <A HREF="../../../../org/apache/struts/validator/ValidatorActionForm.html"><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> |
| <A HREF="Resources.html" TARGET="_top"><B>NO FRAMES</B></A> |
| |
| <SCRIPT> |
| <!-- |
| if(window==top) { |
| document.writeln('<A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>'); |
| } |
| //--> |
| </SCRIPT> |
| <NOSCRIPT> |
| <A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A> |
| </NOSCRIPT> |
| </FONT></TD> |
| </TR> |
| <TR> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
| </TR> |
| </TABLE> |
| <!-- =========== END OF NAVBAR =========== --> |
| |
| <HR> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <H2> |
| <FONT SIZE="-1"> |
| org.apache.struts.validator</FONT> |
| <BR> |
| Class Resources</H2> |
| <PRE> |
| java.lang.Object |
| | |
| +--<B>org.apache.struts.validator.Resources</B> |
| </PRE> |
| <HR> |
| <DL> |
| <DT>public class <B>Resources</B><DT>extends java.lang.Object</DL> |
| |
| <P> |
| This class helps provides some useful methods for retrieving objects |
| from different scopes of the application. |
| <P> |
| |
| <P> |
| <DL> |
| <DT><B>Since:</B></DT> |
| <DD>Struts 1.1</DD> |
| <DT><B>Version:</B></DT> |
| <DD>$Revision: 1.1 $ $Date$</DD> |
| <DT><B>Author:</B></DT> |
| <DD>David Winterfeldt, Eddie Bush</DD> |
| </DL> |
| <HR> |
| |
| <P> |
| <!-- ======== NESTED CLASS SUMMARY ======== --> |
| |
| |
| <!-- =========== FIELD SUMMARY =========== --> |
| |
| <A NAME="field_summary"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
| <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>static java.lang.String</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/validator/Resources.html#ACTION_ERRORS_KEY">ACTION_ERRORS_KEY</A></B></CODE> |
| |
| <BR> |
| Resources key the <code>ActionErrors</code> is stored under.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static java.lang.String</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/validator/Resources.html#HTTP_SERVLET_REQUEST_KEY">HTTP_SERVLET_REQUEST_KEY</A></B></CODE> |
| |
| <BR> |
| Resources key the <code>HttpServletRequest</code> is stored under.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static java.lang.String</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/validator/Resources.html#SERVLET_CONTEXT_KEY">SERVLET_CONTEXT_KEY</A></B></CODE> |
| |
| <BR> |
| Resources key the <code>ServletContext</code> is stored under.</TD> |
| </TR> |
| </TABLE> |
| |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| |
| <A NAME="constructor_summary"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
| <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/struts/validator/Resources.html#Resources()">Resources</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| </TABLE> |
| |
| <!-- ========== METHOD SUMMARY =========== --> |
| |
| <A NAME="method_summary"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
| <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>static <A HREF="../../../../org/apache/struts/action/ActionError.html">ActionError</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/validator/Resources.html#getActionError(javax.servlet.http.HttpServletRequest, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field)">getActionError</A></B>(javax.servlet.http.HttpServletRequest request, |
| org.apache.commons.validator.ValidatorAction va, |
| org.apache.commons.validator.Field field)</CODE> |
| |
| <BR> |
| Gets the <code>ActionError</code> based on the <code>ValidatorAction</code> message and the |
| <code>Field</code>'s arg objects.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static java.lang.String[]</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/validator/Resources.html#getArgs(java.lang.String, org.apache.struts.util.MessageResources, java.util.Locale, org.apache.commons.validator.Field)">getArgs</A></B>(java.lang.String actionName, |
| <A HREF="../../../../org/apache/struts/util/MessageResources.html">MessageResources</A> messages, |
| java.util.Locale locale, |
| org.apache.commons.validator.Field field)</CODE> |
| |
| <BR> |
| Gets the message arguments based on the current <code>ValidatorAction</code> |
| and <code>Field</code>.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static java.util.Locale</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/validator/Resources.html#getLocale(javax.servlet.http.HttpServletRequest)">getLocale</A></B>(javax.servlet.http.HttpServletRequest request)</CODE> |
| |
| <BR> |
| Get the <code>Locale</code> of the current user.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static java.lang.String</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/validator/Resources.html#getMessage(javax.servlet.http.HttpServletRequest, java.lang.String)">getMessage</A></B>(javax.servlet.http.HttpServletRequest request, |
| java.lang.String key)</CODE> |
| |
| <BR> |
| Gets the <code>Locale</code> sensitive value based on the key passed in.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static java.lang.String</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/validator/Resources.html#getMessage(org.apache.struts.util.MessageResources, java.util.Locale, java.lang.String)">getMessage</A></B>(<A HREF="../../../../org/apache/struts/util/MessageResources.html">MessageResources</A> messages, |
| java.util.Locale locale, |
| java.lang.String key)</CODE> |
| |
| <BR> |
| Gets the <code>Locale</code> sensitive value based on the key passed in.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static java.lang.String</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/validator/Resources.html#getMessage(org.apache.struts.util.MessageResources, java.util.Locale, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field)">getMessage</A></B>(<A HREF="../../../../org/apache/struts/util/MessageResources.html">MessageResources</A> messages, |
| java.util.Locale locale, |
| org.apache.commons.validator.ValidatorAction va, |
| org.apache.commons.validator.Field field)</CODE> |
| |
| <BR> |
| Gets the locale sensitive message based on the <code>ValidatorAction</code> message and the |
| <code>Field</code>'s arg objects.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static <A HREF="../../../../org/apache/struts/util/MessageResources.html">MessageResources</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/validator/Resources.html#getMessageResources(javax.servlet.http.HttpServletRequest)">getMessageResources</A></B>(javax.servlet.http.HttpServletRequest request)</CODE> |
| |
| <BR> |
| Retrieve <code>MessageResources</code> for the module.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static <A HREF="../../../../org/apache/struts/util/MessageResources.html">MessageResources</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/validator/Resources.html#getMessageResources(javax.servlet.ServletContext)">getMessageResources</A></B>(javax.servlet.ServletContext application)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> <I>This method can only return the resources for the default |
| module. Use getMessageResources(HttpServletRequest) to get the |
| resources for the current module.</I></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static org.apache.commons.validator.ValidatorResources</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/validator/Resources.html#getValidatorResources(javax.servlet.ServletContext)">getValidatorResources</A></B>(javax.servlet.ServletContext application)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> <I>In Struts 1.1 This method can only return the resources for the default |
| module. Use getValidatorResources(HttpServletRequest, ServletContext) |
| to get the resources for the current application module.</I></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static org.apache.commons.validator.ValidatorResources</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/validator/Resources.html#getValidatorResources(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest)">getValidatorResources</A></B>(javax.servlet.ServletContext application, |
| javax.servlet.http.HttpServletRequest request)</CODE> |
| |
| <BR> |
| Retrieve <code>ValidatorResources</code> for the current module.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static org.apache.commons.validator.Validator</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/validator/Resources.html#initValidator(java.lang.String, java.lang.Object, javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, org.apache.struts.action.ActionErrors, int)">initValidator</A></B>(java.lang.String key, |
| java.lang.Object bean, |
| javax.servlet.ServletContext application, |
| javax.servlet.http.HttpServletRequest request, |
| <A HREF="../../../../org/apache/struts/action/ActionErrors.html">ActionErrors</A> errors, |
| int page)</CODE> |
| |
| <BR> |
| Initialize the <code>Validator</code> to perform validation.</TD> |
| </TR> |
| </TABLE> |
| <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
| <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> |
| |
| <P> |
| |
| <!-- ============ FIELD DETAIL =========== --> |
| |
| <A NAME="field_detail"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TD COLSPAN=1><FONT SIZE="+2"> |
| <B>Field Detail</B></FONT></TD> |
| </TR> |
| </TABLE> |
| |
| <A NAME="SERVLET_CONTEXT_KEY"><!-- --></A><H3> |
| SERVLET_CONTEXT_KEY</H3> |
| <PRE> |
| public static java.lang.String <B>SERVLET_CONTEXT_KEY</B></PRE> |
| <DL> |
| <DD>Resources key the <code>ServletContext</code> is stored under. |
| <P> |
| <DL> |
| </DL> |
| </DL> |
| <HR> |
| |
| <A NAME="HTTP_SERVLET_REQUEST_KEY"><!-- --></A><H3> |
| HTTP_SERVLET_REQUEST_KEY</H3> |
| <PRE> |
| public static java.lang.String <B>HTTP_SERVLET_REQUEST_KEY</B></PRE> |
| <DL> |
| <DD>Resources key the <code>HttpServletRequest</code> is stored under. |
| <P> |
| <DL> |
| </DL> |
| </DL> |
| <HR> |
| |
| <A NAME="ACTION_ERRORS_KEY"><!-- --></A><H3> |
| ACTION_ERRORS_KEY</H3> |
| <PRE> |
| public static java.lang.String <B>ACTION_ERRORS_KEY</B></PRE> |
| <DL> |
| <DD>Resources key the <code>ActionErrors</code> is stored under. |
| <P> |
| <DL> |
| </DL> |
| </DL> |
| |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| |
| <A NAME="constructor_detail"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TD COLSPAN=1><FONT SIZE="+2"> |
| <B>Constructor Detail</B></FONT></TD> |
| </TR> |
| </TABLE> |
| |
| <A NAME="Resources()"><!-- --></A><H3> |
| Resources</H3> |
| <PRE> |
| public <B>Resources</B>()</PRE> |
| <DL> |
| </DL> |
| |
| <!-- ============ METHOD DETAIL ========== --> |
| |
| <A NAME="method_detail"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TD COLSPAN=1><FONT SIZE="+2"> |
| <B>Method Detail</B></FONT></TD> |
| </TR> |
| </TABLE> |
| |
| <A NAME="getValidatorResources(javax.servlet.ServletContext)"><!-- --></A><H3> |
| getValidatorResources</H3> |
| <PRE> |
| public static org.apache.commons.validator.ValidatorResources <B>getValidatorResources</B>(javax.servlet.ServletContext application)</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <I>In Struts 1.1 This method can only return the resources for the default |
| module. Use getValidatorResources(HttpServletRequest, ServletContext) |
| to get the resources for the current application module.</I> |
| <P> |
| <DD>Retrieve <code>ValidatorResources</code> for the module. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>application</CODE> - servlet context</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getValidatorResources(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest)"><!-- --></A><H3> |
| getValidatorResources</H3> |
| <PRE> |
| public static org.apache.commons.validator.ValidatorResources <B>getValidatorResources</B>(javax.servlet.ServletContext application, |
| javax.servlet.http.HttpServletRequest request)</PRE> |
| <DL> |
| <DD>Retrieve <code>ValidatorResources</code> for the current module. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>application</CODE> - Application Context<DD><CODE>request</CODE> - The ServletRequest</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getMessageResources(javax.servlet.ServletContext)"><!-- --></A><H3> |
| getMessageResources</H3> |
| <PRE> |
| public static <A HREF="../../../../org/apache/struts/util/MessageResources.html">MessageResources</A> <B>getMessageResources</B>(javax.servlet.ServletContext application)</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <I>This method can only return the resources for the default |
| module. Use getMessageResources(HttpServletRequest) to get the |
| resources for the current module.</I> |
| <P> |
| <DD>Retrieve <code>MessageResources</code> for the application module. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>application</CODE> - servlet context</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getMessageResources(javax.servlet.http.HttpServletRequest)"><!-- --></A><H3> |
| getMessageResources</H3> |
| <PRE> |
| public static <A HREF="../../../../org/apache/struts/util/MessageResources.html">MessageResources</A> <B>getMessageResources</B>(javax.servlet.http.HttpServletRequest request)</PRE> |
| <DL> |
| <DD>Retrieve <code>MessageResources</code> for the module. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>request</CODE> - the servlet request</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getLocale(javax.servlet.http.HttpServletRequest)"><!-- --></A><H3> |
| getLocale</H3> |
| <PRE> |
| public static java.util.Locale <B>getLocale</B>(javax.servlet.http.HttpServletRequest request)</PRE> |
| <DL> |
| <DD>Get the <code>Locale</code> of the current user. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>request</CODE> - servlet request</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getMessage(org.apache.struts.util.MessageResources, java.util.Locale, java.lang.String)"><!-- --></A><H3> |
| getMessage</H3> |
| <PRE> |
| public static java.lang.String <B>getMessage</B>(<A HREF="../../../../org/apache/struts/util/MessageResources.html">MessageResources</A> messages, |
| java.util.Locale locale, |
| java.lang.String key)</PRE> |
| <DL> |
| <DD>Gets the <code>Locale</code> sensitive value based on the key passed in. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>messages</CODE> - The Message resources<DD><CODE>locale</CODE> - The locale.<DD><CODE>key</CODE> - Key used to lookup the message</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getMessage(javax.servlet.http.HttpServletRequest, java.lang.String)"><!-- --></A><H3> |
| getMessage</H3> |
| <PRE> |
| public static java.lang.String <B>getMessage</B>(javax.servlet.http.HttpServletRequest request, |
| java.lang.String key)</PRE> |
| <DL> |
| <DD>Gets the <code>Locale</code> sensitive value based on the key passed in. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>request</CODE> - servlet request<DD><CODE>key</CODE> - the request key</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getMessage(org.apache.struts.util.MessageResources, java.util.Locale, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field)"><!-- --></A><H3> |
| getMessage</H3> |
| <PRE> |
| public static java.lang.String <B>getMessage</B>(<A HREF="../../../../org/apache/struts/util/MessageResources.html">MessageResources</A> messages, |
| java.util.Locale locale, |
| org.apache.commons.validator.ValidatorAction va, |
| org.apache.commons.validator.Field field)</PRE> |
| <DL> |
| <DD>Gets the locale sensitive message based on the <code>ValidatorAction</code> message and the |
| <code>Field</code>'s arg objects. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>messages</CODE> - The Message resources<DD><CODE>locale</CODE> - The locale<DD><CODE>va</CODE> - The Validator Action<DD><CODE>field</CODE> - The Validator Field</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getActionError(javax.servlet.http.HttpServletRequest, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field)"><!-- --></A><H3> |
| getActionError</H3> |
| <PRE> |
| public static <A HREF="../../../../org/apache/struts/action/ActionError.html">ActionError</A> <B>getActionError</B>(javax.servlet.http.HttpServletRequest request, |
| org.apache.commons.validator.ValidatorAction va, |
| org.apache.commons.validator.Field field)</PRE> |
| <DL> |
| <DD>Gets the <code>ActionError</code> based on the <code>ValidatorAction</code> message and the |
| <code>Field</code>'s arg objects. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>request</CODE> - the servlet request<DD><CODE>va</CODE> - Validator action<DD><CODE>field</CODE> - the validator Field</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getArgs(java.lang.String, org.apache.struts.util.MessageResources, java.util.Locale, org.apache.commons.validator.Field)"><!-- --></A><H3> |
| getArgs</H3> |
| <PRE> |
| public static java.lang.String[] <B>getArgs</B>(java.lang.String actionName, |
| <A HREF="../../../../org/apache/struts/util/MessageResources.html">MessageResources</A> messages, |
| java.util.Locale locale, |
| org.apache.commons.validator.Field field)</PRE> |
| <DL> |
| <DD>Gets the message arguments based on the current <code>ValidatorAction</code> |
| and <code>Field</code>. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>actionName</CODE> - action name<DD><CODE>messages</CODE> - message resources<DD><CODE>locale</CODE> - the locale<DD><CODE>field</CODE> - the validator field</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="initValidator(java.lang.String, java.lang.Object, javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, org.apache.struts.action.ActionErrors, int)"><!-- --></A><H3> |
| initValidator</H3> |
| <PRE> |
| public static org.apache.commons.validator.Validator <B>initValidator</B>(java.lang.String key, |
| java.lang.Object bean, |
| javax.servlet.ServletContext application, |
| javax.servlet.http.HttpServletRequest request, |
| <A HREF="../../../../org/apache/struts/action/ActionErrors.html">ActionErrors</A> errors, |
| int page)</PRE> |
| <DL> |
| <DD>Initialize the <code>Validator</code> to perform validation. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>key</CODE> - The key that the validation rules are under (the form elements |
| name attribute).<DD><CODE>bean</CODE> - The bean validation is being performed on.<DD><CODE>application</CODE> - servlet context<DD><CODE>request</CODE> - The current request object.<DD><CODE>errors</CODE> - The object any errors will be stored in.<DD><CODE>page</CODE> - This in conjunction with the page property of a |
| <code>Field<code> can control the processing of fields. If the field's |
| page is less than or equal to this page value, it will be processed.</DL> |
| </DD> |
| </DL> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <HR> |
| |
| <!-- ========== START OF NAVBAR ========== --> |
| <A NAME="navbar_bottom"><!-- --></A> |
| <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"> |
| <TR> |
| <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
| <A NAME="navbar_bottom_firstrow"><!-- --></A> |
| <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> |
| <TR ALIGN="center" VALIGN="top"> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
| <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Resources.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
| </TR> |
| </TABLE> |
| </TD> |
| <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
| </EM> |
| </TD> |
| </TR> |
| |
| <TR> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../org/apache/struts/validator/FieldChecks.html"><B>PREV CLASS</B></A> |
| <A HREF="../../../../org/apache/struts/validator/ValidatorActionForm.html"><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> |
| <A HREF="Resources.html" TARGET="_top"><B>NO FRAMES</B></A> |
| |
| <SCRIPT> |
| <!-- |
| if(window==top) { |
| document.writeln('<A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>'); |
| } |
| //--> |
| </SCRIPT> |
| <NOSCRIPT> |
| <A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A> |
| </NOSCRIPT> |
| </FONT></TD> |
| </TR> |
| <TR> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
| </TR> |
| </TABLE> |
| <!-- =========== END OF NAVBAR =========== --> |
| |
| <HR> |
| Copyright © 2000-2003 - Apache Software Foundation |
| </BODY> |
| </HTML> |