Mantis - Resin
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
3062 | minor | always | 11-10-08 18:37 | 03-25-09 16:54 | |
|
|||||
Reporter: | CnXiaowei | Platform: | |||
Assigned To: | ferg | OS: | |||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | 3.1.7 | ||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | 4.0.0 | ||
|
|||||
Summary: | 0003062: UTF-8 jsp files return 'contentType xxx conflicts with previous value of contentType yyy' | ||||
Description: |
I use resin-3.1.7a as my application server,and most of my jsp files is starts with<%@ page contentType="text/vnd.wap.wml;charset=UTF-8"%>&65292;It works well in resin-3.0.14&65292;but when I moved the application to resin-3.1.7,It doesn;t work,the error is: [show] /index.jsp:1: contentType 'text/vnd.wap.wml; charset=utf-8' conflicts with previous value of contentType 'text/html; charset=utf-8'. Check the .jsp and any included .jsp files for conflicts. 1: <%@page contentType="text/vnd.wap.wml; charset=utf-8"%> 2: <%@page import="java.util.*"%> 3: <%! I have read the source code of JspParser.java,and found that when the jsp file is UTF-8 format(with BOM,starts with 0xef,0xbb,0xbf),resin will set the content type as 'text/html; charset=UTF-8',But the content type I want to set is text/vnd.wap.wml; charset=utf-8' |
||||
Steps To Reproduce: | |||||
Additional Information: | |||||
Relationships | |||||
Attached Files: | D:\resin-3.1.7a\webapps\ROOT\test.jsp [^] (447 bytes) 11-11-08 18:02 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|