weblogic8中文显示乱码解决办法

1/5/2008来源:Java教程人气:5784


  weblogic8中文显示乱码解决办法

中文显示乱码解决办法:

1.在web.xml里面加入

<context-param>

<param-name>weblogic.httpd.inputCharset./*</param-name>

<param-value>GB2312</param-value>

</context-param>

2.在weblogic.xml里面加入

<jsp-descriptor>

<jsp-param>

<param-name>compileCommand</param-name>

<param-value>javac</param-value>

</jsp-param>

<jsp-param>

<param-name>compilerSupportsEncoding</param-name>

<param-value>true</param-value>

</jsp-param>

<jsp-param>

<param-name>encoding</param-name>

<param-value>GB2312</param-value>

</jsp-param>

</jsp-descriptor>