Rick,
Thanks for your advice. It was helpful.
Luis.
On 27/09/10 07:54, Rick Grashel wrote:
Luis,
Have you checked to make sure that you have this:
<%@ page contentType="text/html; charset=UTF-8" %>
... at the top of all of your JSPs? It is not enough to have this
only declared in your layout JSPs. I just ran a small local test. If
my layout JSP was declared as UTF-8 and my content JSP was declared as
ISO-8859, then the response would be returned as ISO-8859.
So be sure the charset is declared in every JSP.
Thanks.
-- Rick
On Sun, Sep 26, 2010 at 8:17 PM, Luis Castro <quarkal...@gmail.com
<mailto:quarkal...@gmail.com>> wrote:
Hello Nikolaos,
I'm affraid the proposal was unsuccessfull.
On 25/09/10 16:00, Nikolaos Giannopoulos wrote:
> 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; />
>> <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
<mailto:Stripes-users@lists.sourceforge.net>
>> https://lists.sourceforge.net/lists/listinfo/stripes-users
>>
>>
>
>
------------------------------------------------------------------------------
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
<mailto:Stripes-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/stripes-users
------------------------------------------------------------------------------
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
------------------------------------------------------------------------------
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