Alberto,
> I'm using the i18n tags of JSTL in my JSP which is running over
> jboss-3.0.1RC1_tomcat-4.0.4. My JSP has these i18n tags:
>
> <%@ taglib uri="jstl-fmt" prefix="fmt" %>
>
>
> I have added standard.jar and jstl.jar to WEB-INF/lib, fmt.tld to WEB-INF
> and the following tags to web.x
Lukasz,
> All my JSP pages have <%@page contentType='text/html; charset=utf-8'%>
> directive on top and the browser should get them in UTF-8. When I use
> tags, the encoding is reset to my locale's default
> encoding (which is iso-8859-2 for pl_PL). How can I stop fmt:* tags
> from resetting re
Eric,
> The tags are great, but we have one problem: We use (not
> surprisingly) a database for storing our translations.
> However, when I insert a new translation (key/value pair), I have to restart
> Tomcat to actually be able to use it in JSTL.
>
> Does anyone have the same problem and/or a
Vernon,
> After more than three hours research and test, I haven't resolve the
> problem yet. If my understand is right, what you suggested is to
> have the following code frame in the JSP page:
>
>
< I had this line at the very
> begining of the page
>
> greetingMorning
>
><--
Vernon,
you should be able to avoid unnecessary loading of resource bundles by
using the and tags.
If you use at the beginning of your page, it will
establish a localization context and store the appropriate resource
bundle in it. Any subsequent actions will leverage this
resource bundle, in
Marino,
> How to specify a resource bundle for I18N in JSTL?
> Should it be specified in web.xml file
> under element or somewhere else?
>
> What If there is no specific bundle for request Locale?
> (Should be the base resource bundle used than?)
you specify the resource bundle base name as
Hi Paul,
> complete newbie (actually a coldfusion guy, trying to make use of this
> taglib
> within cfmx). is anyone making use of the i18n taglib? any simple examples
> i can take a look at?
the i18n taglib has been superseded by the I18N- and
locale-sensitive formatting tags that come with JST
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
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
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
Hi Martin:
> >What exactly is the exception you are getting?
>
> I'm getting a JspTagException from line 212 of FormatNumberSupport.java.
> There is no root cause reported, so I can't be more specific.
The root cause will be reported as of tonight's nightly build
(I've just committed this chang
Martin:
> According to the PFD, if I'm running on J2SE 1.4 and I use a tag like this:
>
>
>
> I should see, I believe "(pound sign)12.34" in my browser. However, what I'm
> seeing is "GBP12.34" instead.
Hmm, I get the expected:
£12.34
Did you remember to set your browser's preferred loca
Hi Loren:
> The tag also seems to be throwing an exception in a page
> that has no session I just tested this with the nightly build from April 25
> on Tomcat 4.0.2. I think it's similar to the query tag issue you fixed
> yesterday. However, perhaps I'm missing something, do the fmt tags requir
Puneet:
> Could anybody show me some example showing usage of
> Currently, I'm using something like this in my JSP, but its not printing
> anything.
>
> pattern="MM/dd/"/>
Have you considered using the new formatting tags that
are part of the JSP Standard Tag Library (JSTL)?
(See Tim Daw
Hi Eric:
> Ok, I now reinstalled Tomcat (4.0.3, full version) and the nightly JSTL
> build (everything as binaries). Now it works, but not everything...
>
> - For I18N, the "Parametric Replacement" and "Date" example gives me
> javax.servlet.ServletException: Unparseable date: ""
I managed to
Torsten:
> I am using i18n tag lib and wonder, if it is possible to get the key
> itself returned from the message tag, whenever the key is not found in the
> resource file.
> So this way it would be easy to see, which key is missing in the resource
> files, since your output still contains cl
> The usual thing to do with exceptions in a i18n environment is to throw a
> code for the message, not the actual message. Then you just use the code as
> a key to look up the localized message in a properties file. This way
> there's no need to use any custom exceptions.
In the approach you a
Cindy:
> The tag performs the same function as
> the following:
>
> <%@ page contentType="text/html;charSet=UTF-8" %>
>
> right?
No. ;-)
Even when you specify your page's charset via the 'contentType'
attribute of a page directive, your page's locale (and thus character
encoding) may differ
Cindy:
> I'm trying to figure out tag. The specs say, "If the message
> corresponding to the given key is compound, that is, contains one or more
> variables, it can be supplied with argument values for these variables by
> using a subtag for each argument value"
>
> The example in the sp
19 matches
Mail list logo