高分求教:关于weblogic8.1 server 中文问题
1.我deploy一个servlet到weblogic8.1 server
但当我访问这个servlet时会抛出:
<2002/11/25 ¤W¤È10®É02¤À36¬í GMT+08:00> <Error> <HTTP> <BEA-101019> <[ServletCon
text(id=18888821,name=examplesWebApp,context-path=/examplesWebApp)] Servlet fail
ed with IOException
java.net.ProtocolException: Didn't meet stated Content-Length, wrote: '59467' by
tes instead of stated: '59525' bytes...
............
这个问题英文环境就没有。
2.我在web.xml里加上:
<context-param>
<param-name>weblogic.httpd.inputcharset./*</param-name>
<param-values>8859_1</param-values>
</context-param>
在启动时就会出错。
org.xml.sax.SAXParseException: The markup in the document following the root ele
ment must be well-formed.
at weblogic.apache.xerces.parsers.DOMParser.parse(DOMParser.java:271)
at weblogic.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilder
Impl.java:201)
at weblogic.servlet.internal.dd.DescriptorLoader.parse(DescriptorLoader.
java:678)
at weblogic.servlet.internal.dd.DescriptorLoader.initializeWebXml(Descri
ptorLoader.java:694)
这是为什麽?
我怎样在web.xml里加这个encoding