⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 resources.html

📁 struts api,学习使用struts必备的文档
💻 HTML
📖 第 1 页 / 共 3 页
字号:
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;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&nbsp;request)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Use RequestUtils.getUserLocale() instead.  This will be removed after Struts 1.2.</I></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;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&nbsp;request,           java.lang.String&nbsp;key)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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&nbsp;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>&nbsp;messages,           java.util.Locale&nbsp;locale,           java.lang.String&nbsp;key)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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&nbsp;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>&nbsp;messages,           java.util.Locale&nbsp;locale,           org.apache.commons.validator.ValidatorAction&nbsp;va,           org.apache.commons.validator.Field&nbsp;field)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/struts/validator/Resources.html#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)">getMessage</A></B>(javax.servlet.ServletContext&nbsp;application,           javax.servlet.http.HttpServletRequest&nbsp;request,           <A HREF="../../../../org/apache/struts/util/MessageResources.html">MessageResources</A>&nbsp;defaultMessages,           java.util.Locale&nbsp;locale,           org.apache.commons.validator.ValidatorAction&nbsp;va,           org.apache.commons.validator.Field&nbsp;field)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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&nbsp;<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&nbsp;request)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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&nbsp;<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, javax.servlet.http.HttpServletRequest, java.lang.String)">getMessageResources</A></B>(javax.servlet.ServletContext&nbsp;application,                    javax.servlet.http.HttpServletRequest&nbsp;request,                    java.lang.String&nbsp;bundle)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Retrieve <code>MessageResources</code> for the module and bundle.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;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&nbsp;application,                      javax.servlet.http.HttpServletRequest&nbsp;request)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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&nbsp;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.ActionMessages, int)">initValidator</A></B>(java.lang.String&nbsp;key,              java.lang.Object&nbsp;bean,              javax.servlet.ServletContext&nbsp;application,              javax.servlet.http.HttpServletRequest&nbsp;request,              <A HREF="../../../../org/apache/struts/action/ActionMessages.html">ActionMessages</A>&nbsp;errors,              int&nbsp;page)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Initialize the <code>Validator</code> to perform validation.</TD>
</TR>
</TABLE>
&nbsp;<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><clinit>, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
&nbsp;
<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_PARAM"><!-- --></A><H3>
SERVLET_CONTEXT_PARAM</H3>
<PRE>
private static java.lang.String <B>SERVLET_CONTEXT_PARAM</B></PRE>
<DL>
<DD>Resources key the <code>ServletContext</code> is stored under.</DL>
<HR>

<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><B>Deprecated.</B>&nbsp;<I>This will be removed after Struts 1.2</I>
<P>
<DD>Resources key the <code>ServletContext</code> is stored under.</DL>
<HR>

<A NAME="HTTP_SERVLET_REQUEST_PARAM"><!-- --></A><H3>
HTTP_SERVLET_REQUEST_PARAM</H3>
<PRE>
private static java.lang.String <B>HTTP_SERVLET_REQUEST_PARAM</B></PRE>
<DL>
<DD>Resources key the <code>HttpServletRequest</code> is stored under.</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><B>Deprecated.</B>&nbsp;<I>This will be removed after Struts 1.2</I>
<P>
<DD>Resources key the <code>HttpServletRequest</code> is stored under.</DL>
<HR>

<A NAME="ACTION_MESSAGES_PARAM"><!-- --></A><H3>
ACTION_MESSAGES_PARAM</H3>
<PRE>
private static java.lang.String <B>ACTION_MESSAGES_PARAM</B></PRE>
<DL>
<DD>Resources key the <code>ActionMessages</code> is stored under.</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><B>Deprecated.</B>&nbsp;<I>This will be removed after Struts 1.2</I>
<P>
<DD>Resources key the <code>ActionErrors</code> is stored under.</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, javax.servlet.http.HttpServletRequest)"><!-- --></A><H3>
getValidatorResources</H3>
<PRE>
public static org.apache.commons.validator.ValidatorResources <B>getValidatorResources</B>(javax.servlet.ServletContext&nbsp;application,                                                                                    javax.servlet.http.HttpServletRequest&nbsp;request)</PRE>
<DL>
<DD>Retrieve <code>ValidatorResources</code> for the current module.<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.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&nbsp;request)</PRE>
<DL>
<DD>Retrieve <code>MessageResources</code> for the module.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>request</CODE> - the servlet request</DL>
</DD>
</DL>
<HR>

<A NAME="getMessageResources(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, java.lang.String)"><!-- --></A><H3>
getMessageResources</H3>
<PRE>
public static <A HREF="../../../../org/apache/struts/util/MessageResources.html">MessageResources</A> <B>getMessageResources</B>(javax.servlet.ServletContext&nbsp;application,

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -