Re: Usage of i18n in JSTL

2002-06-03 Thread Vernon Wu
se locale information. Both kinds of files are just flat >>>text files. >>> >>>-Original Message- >>>From: Vernon Wu [mailto:[EMAIL PROTECTED]] >>>Sent: Wednesday, May 22, 2002 11:14 PM >>>To: Tag Libraries Users List; Michale Zhou >>>

RE: RE: RE: Usage of i18n in JSTL

2002-05-23 Thread Michale Zhou
- From: Vernon Wu [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 11:14 PM To: Tag Libraries Users List; Michale Zhou Subject: Re: RE: RE: Usage of i18n in JSTL Thanks very much, Michael. Your help is far over what I expect. Using the converter program is a better than looking up the near

Re: RE: RE: Usage of i18n in JSTL

2002-05-23 Thread Vernon Wu
>%> > ><%! > private static char toHex(int nibble) { >return hexDigit[(nibble & 0xF)]; > } > private static char[] hexDigit = { >'0','1','2','3','4','5','6','7','8','9',&#

RE: RE: Usage of i18n in JSTL

2002-05-23 Thread Michale Zhou
;\\t"); break; case '\n': buf.append("\\n"); break; case '\r': buf.append("\\r"); break; default: //if (ch >= ' ' && ch <= 127) { //buf.append(ch); //} //else {

Re: Usage of i18n in JSTL

2002-05-23 Thread Vernon Wu
It works! Hi, Jan, The last problem, I think, is that I didn't have the associated tld files come with the jar files. I don't see the tld files is used if using taglib directive as you suggest however. I test on both ways of setting up tag lib directive. Both are working. The two problem ar

Re: RE: Usage of i18n in JSTL

2002-05-23 Thread Vernon Wu
>res.setContentType ("text/html; charset=utf-8"); >} >catch (Throwable t) { >t.printStackTrace (); > } > } >return SKIP_BODY; >} >} > >-- >Michael > >-Original Me

Re: Usage of i18n in JSTL

2002-05-22 Thread Jan Luehe
Vernon: > 1) > I follow the instruction and insert the line: > <%@ taglib uri="http://java.sun.com/jstl/ea/fmt"; prefix="fmt" %> > in a JSP file, and the lines: > > > javax.servlet.jsp.jstl.i18n.basename > mm > > in the web.xml file. > > I also have three resourc

RE: Usage of i18n in JSTL

2002-05-22 Thread Michael Zhou
Original Message- From: Vernon Wu [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 21, 2002 5:22 PM To: Jan Luehe Cc: [EMAIL PROTECTED] Subject: Re: Usage of i18n in JSTL Thanks Jan for your detailed explanation. I think I finally find the right document which is under the standard-doc of

Re: Usage of i18n in JSTL

2002-05-22 Thread Vernon Wu
Thanks Jan for your detailed explanation. I think I finally find the right document which is under the standard-doc of the taglib. 1) I follow the instruction and insert the line: <%@ taglib uri="http://java.sun.com/jstl/ea/fmt"; prefix="fmt" %> in a JSP file, and the lines:

Re: Usage of i18n in JSTL

2002-05-17 Thread Jan Luehe
Vernon: > To my understanding, when I use the i18n tags from JSTL, I don't > need to write any class to get locale information stored. Only task > is to configure the locale information file. Please point it out if > I am wrong. If I need to use the PropertyResourceBundle class as > the followin

Re: Usage of i18n in JSTL

2002-05-17 Thread Vernon Wu
Thanks Jan for your response. To my understanding, when I use the i18n tags from JSTL, I don't need to write any class to get locale information stored. Only task is to configure the locale information file. Please point it out if I am wrong. If I need to use the PropertyResourceBundle class

Re: Usage of i18n in JSTL

2002-05-16 Thread Jan Luehe
Vernon: > I just start to use the JSTL since the day before. It seems to me > that the i18n messages have to be placed in a subclass of the > ListResourceBundle. The messages are stored in a two dimension > string array. And it can't be constructed in the object initiation > time (since it is in

Usage of i18n in JSTL

2002-05-16 Thread Vernon Wu
I just start to use the JSTL since the day before. It seems to me that the i18n messages have to be placed in a subclass of the ListResourceBundle. The messages are stored in a two dimension string array. And it can't be constructed in the object initiation time (since it is in a static final