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

📄 messageresources.html

📁 struts api,学习使用struts必备的文档
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<PRE>
private boolean <B>escape</B></PRE>
<DL>
<DD>Indicates whether 'escape processing' should be performed on the error message string.</DL>
<HR>

<A NAME="defaultFactory"><!-- --></A><H3>
defaultFactory</H3>
<PRE>
protected static <A HREF="../../../../org/apache/struts/util/MessageResourcesFactory.html">MessageResourcesFactory</A> <B>defaultFactory</B></PRE>
<DL>
<DD>The default MessageResourcesFactory used to create MessageResources instances.</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="MessageResources(org.apache.struts.util.MessageResourcesFactory, java.lang.String)"><!-- --></A><H3>
MessageResources</H3>
<PRE>
public <B>MessageResources</B>(<A HREF="../../../../org/apache/struts/util/MessageResourcesFactory.html">MessageResourcesFactory</A>&nbsp;factory,                        java.lang.String&nbsp;config)</PRE>
<DL>
<DD>Construct a new MessageResources according to the specified parameters.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>factory</CODE> - The MessageResourcesFactory that created us<DD><CODE>config</CODE> - The configuration parameter for this MessageResources</DL>
</DD>
</DL>
<HR>

<A NAME="MessageResources(org.apache.struts.util.MessageResourcesFactory, java.lang.String, boolean)"><!-- --></A><H3>
MessageResources</H3>
<PRE>
public <B>MessageResources</B>(<A HREF="../../../../org/apache/struts/util/MessageResourcesFactory.html">MessageResourcesFactory</A>&nbsp;factory,                        java.lang.String&nbsp;config,                        boolean&nbsp;returnNull)</PRE>
<DL>
<DD>Construct a new MessageResources according to the specified parameters.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>factory</CODE> - The MessageResourcesFactory that created us<DD><CODE>config</CODE> - The configuration parameter for this MessageResources<DD><CODE>returnNull</CODE> - The returnNull property we should initialize with</DL>
</DD>
</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="getConfig()"><!-- --></A><H3>
getConfig</H3>
<PRE>
public java.lang.String <B>getConfig</B>()</PRE>
<DL>
<DD>The configuration parameter used to initialize this MessageResources.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>parameter used to initialize this MessageResources</DL>
</DD>
</DL>
<HR>

<A NAME="getFactory()"><!-- --></A><H3>
getFactory</H3>
<PRE>
public <A HREF="../../../../org/apache/struts/util/MessageResourcesFactory.html">MessageResourcesFactory</A> <B>getFactory</B>()</PRE>
<DL>
<DD>The <code>MessageResourcesFactory</code> that created this instance.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD><code>MessageResourcesFactory</code> that created instance</DL>
</DD>
</DL>
<HR>

<A NAME="getReturnNull()"><!-- --></A><H3>
getReturnNull</H3>
<PRE>
public boolean <B>getReturnNull</B>()</PRE>
<DL>
<DD>Indicates that a <code>null</code> is returned instead of an error message string if an unknown Locale or key is requested.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>true if null is returned if unknown key or locale is requested</DL>
</DD>
</DL>
<HR>

<A NAME="setReturnNull(boolean)"><!-- --></A><H3>
setReturnNull</H3>
<PRE>
public void <B>setReturnNull</B>(boolean&nbsp;returnNull)</PRE>
<DL>
<DD>Indicates that a <code>null</code> is returned instead of an error message string if an unknown Locale or key is requested.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>returnNull</CODE> - true Indicates that a <code>null</code> is returned if an unknown Locale or key is requested.</DL>
</DD>
</DL>
<HR>

<A NAME="isEscape()"><!-- --></A><H3>
isEscape</H3>
<PRE>
public boolean <B>isEscape</B>()</PRE>
<DL>
<DD>Indicates whether 'escape processing' should be performed on the error message string.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Since: </B><DD>Struts 1.2.8</DD>
</DL>
</DD>
</DL>
<HR>

<A NAME="setEscape(boolean)"><!-- --></A><H3>
setEscape</H3>
<PRE>
public void <B>setEscape</B>(boolean&nbsp;escape)</PRE>
<DL>
<DD>Set whether 'escape processing' should be performed on the error message string.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Since: </B><DD>Struts 1.2.8</DD>
</DL>
</DD>
</DL>
<HR>

<A NAME="getMessage(java.lang.String)"><!-- --></A><H3>
getMessage</H3>
<PRE>
public java.lang.String <B>getMessage</B>(java.lang.String&nbsp;key)</PRE>
<DL>
<DD>Returns a text message for the specified key, for the default Locale.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>key</CODE> - The message key to look up</DL>
</DD>
</DL>
<HR>

<A NAME="getMessage(java.lang.String, java.lang.Object[])"><!-- --></A><H3>
getMessage</H3>
<PRE>
public java.lang.String <B>getMessage</B>(java.lang.String&nbsp;key,                                   java.lang.Object[]&nbsp;args)</PRE>
<DL>
<DD>Returns a text message after parametric replacement of the specified parameter placeholders.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>key</CODE> - The message key to look up<DD><CODE>args</CODE> - An array of replacement parameters for placeholders</DL>
</DD>
</DL>
<HR>

<A NAME="getMessage(java.lang.String, java.lang.Object)"><!-- --></A><H3>
getMessage</H3>
<PRE>
public java.lang.String <B>getMessage</B>(java.lang.String&nbsp;key,                                   java.lang.Object&nbsp;arg0)</PRE>
<DL>
<DD>Returns a text message after parametric replacement of the specified parameter placeholders.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>key</CODE> - The message key to look up<DD><CODE>arg0</CODE> - The replacement for placeholder {0} in the message</DL>
</DD>
</DL>
<HR>

<A NAME="getMessage(java.lang.String, java.lang.Object, java.lang.Object)"><!-- --></A><H3>
getMessage</H3>
<PRE>
public java.lang.String <B>getMessage</B>(java.lang.String&nbsp;key,                                   java.lang.Object&nbsp;arg0,                                   java.lang.Object&nbsp;arg1)</PRE>
<DL>
<DD>Returns a text message after parametric replacement of the specified parameter placeholders.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>key</CODE> - The message key to look up<DD><CODE>arg0</CODE> - The replacement for placeholder {0} in the message<DD><CODE>arg1</CODE> - The replacement for placeholder {1} in the message</DL>
</DD>
</DL>
<HR>

<A NAME="getMessage(java.lang.String, java.lang.Object, java.lang.Object, java.lang.Object)"><!-- --></A><H3>
getMessage</H3>
<PRE>
public java.lang.String <B>getMessage</B>(java.lang.String&nbsp;key,                                   java.lang.Object&nbsp;arg0,                                   java.lang.Object&nbsp;arg1,                                   java.lang.Object&nbsp;arg2)</PRE>
<DL>
<DD>Returns a text message after parametric replacement of the specified parameter placeholders.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>key</CODE> - The message key to look up<DD><CODE>arg0</CODE> - The replacement for placeholder {0} in the message<DD><CODE>arg1</CODE> - The replacement for placeholder {1} in the message<DD><CODE>arg2</CODE> - The replacement for placeholder {2} in the message</DL>
</DD>
</DL>
<HR>

<A NAME="getMessage(java.lang.String, java.lang.Object, java.lang.Object, java.lang.Object, java.lang.Object)"><!-- --></A><H3>
getMessage</H3>
<PRE>
public java.lang.String <B>getMessage</B>(java.lang.String&nbsp;key,                                   java.lang.Object&nbsp;arg0,                                   java.lang.Object&nbsp;arg1,                                   java.lang.Object&nbsp;arg2,                                   java.lang.Object&nbsp;arg3)</PRE>
<DL>
<DD>Returns a text message after parametric replacement of the specified parameter placeholders.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>key</CODE> - The message key to look up<DD><CODE>arg0</CODE> - The replacement for placeholder {0} in the message<DD><CODE>arg1</CODE> - The replacement for placeholder {1} in the message<DD><CODE>arg2</CODE> - The replacement for placeholder {2} in the message<DD><CODE>arg3</CODE> - The replacement for placeholder {3} in the message</DL>
</DD>
</DL>
<HR>

<A NAME="getMessage(java.util.Locale, java.lang.String)"><!-- --></A><H3>
getMessage</H3>
<PRE>
public abstract java.lang.String <B>getMessage</B>(java.util.Locale&nbsp;locale,                                            java.lang.String&nbsp;key)</PRE>
<DL>
<DD>Returns a text message for the specified key, for the default Locale. A null string result will be returned by this method if no relevant message resource is found for this key or Locale, if the <code>returnNull</code> property is set.  Otherwise, an appropriate error message will be returned. <p> This method must be implemented by a concrete subclass.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>locale</CODE> - The requested message Locale, or <code>null</code>  for the system default Locale<DD><CODE>key</CODE> - The message key to look up</DL>
</DD>
</DL>
<HR>

<A NAME="getMessage(java.util.Locale, java.lang.String, java.lang.Object[])"><!-- --></A><H3>
getMessage</H3>
<PRE>
public java.lang.String <B>getMessage</B>(java.util.Locale&nbsp;locale,                                   java.lang.String&nbsp;key,                                   java.lang.Object[]&nbsp;args)</PRE>
<DL>

⌨️ 快捷键说明

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