Re: [Stripes-users] Stripes and charset UTF-8

2010-09-28 Thread Luis Castro

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 > 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"%>
> 
> <%@ page language="java" contentType="text/html; charset=UTF-8"
> pageEncoding="UTF-8"%>
>  "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  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"%>
>> 
>> > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
>> http://www.w3.org/1999/xhtml";>
>> 
>> 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



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


Re: [Stripes-users] Stripes and charset UTF-8

2010-09-27 Thread Rick Grashel
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  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"%>
> > 
> >  <%@ page language="java" contentType="text/html; charset=UTF-8"
> > pageEncoding="UTF-8"%>
> >   > "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  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"%>
> >> 
> >>  >> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
> >> http://www.w3.org/1999/xhtml";>
> >> 
> >>   />
> >>  ${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
> >>
> >>
> >
> >
>
>
>
> --
> 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


Re: [Stripes-users] Stripes and charset UTF-8

2010-09-26 Thread Luis Castro
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"%>
> 
>  <%@ page language="java" contentType="text/html; charset=UTF-8"
> pageEncoding="UTF-8"%>
>   "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  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"%>
>> 
>> > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
>> http://www.w3.org/1999/xhtml";>
>> 
>>  
>>  ${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
>>
>>  
>
>


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


Re: [Stripes-users] Stripes and charset UTF-8

2010-09-25 Thread Nikolaos Giannopoulos
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"%>

<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
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  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"%>
> 
>  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
> http://www.w3.org/1999/xhtml";>
> 
> 
> ${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


[Stripes-users] Stripes and charset UTF-8

2010-09-25 Thread Luis Castro

Hello,

I'm testing Stripes 1.5.3 with Apache Tomcat 6.0.20 and I have a 
layout_main.jsp with  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"%>

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>

http://www.w3.org/1999/xhtml";>


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