Re: Struts2, tiles2 and character encoding problem

2007-02-08 Thread elin

Reported bug:

https://issues.apache.org/struts/browse/TILES-104

Let's continue any further conversation on the [EMAIL PROTECTED] mailing list.



Joe Germuska wrote:
> 
> OK, a few more notes:
> 
> just to be clear,
> 
> I have specified struts.i18n.encoding=UTF-8.
> 
> 
> This is not used to directly set the response character encoding.
> 
> I use a CharacterEncodingFilter to set encoding to UTF-8.
> 
> 
> In my experience, a CharacterEncodingFilter is used to control the request
> content type, not the response content type.  That's what the Spring class
> called CharacterEncodingFilter does.  Assuming yours is the same, it won't
> come into play in debugging this problem.
> 
> I specify  on the page.
>>
> 
> I am not sure whether browsers allow this to override an explicit content
> type set in the HTTP response, but in any case, it's more important that
> the
> HTTP response header be explicitly set.  In a local test application I
> have,
> the servlet container is setting the header even when I don't explicitly
> set
> it.
> 
> Using the latest code, I've tested going directly to a JSP (no struts),
> going to a default result (RequestDispatcher.forward) and going to a Tiles
> result.  I get an explicit content type in all three cases, even though
> the
> JSP itself doesn't set the content type. I think there's something about
> that in the Servlet spec, that the container is required to set a content
> type, although that's at odds with what I experienced when I filed
> TILES-28
> and with Elin's experience, so I'm not sure.
> 
> This discussion REALLY belongs on [EMAIL PROTECTED] -- user lists are meant to
> discuss using the app, not fixing bugs in prereleased code.  Elin, if you
> want to pursue this, please file a bug with as much as you can offer for
> reproducibility (especially since I just tried and can't reproduce it) and
> if you want to have further email, please join the [EMAIL PROTECTED] mailing 
> list.
> See http://tiles.apache.org/mail-lists.html
> 
> 
> On 2/7/07, elin <[EMAIL PROTECTED]> wrote:
>>
>>
>> I double-checked that there is only one tiles-core jar.
>>
>> Monitoring shows:
>>
>> Conventional Struts result response's Content-Type header is
>> text/html;charset=utf-8
>>
>> If I request a jsp directly, the response's Content-Type header is
>> text/html;charset=utf-8
>>
>> Tiles Result response has no Content-Type header
>>
>>
>>
>> Elin
>> --
>> View this message in context:
>> http://www.nabble.com/Struts2%2C-tiles2-and-character-encoding-problem-tf3181491.html#a8845842
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> Joe Germuska
> [EMAIL PROTECTED] * http://blog.germuska.com
> 
> "The truth is that we learned from João forever to be out of tune."
> -- Caetano Veloso
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Struts2%2C-tiles2-and-character-encoding-problem-tf3181491.html#a8863903
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts2, tiles2 and character encoding problem

2007-02-07 Thread elin

I double-checked that there is only one tiles-core jar.

Monitoring shows:

Conventional Struts result response's Content-Type header is
text/html;charset=utf-8

If I request a jsp directly, the response's Content-Type header is
text/html;charset=utf-8

Tiles Result response has no Content-Type header



Elin
-- 
View this message in context: 
http://www.nabble.com/Struts2%2C-tiles2-and-character-encoding-problem-tf3181491.html#a8845842
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts2, tiles2 and character encoding problem

2007-02-07 Thread elin

Thank you for your reply.

I upgraded from struts 2.0.4 to 2.0.5 but with the same result. I use maven
to build the project which gives me the tiles version
tiles-core-2.0-20070130.184344-3.jar. It seems to be the latest snapshot. Is
this the version where the bug you mentioned is fixed? Or do you mean that
it is fixed in the next build?

Monitoring the response with fiddler shows that there is no content-type
header.

I use a tiles definition file and the insertAttribute tag to build the tiles
result.

Elin
-- 
View this message in context: 
http://www.nabble.com/Struts2%2C-tiles2-and-character-encoding-problem-tf3181491.html#a8841954
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Struts2, tiles2 and character encoding problem

2007-02-06 Thread elin

Hi,

I use struts2 and tiles2 in my web application. When my tiles result
contains data with åäö and I write the data using el, the characters are not
displayed correctly. If I write the data with a struts tag, for example
 the characters are displayed correctly.

If I do not to use a tiles result, just a simple jsp, the characters are
displayed correctly when I use el.

I have specified struts.i18n.encoding=UTF-8.

I use a CharacterEncodingFilter to set encoding to UTF-8.

I specify  on the page.

Any ideas?

/Elin



-- 
View this message in context: 
http://www.nabble.com/Struts2%2C-tiles2-and-character-encoding-problem-tf3181491.html#a8828883
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]