tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Bruce Lynes <>
Subject Re: Tomcat 4.1.18
Date Fri, 17 Jan 2003 21:37:43 GMT
On Friday 17 January 2003 07:03, Shapira, Yoav wrote:

> Howdy,
> Perhaps this will shed some light.  See Issue 1 at
> 1_2_a_20020321.html
> Yoav Shapira
> Millennium ChemInformatics

This sort of fixed it.  It fixed one problem, but dug a bigger hole elsewhere.

The charset header is now fixed.  However, the problem that remains now is 
that struts doesn't load up the resources properly.  The messages that get 
pumped out to the page end up as a bunch of question marks.

To fix this, I wrote my own tag library to read in the struts messages, and 
output them:

String value=(String)messages.getMessage(key);
try {
	byte[] text=value.getBytes("iso-8859-1") ;
	value=new String(text,"gb2312") ;
} catch( uee ) {
JspWriter.out(value) ;

It should be clear that this isn't a valid solution either.  If support for 
languages other than English and mainland Chinese is desired, a lot of 
branching code will be needed here.



To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message