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

📄 messageresources.html

📁 struts api,学习使用struts必备的文档
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<DD>Returns a text message after parametric replacement of the specified parameter placeholders.  A null string result will be returned by this method if no resource bundle has been configured.<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<DD><CODE>args</CODE> - An array of replacement parameters for placeholders</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;arg0)</PRE>
<DL>
<DD>Returns a text message after parametric replacement of the specified parameter placeholders.  A null string result will never be returned by this method.<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<DD><CODE>arg0</CODE> - The replacement for placeholder {0} in the message</DL>
</DD>
</DL>
<HR>

<A NAME="getMessage(java.util.Locale, java.lang.String, java.lang.Object, 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;arg0,                                   java.lang.Object&nbsp;arg1)</PRE>
<DL>
<DD>Returns a text message after parametric replacement of the specified parameter placeholders.  A null string result will never be returned by this method.<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<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.util.Locale, 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.util.Locale&nbsp;locale,                                   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.  A null string result will never be returned by this method.<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<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.util.Locale, 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.util.Locale&nbsp;locale,                                   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.  A null string result will never be returned by this method.<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<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="isPresent(java.lang.String)"><!-- --></A><H3>
isPresent</H3>
<PRE>
public boolean <B>isPresent</B>(java.lang.String&nbsp;key)</PRE>
<DL>
<DD>Return <code>true</code> if there is a defined message for the specified key in the system 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="isPresent(java.util.Locale, java.lang.String)"><!-- --></A><H3>
isPresent</H3>
<PRE>
public boolean <B>isPresent</B>(java.util.Locale&nbsp;locale,                         java.lang.String&nbsp;key)</PRE>
<DL>
<DD>Return <code>true</code> if there is a defined message for the specified key in the specified Locale.<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="escape(java.lang.String)"><!-- --></A><H3>
escape</H3>
<PRE>
protected java.lang.String <B>escape</B>(java.lang.String&nbsp;string)</PRE>
<DL>
<DD>Escape any single quote characters that are included in the specified message string.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>string</CODE> - The string to be escaped</DL>
</DD>
</DL>
<HR>

<A NAME="localeKey(java.util.Locale)"><!-- --></A><H3>
localeKey</H3>
<PRE>
protected java.lang.String <B>localeKey</B>(java.util.Locale&nbsp;locale)</PRE>
<DL>
<DD>Compute and return a key to be used in caching information by a Locale. <strong>NOTE</strong> - The locale key for the default Locale in our environment is a zero length String.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>locale</CODE> - The locale for which a key is desired</DL>
</DD>
</DL>
<HR>

<A NAME="messageKey(java.util.Locale, java.lang.String)"><!-- --></A><H3>
messageKey</H3>
<PRE>
protected java.lang.String <B>messageKey</B>(java.util.Locale&nbsp;locale,                                      java.lang.String&nbsp;key)</PRE>
<DL>
<DD>Compute and return a key to be used in caching information by Locale and message key.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>locale</CODE> - The Locale for which this format key is calculated<DD><CODE>key</CODE> - The message key for which this format key is calculated</DL>
</DD>
</DL>
<HR>

<A NAME="messageKey(java.lang.String, java.lang.String)"><!-- --></A><H3>
messageKey</H3>
<PRE>
protected java.lang.String <B>messageKey</B>(java.lang.String&nbsp;localeKey,                                      java.lang.String&nbsp;key)</PRE>
<DL>
<DD>Compute and return a key to be used in caching information by locale key and message key.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>localeKey</CODE> - The locale key for which this cache key is calculated<DD><CODE>key</CODE> - The message key for which this cache key is calculated</DL>
</DD>
</DL>
<HR>

<A NAME="getMessageResources(java.lang.String)"><!-- --></A><H3>
getMessageResources</H3>
<PRE>
public static <A HREF="../../../../org/apache/struts/util/MessageResources.html">MessageResources</A> <B>getMessageResources</B>(java.lang.String&nbsp;config)</PRE>
<DL>
<DD>Create and return an instance of <code>MessageResources</code> for the created by the default <code>MessageResourcesFactory</code>.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>config</CODE> - Configuration parameter for this message bundle.</DL>
</DD>
</DL>
<HR>

<A NAME="log(java.lang.String)"><!-- --></A><H3>
log</H3>
<PRE>
public void <B>log</B>(java.lang.String&nbsp;message)</PRE>
<DL>
<DD>Log a message to the Writer that has been configured for our use.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>message</CODE> - The message to be logged</DL>
</DD>
</DL>
<HR>

<A NAME="log(java.lang.String, java.lang.Throwable)"><!-- --></A><H3>
log</H3>
<PRE>
public void <B>log</B>(java.lang.String&nbsp;message,                java.lang.Throwable&nbsp;throwable)</PRE>
<DL>
<DD>Log a message and exception to the Writer that has been configured for our use.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>message</CODE> - The message to be logged<DD><CODE>throwable</CODE> - The exception to be logged</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>&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="class-use/MessageResources.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&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/struts/util/LabelValueBean.html"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../org/apache/struts/util/MessageResourcesFactory.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>  &nbsp;
&nbsp;<A HREF="MessageResources.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY: &nbsp;INNER&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>
<!-- =========== END OF NAVBAR =========== -->

<HR>
Copyright 

⌨️ 快捷键说明

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