Hello,

I'm testing Stripes 1.5.3 with Apache Tomcat 6.0.20 and I have a layout_main.jsp with <s:layout-definition> tag.

When I request a page generated by Stripes, Tomcat sends this to the browser:

   HTTP/1.1 200 OK
   Server: Apache-Coyote/1.1
   Set-Cookie: JSESSIONID=EB09B410B8D18F4AACBEA52E270F6ABF;
   Path=/TestStripes15
   *Content-Type: text/html *
   Content-Language: es-CR
   Transfer-Encoding: chunked
   Date: Sat, 25 Sep 2010 14:46:36 GMT


And when I request a  jsp file not generated by Stripes, I get

   HTTP/1.1 200 OK
   Server: Apache-Coyote/1.1
   *Content-Type: text/html;charset=UTF-8 *
   Content-Length: 498
   Date: Sat, 25 Sep 2010 14:47:17 GMT


It seems the charset=UTF-8 is missing when the page is generated by Stripes. The header of my layout_main.jsp is as follows:

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/common/taglibs.jsp"%>
<s:layout-definition>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml";>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>${title}</title>

I have tried several combinations: putting the DOCTYPE below and after the s:layout_definition tag with no success.

Any advise will be appreciated.


Luis.

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to