After people asking me by mail for a detailed solution. I made a post in my blog. http://blog.seesaw.it/articles/2006/04/14/cannot-change-charset-from-utf8-to-utf-8
Paolo On 12/10/05, Paolo Donà <[EMAIL PROTECTED]> wrote: > > I had that problem too and worked around setting up a servlet filter like > the attacched one. > Then I mapped it this way : > > <filter> > <filter-name>contentTypePatchFilter</filter-name> > <description>Filtro per evitare "IllegalStateException: Attempt to > change ContentType after calling getWriter()" su BEA WLS81</description> > <filter-class> > it.archeometra.flotte.presentation.setContentTypePatch.ContenTypePatchFilter</filter-class> > </filter> > <filter-mapping> > <filter-name>contentTypePatchFilter</filter-name> > <url-pattern>/app</url-pattern> > </filter-mapping> > > Ignore Italian comments please :-D > > Hope this help. > Paolo > > > > On 12/10/05, Kent Tong <[EMAIL PROTECTED] > wrote: > > > > crafty78 <maillist <at> tapestryforums.com > writes: > > > > > > > > Is there any idea if this will be addressed, its a bit of a > > showstopper as i > > > can't use tapestry on weblogic! > > > > This a bug in WebLogic. Calling setContentType() after call getWriter() > > is allowed by the servlet api specification: > > > > setContentType() > > > > This method may be called repeatedly to change content type and > > character encoding. This method has no effect if called after the > > response has been committed. It does not set the response's > > character encoding if it is called after getWriter has been called > > or after the response has been committed. > > > > -- > > In fact, Tapestry has already called reset() on the response which > > should clear the state (including the content type and whether > > getWriter() has been called) of the response. However, I can't find > > any info in the spec requiring this behavior. > > > > -- > > Author of a book for learning Tapestry (http://www.agileskills2.org/EWDT > > ) > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > -- Paolo Donà email me: paolo[dot]dona[at]gmail[dot]com skype me: paolo[dot]dona