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
>>>
-
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
>%>
>
><%!
> private static char toHex(int nibble) {
>return hexDigit[(nibble & 0xF)];
> }
> private static char[] hexDigit = {
>'0','1','2','3','4','5','6','7','8','9',
;\\t"); break;
case '\n': buf.append("\\n"); break;
case '\r': buf.append("\\r"); break;
default:
//if (ch >= ' ' && ch <= 127) {
//buf.append(ch);
//}
//else {
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
>res.setContentType ("text/html; charset=utf-8");
>}
>catch (Throwable t) {
>t.printStackTrace ();
> }
> }
>return SKIP_BODY;
>}
>}
>
>--
>Michael
>
>-Original Me
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
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
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:
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
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
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
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
13 matches
Mail list logo