请问有那位对weblogic了解,请看为什么我在resin上正确的页面,而weblogic却报错如下:

13feng 2002-11-04 05:40:33
.jsp文件现在报如下错误
Parsing of JSP File 'default.jsp' failed:
--------------------------------------------------------------------------------
/default.jsp(2): multiple charsets defined for this page: started with charset='GBK', current content-type specifies 'gb2312'
probably occurred due to an error in /default.jsp line 2:
<%@ page contentType="text/html; charset=gb2312" %>
--------------------------------------------------------------------------------
Mon Nov 04 17:17:56 CST 2002
...全文
29 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
adijava 2002-11-04
  • 打赏
  • 举报
回复
你在页面里重复定义了charset,用
<%@ page language="java" contentType="text/html;charset=gb2312" %>就可以了。
tripofdream 2002-11-04
  • 打赏
  • 举报
回复
可能在weblogic.xml中已经设置了字符集为GBK,如:

<jsp-descriptor>
<jsp-param>
<param-name>compilerSupportsEncoding</param-name>
<param-value>true</param-value>
</jsp-param>
<jsp-param>
<param-name>encoding</param-name>
<param-value>GBK</param-value>
</jsp-param>
</jsp-descriptor>
lindeed 2002-11-04
  • 打赏
  • 举报
回复
两种可能,你的META 设置成GBK,但是page的charset为gb2312。
page字符集换成GBK再试试。你用的wl不支持gb2312这个字符集设定。
这种情况我没遇到过,但可以肯定使字符集的问题。

1,236

社区成员

发帖
与我相关
我的任务
社区描述
企业软件 中间件技术
社区管理员
  • 中间件
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧