Luis,

AFAIK anything outside of the layout-definition tag will not be involved 
in rendering.

So although its perfectly fine to put your taglibs include file there 
(b/c it doesn't really render anything) putting your language encoding 
there should basically make it as if the tag was never included in the 
1st place and your results are to be expected AFAIK.

Try the following:

<%@ include file="/WEB-INF/jsp/common/taglibs.jsp"%>
<s:layout-definition>
    <%@ page language="java" contentType="text/html; charset=UTF-8"    
pageEncoding="UTF-8"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>

and let us all know if this helps or if I'm out to lunch... ;-)

--Nikolaos




Luis Castro wrote:
> 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
>   


-- 
Nikolaos Giannopoulos
Director, BrightMinds Software Inc.
e. nikol...@brightminds.org
w. www.brightminds.org
t. 1.613.822.1700
c. 1.613.797.0036
f. 1.613.822.1915


------------------------------------------------------------------------------
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