You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by "Liu, Xiaoyan" <xl...@CapitalThinking.com> on 2002/11/04 20:09:36 UTC

Support multiple page encoding with JSP

Hi, 

I have seen this question asked on this list before, but
didn't see a good answer or conclusion at the time they are
raised. Hope there are new ideas now.

The question is: for jsp pages targeting multiple locales, how
to dynamically set page encoding (especially response encoding)
 so that there is no need of maintaining multiple set of jsp pages
with them differing only in <% page contentType %> bit. 

Request parsing for different encoding can be handled dynamically
by the proposed 'filter' approach. But how about 'response'?


Thanks.


Liu


Re: Support multiple page encoding with JSP

Posted by Scott Farquhar <sc...@atlassian.com>.
See this bug for more information:

   http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5715

You can use a servlet filter, so long as you are willing to be a bit 
flexible.

Cheers,
Scott

Liu, Xiaoyan wrote:
> Hi, 
> 
> I have seen this question asked on this list before, but
> didn't see a good answer or conclusion at the time they are
> raised. Hope there are new ideas now.
> 
> The question is: for jsp pages targeting multiple locales, how
> to dynamically set page encoding (especially response encoding)
>  so that there is no need of maintaining multiple set of jsp pages
> with them differing only in <% page contentType %> bit. 
> 
> Request parsing for different encoding can be handled dynamically
> by the proposed 'filter' approach. But how about 'response'?
> 
> 
> Thanks.
> 
> 
> Liu
> 
> 

-- 

ATLASSIAN - http://www.atlassian.com
Expert J2EE Software, Services and Support
-------------------------------------------------------
Need a simple, powerful way to track and manage issues?
Try JIRA - http://www.atlassian.com/software/jira


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>