Back Forum Reply New

View resolver renders text/plain !

Hi,

I am using InternalViewResolver to render my JSP

But it renders it as text/plain !!

I don't understand how to tell him to render it as text/html

Here is my JSP :

Code:
lt;%@ page language=quot;javaquot; contentType=quot;text/htmlquot; pageEncoding=quot;UTF-8quot;%gt;
lt;!DOCTYPE HTML PUBLIC quot;-//W3C//DTD HTML 4.01 Transitional//ENquot; quot;TR/html4/loose.dtdquot;gt;
lt;htmlgt;
lt;headgt;
lt;titlegt;Hellolt;/titlegt;
lt;meta from-equiv=quot;Content-Typequot; content=quot;text/htmlquot;gt;
lt;/headgt;
lt;bodygt;
Hello
lt;/bodygt;
lt;/htmlgt;
Here is Firebug network trace :

Request :

Code:
Hostlocalhost:8888
User-AgentMozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; fr; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 GTB7.1
Accepttext/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Languagefr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encodinggzip,deflate
Accept-CharsetISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive115
Connectionkeep-alive
If-Modified-SinceSat, 15 Jan 2011 01:53:24 GMT
Cache-Controlmax-age=0
Response :

Code:
Content-Languagefr
Content-Typetext/plain
Content-Length301
Last-ModifiedSat, 15 Jan 2011 01:53:24 GMT
Cache-Controlprivate
ServerJetty(6.1.x)
I uploaded an example here : svn/trunkThanks for your help
¥
Back Forum Reply New