struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raghuveer" <raghuve...@infotechsw.com>
Subject response.setContentType("text/html; charset=utf-8")
Date Fri, 08 Sep 2006 13:06:48 GMT

>From the source examples
jakarta-struts-1.1-src\jakarta-struts-1.1-src\src\upload\org\apache\struts\w
ebapp\upload

What does the use of
 response.setContentType("text/html; charset=utf-8");


-------------------------------------------
/this line is here for when the input page is upload-utf8.jsp,
            //it sets the correct character encoding for the response
            String encoding = request.getCharacterEncoding();
            if ((encoding != null) && (encoding.equalsIgnoreCase("utf-8")))
            {
                response.setContentType("text/html; charset=utf-8");
            }


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message