Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Application Server » Other AS  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 resin中乱码今天好明天坏的问题,tomcat一切正常
scud



CJSDN高级会员


发贴: 108
积分: 10
于 2004-12-28 20:53 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
Apache/1.3.31 Server + Resin Professional 3.0.9

都是静态jsp页面才有的问题,非静态jsp没有啥问题

页面头部都有<%@ page contentType="text/html; charset=GBK"%>

例如 http://www.jscud.com/support.jsp 现在乱码
http://www.jscud.com/about.jsp 现在是正常

现在的情况是: 假设现在正常,但是过一会可能就乱码了,然后你改改文件或者重新上传文件,又显示正常了 但是再过半天一天的,可能又乱码了,如果不管它,就可能一直乱下去了

莫名其妙啊

(我已经去掉了web.xml中的一切过滤器,仅保留了welcomefile)


scud edited on 2004-12-28 21:00

作者 Re:resin中乱码今天好明天坏的问题,tomcat一切正常 [Re:scud]
scud



CJSDN高级会员


发贴: 108
积分: 10
于 2004-12-28 20:57 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
看了看resin生成的编译中间文件,没发现什么不同

_support__jsp.static
_about__jsp.static



作者 Re:resin中乱码今天好明天坏的问题,tomcat一切正常 [Re:scud]
scud



CJSDN高级会员


发贴: 108
积分: 10
于 2004-12-28 21:07 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
我自己装了resin 3.0.10 试了一下,发现都是生成.java,没有生成 .static

可能和这个有关

因为服务器上生成的.static是没有指定编码的....

搜索了半天,也不知道这个.static是怎么生成的

不过这个static是UTF-8编码的,看起来也没啥问题.....


scud edited on 2004-12-28 21:19

作者 Re:resin中乱码今天好明天坏的问题,tomcat一切正常 [Re:scud]
scud



CJSDN高级会员


发贴: 108
积分: 10
于 2004-12-29 13:08 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
我分别试了一下resin 3.0.9和3.0.10

3.0.9就是生成static类似的文件
3.0.10生成.java类似的文件

我怀疑是3.0.9的bug.

在3.0.10的change log里面有:
a.. Disable JSP .static pages to simplify precompilation (rep by Randy Eckhoff)
a.. jsp-directive-page wasn't setting the default page-encoding (rep by Chris Chen)

我估计和这有关.

一般说来,最新版本总会有一些问题的.还是尽量使用稳定版本的好啊

Smile



作者 Re:resin中乱码今天好明天坏的问题,tomcat一切正常 [Re:scud]
another





发贴: 33
积分: 0
于 2005-03-18 21:05 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
升级到3.0.12


Resin专家成就梦想。
------------------------------------------------------------------
中国JAVA世界,Resin应用服务器专版

flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923