📄 responseutils.html
字号:
<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, registerNatives, 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="messages"><!-- --></A><H3>
messages</H3>
<PRE>
protected static <A HREF="../../../../org/apache/struts/util/MessageResources.html">MessageResources</A> <B>messages</B></PRE>
<DL>
<DD>The message resources for this package.</DL>
<HR>
<A NAME="encode"><!-- --></A><H3>
encode</H3>
<PRE>
private static java.lang.reflect.Method <B>encode</B></PRE>
<DL>
<DD>Java 1.4 encode method to use instead of deprecated 1.3 version.</DL>
<HR>
<A NAME="log"><!-- --></A><H3>
log</H3>
<PRE>
private static final org.apache.commons.logging.Log <B>log</B></PRE>
<DL>
<DD>Commons logging instance.</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="ResponseUtils()"><!-- --></A><H3>
ResponseUtils</H3>
<PRE>
public <B>ResponseUtils</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="<clinit>()"><!-- --></A><H3>
<clinit></H3>
<PRE>
static void <B><clinit></B>()</PRE>
<DL>
<DD>Initialize the encode variable with the Java 1.4 method if available.</DL>
<HR>
<A NAME="filter(java.lang.String)"><!-- --></A><H3>
filter</H3>
<PRE>
public static java.lang.String <B>filter</B>(java.lang.String value)</PRE>
<DL>
<DD>Filter the specified string for characters that are sensitive to HTML interpreters, returning the string with these characters replaced by the corresponding character entities.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>value</CODE> - The string to be filtered and returned</DL>
</DD>
</DL>
<HR>
<A NAME="encodeURL(java.lang.String)"><!-- --></A><H3>
encodeURL</H3>
<PRE>
public static java.lang.String <B>encodeURL</B>(java.lang.String url)</PRE>
<DL>
<DD><p>URLencodes a string assuming the character encoding is UTF-8.</p><DD><DL>
<DT><B>Parameters:</B><DD><CODE>url</CODE> - <DT><B>Returns:</B><DD>String The encoded url in UTF-8</DL>
</DD>
</DL>
<HR>
<A NAME="encodeURL(java.lang.String, java.lang.String)"><!-- --></A><H3>
encodeURL</H3>
<PRE>
public static java.lang.String <B>encodeURL</B>(java.lang.String url, java.lang.String enc)</PRE>
<DL>
<DD>Use the new URLEncoder.encode() method from Java 1.4 if available, else use the old deprecated version. This method uses reflection to find the appropriate method; if the reflection operations throw exceptions, this will return the url encoded with the old URLEncoder.encode() method.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>enc</CODE> - The character encoding the urlencode is performed on.<DT><B>Returns:</B><DD>String The encoded url.</DL>
</DD>
</DL>
<HR>
<A NAME="write(javax.servlet.jsp.PageContext, java.lang.String)"><!-- --></A><H3>
write</H3>
<PRE>
public static void <B>write</B>(javax.servlet.jsp.PageContext pageContext, java.lang.String text) throws javax.servlet.jsp.JspException</PRE>
<DL>
<DD><B>Deprecated.</B> <I>use TagUtils.write() method instead. This method will be removed after Struts 1.2.</I>
<P>
<DD>Write the specified text as the response to the writer associated with this page. <strong>WARNING</strong> - If you are writing body content from the <code>doAfterBody()</code> method of a custom tag class that implements <code>BodyTag</code>, you should be calling <code>writePrevious()</code> instead.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>pageContext</CODE> - The PageContext object for this page<DD><CODE>text</CODE> - The text to be written<DT><B>Throws:</B><DD><CODE>javax.servlet.jsp.JspException</CODE> - if an input/output error occurs (already saved)</DL>
</DD>
</DL>
<HR>
<A NAME="writePrevious(javax.servlet.jsp.PageContext, java.lang.String)"><!-- --></A><H3>
writePrevious</H3>
<PRE>
public static void <B>writePrevious</B>(javax.servlet.jsp.PageContext pageContext, java.lang.String text) throws javax.servlet.jsp.JspException</PRE>
<DL>
<DD><B>Deprecated.</B> <I>use TagUtils.writePrevious() method instead. This method will be removed after Struts 1.2.</I>
<P>
<DD>Write the specified text as the response to the writer associated with the body content for the tag within which we are currently nested.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>pageContext</CODE> - The PageContext object for this page<DD><CODE>text</CODE> - The text to be written<DT><B>Throws:</B><DD><CODE>javax.servlet.jsp.JspException</CODE> - if an input/output error occurs (already saved)</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/ResponseUtils.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/util/RequestUtils.html"><B>PREV CLASS</B></A>
<A HREF="../../../../org/apache/struts/util/ServletContextWriter.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="ResponseUtils.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 + -