Re: character encoding, JAAS, servlet filter vs. valve

2003-09-24 Thread Joerg Heinicke
Adam Hardy wrote: I can't see why. Perhaps you are overriding it later in the request processing? Struts uses response.setContentType() The docs say: overridden automatically if a * codeRequestDispatcher.forward()/code call is * ultimately invoked. but that leaves me none the wiser.

Re: character encoding, JAAS, servlet filter vs. valve

2003-09-24 Thread Joerg Heinicke
Adam Hardy wrote: albeit - does not sound very English, but my dictionary knows it :-) Pronounced all - be - it which makes it sounds like 3 seperate but very english words. Never did know what it meant. Did I use it correctly? 8-) At least the translation in my dictionary makes sense :-P This

Re: character encoding, JAAS, servlet filter vs. valve

2003-09-24 Thread Adam Hardy
Well post a message if you manage to sort it out. I now wasting time trying to get emacs to work with unicode, but when I've done that, I'll should be able to try out the same thing as you. The way I see it, as long as the html login page going out to the browser has character-encoding set to

character encoding, JAAS, servlet filter vs. valve

2003-09-23 Thread Joerg Heinicke
Hello, we have a Struts web application, that should use UTF-8 as character encoding. I set the content type for the HTML pages (JSP) as well as the character encoding on the request via the SetCharacterEncodingFilter delivered with Tomcat in the examples webapp. It works in the whole

Re: character encoding, JAAS, servlet filter vs. valve

2003-09-23 Thread Adam Hardy
Hi Joerg, since you are using struts, why don't you ditch the SetCharacterEncodingFilter and set the character-encoding as a property of the struts controller? This means you also don't need anything in your JSPs. I assume you are using form-based container-managed authentication as the

Re: character encoding, JAAS, servlet filter vs. valve

2003-09-23 Thread Joerg Heinicke
Adam Hardy wrote: Hi Joerg, since you are using struts, why don't you ditch the SetCharacterEncodingFilter and set the character-encoding as a property of the struts controller? This means you also don't need anything in your JSPs. Ah, okay. It's our first Struts project and experience. I found

Re: character encoding, JAAS, servlet filter vs. valve

2003-09-23 Thread Joerg Heinicke
Joerg Heinicke wrote: I found http://jakarta.apache.org/struts/api/org/apache/struts/config/ControllerConfig.html#contentType and set the contentType in the struts-config.xml with controller contentType=text/html;charset=UTF-8/. Does not work as expected. Mozilla recognizes the pages know as

Re: character encoding, JAAS, servlet filter vs. valve

2003-09-23 Thread Adam Hardy
I can't see why. Perhaps you are overriding it later in the request processing? Struts uses response.setContentType() The docs say: overridden automatically if a * codeRequestDispatcher.forward()/code call is * ultimately invoked. but that leaves me none the wiser. Adam On 09/23/2003

Re: character encoding, JAAS, servlet filter vs. valve

2003-09-23 Thread Adam Hardy
On 09/23/2003 03:20 PM Joerg Heinicke wrote: Ah, okay. It's our first Struts project and experience. I found http://jakarta.apache.org/struts/api/org/apache/struts/config/ControllerConfig.html#contentType and set the contentType in the struts-config.xml with controller