Topic: resin中乱码今天好明天坏的问题,tomcat一切正常 |
Print this page |
1.resin中乱码今天好明天坏的问题,tomcat一切正常 | Copy to clipboard |
Posted by: scud Posted on: 2004-12-28 20:53 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) |
2.Re:resin中乱码今天好明天坏的问题,tomcat一切正常 [Re: scud] | Copy to clipboard |
Posted by: scud Posted on: 2004-12-28 20:57 看了看resin生成的编译中间文件,没发现什么不同 _support__jsp.static _about__jsp.static |
3.Re:resin中乱码今天好明天坏的问题,tomcat一切正常 [Re: scud] | Copy to clipboard |
Posted by: scud Posted on: 2004-12-28 21:07 我自己装了resin 3.0.10 试了一下,发现都是生成.java,没有生成 .static 可能和这个有关 因为服务器上生成的.static是没有指定编码的.... 搜索了半天,也不知道这个.static是怎么生成的 不过这个static是UTF-8编码的,看起来也没啥问题..... |
4.Re:resin中乱码今天好明天坏的问题,tomcat一切正常 [Re: scud] | Copy to clipboard |
Posted by: scud Posted on: 2004-12-29 13:08 我分别试了一下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) 我估计和这有关. 一般说来,最新版本总会有一些问题的.还是尽量使用稳定版本的好啊 |
5.Re:resin中乱码今天好明天坏的问题,tomcat一切正常 [Re: scud] | Copy to clipboard |
Posted by: another Posted on: 2005-03-18 21:05 升级到3.0.12 |
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 |