|
Oracle Containers for J2EE Support for JavaServer Pages Java API Reference 10g (10.1.3.1.0) B28960-01 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.jsp.util.PublicUtil
This class is a collection of static utility API methods, which are intended for public external usage
Constructor Summary | |
PublicUtil() |
Method Summary | |
static void |
setWriterEncoding(JspWriter out, java.lang.String encoding) to set special char set (non-IANA charset, for example, "MS950") in JspWriter. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PublicUtil()
Method Detail |
public static void setWriterEncoding(JspWriter out, java.lang.String encoding)
<%@ page contentType="text/html;charset=xyz" %>
response.setContentType("text/html;charset=xyz");
<%@ page contentType="text/html;charset=Big-5" %>
<% oracle.jsp.util.PublicUtil.setWriterEncoding(out,"MS950"); %>
This example uses "Big-5" as the charset of the content type, while using "MS950" (a non-IANA HongKong dialect version of "Big-5" charset) as the charset of JspWriter. <p/> NOTE: make this call as early as possible in the page.
|
Oracle Containers for J2EE Support for JavaServer Pages Java API Reference 10g (10.1.3.1.0) B28960-01 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |