weblogic10.3的encoding问题 — oracle-tech

    Forum Stats

  • 3,715,999 Users
  • 2,242,927 Discussions
  • 7,845,731 Comments

Discussions

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

weblogic10.3的encoding问题

805312
805312 Member Posts: 1
关于page-encoding,我们在web.xml里面使用page-encoding来控制page的编码方式,使用的是utf8
<jsp-config>
<jsp-property-group>
<url-pattern>*.jsp</url-pattern>
<include-prelude>/ui/inc/taglib.jspf</include-prelude>
<!--
<page-encoding>UTF-8</page-encoding>
<trim-directive-whitespaces>true</trim-directive-whitespaces>
-->
</jsp-property-group>
</jsp-config>

然后在上述代码<page-encoding>UTF-8</page-encoding>一旦打开,在weblogic上面部署上去就会报错,认为不是期待的属性,这导致说在注释掉这一行之后,能正常发布但是界面都是乱码,请问如何解决或者有什么替代方式。
这个web.xml的头如下:
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
This discussion has been closed.