📄 resources.html
字号:
javax.servlet.http.HttpServletRequest request, java.lang.String bundle)</PRE>
<DL>
<DD>Retrieve <code>MessageResources</code> for the module and bundle.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>application</CODE> - the servlet context<DD><CODE>request</CODE> - the servlet request<DD><CODE>bundle</CODE> - the bundle key</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><B>Deprecated.</B> <I>Use RequestUtils.getUserLocale() instead. This will be removed after Struts 1.2.</I>
<P>
<DD>Get the <code>Locale</code> of the current user.<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.<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.<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.<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="getMessage(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, 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>(javax.servlet.ServletContext application, javax.servlet.http.HttpServletRequest request, <A HREF="../../../../org/apache/struts/util/MessageResources.html">MessageResources</A> defaultMessages, java.util.Locale locale, org.apache.commons.validator.ValidatorAction va, org.apache.commons.validator.Field field)</PRE>
<DL>
<DD>Gets the <code>Locale</code> sensitive value based on the key passed in.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>application</CODE> - the servlet context<DD><CODE>request</CODE> - the servlet request<DD><CODE>defaultMessages</CODE> - The default 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><B>Deprecated.</B> <I>Use getActionMessage() instead. This will be removed after Struts 1.2.</I>
<P>
<DD>Gets the <code>ActionError</code> based on the <code>ValidatorAction</code> message and the <code>Field</code>'s arg objects.<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="getActionMessage(javax.servlet.http.HttpServletRequest, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field)"><!-- --></A><H3>
getActionMessage</H3>
<PRE>
public static <A HREF="../../../../org/apache/struts/action/ActionMessage.html">ActionMessage</A> <B>getActionMessage</B>(javax.servlet.http.HttpServletRequest request, org.apache.commons.validator.ValidatorAction va, org.apache.commons.validator.Field field)</PRE>
<DL>
<DD>Gets the <code>ActionMessage</code> based on the <code>ValidatorAction</code> message and the <code>Field</code>'s arg objects.<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="getActionMessage(org.apache.commons.validator.Validator, javax.servlet.http.HttpServletRequest, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field)"><!-- --></A><H3>
getActionMessage</H3>
<PRE>
public static <A HREF="../../../../org/apache/struts/action/ActionMessage.html">ActionMessage</A> <B>getActionMessage</B>(org.apache.commons.validator.Validator validator, javax.servlet.http.HttpServletRequest request, org.apache.commons.validator.ValidatorAction va, org.apache.commons.validator.Field field)</PRE>
<DL>
<DD>Gets the <code>ActionMessage</code> based on the <code>ValidatorAction</code> message and the <code>Field</code>'s arg objects.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>validator</CODE> - the Validator<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>.<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="getArgValues(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, org.apache.struts.util.MessageResources, java.util.Locale, org.apache.commons.validator.Arg[])"><!-- --></A><H3>
getArgValues</H3>
<PRE>
private static java.lang.String[] <B>getArgValues</B>(javax.servlet.ServletContext application, javax.servlet.http.HttpServletRequest request, <A HREF="../../../../org/apache/struts/util/MessageResources.html">MessageResources</A> defaultMessages, java.util.Locale locale, org.apache.commons.validator.Arg[] args)</PRE>
<DL>
<DD>Gets the message arguments based on the current <code>ValidatorAction</code> and <code>Field</code>.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>application</CODE> - the servlet context<DD><CODE>request</CODE> - the servlet request<DD><CODE>defaultMessages</CODE> - Default message resources<DD><CODE>locale</CODE> - the locale<DD><CODE>args</CODE> - The arguments for the message</DL>
</DD>
</DL>
<HR>
<A NAME="initValidator(java.lang.String, java.lang.Object, javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, org.apache.struts.action.ActionMessages, 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/ActionMessages.html">ActionMessages</A> errors, int page)</PRE>
<DL>
<DD>Initialize the <code>Validator</code> to perform validation.<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=2 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/LazyValidatorForm.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></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: INNER | <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
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -