Sorry, that should be the first time the resource is *accessed* :-)
-Original Message-
From: Holshausen, Ron [mailto:[EMAIL PROTECTED]
Sent: 21 September 2005 19:01
To: Struts Users Mailing List
Subject: RE: MessageResources
Hi David,
Message resources are typically loaded by the class
Hi David,
Message resources are typically loaded by the class loader's getResource
method. So this could change with different containers and JDK versions,
but in my experience it is either loaded at start-up or the first time
the resource is loaded.
-Original Message-
From: Harland, Davi
Thank you for your advices. Following them I decided to resign from changing
encoding. Instead I have found an Eclipse plugin (Properties Editor which can
be
downloaded at http://eclipse-plugins.info) which allows easy edition of
properties files. It works fine and solves my problem.
Best reg
Hi,
I had similar problems with Greek characters (ISO-8859-7). After loads of
research I found out that to work the property file needs to be Unicode encoded
(and in UTF8 preferably).
For example the String 'Φώτης' to appear in the web application has to be
encoded as \ux\ux and so on.
Hi Konrad,
It isn't even UTF, it's an older Java Properties file format:
http://java.sun.com/j2se/1.4.2/docs/api/java/util/Properties.html
You need to use native2ascii with something like
native2ascii -encoding ISO-8859-2 input.properties output.properties
it turns the non-ascii characters int
Niall Pemberton wrote:
I just committed a new feature (available now in the nightly build, coming
soon in 1.2.7 hopefully) where you can specify a message directly, so you
don't actually need message resources in the JSP. I don't know if that helps
you or not?
Yes; that's it exactly; a pint on m
I just committed a new feature (available now in the nightly build, coming
soon in 1.2.7 hopefully) where you can specify a message directly, so you
don't actually need message resources in the JSP. I don't know if that helps
you or not?
You simply construct an ActionMessage with the actual messag
Niall Pemberton wrote:
I believe you should be able to do this already, since you can define
different factories for different bundles. So you could have your regular
standard properties files, but then define a DB bundle with your own factory
as well.
Something like this in the struts-config.xml..
I believe you should be able to do this already, since you can define
different factories for different bundles. So you could have your regular
standard properties files, but then define a DB bundle with your own factory
as well.
Something like this in the struts-config.xml
Then you use th
Fogleson, Allen wrote:
I did a quick addition to the DB code to allow such things (but did not
check circularity.. the form where a child message includes a parent (or
itself).
Long story short is there any interest in this? I can have a quick patch
to the core source in bugzilla relatively quick
tch
combination.
-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 06, 2005 10:44 AM
To: Struts Users Mailing List
Subject: Re: MessageResources
Its not something I would want and it sounds like its over-complicating
the
situation.
You may want to see
Its not something I would want and it sounds like its over-complicating the
situation.
You may want to see if there is any interest from any of the other
committers before going to the trouble of coding something. It can be
frustrating to bother to submit patches and then have them ignored - eithe
> That said, I don't know how you differentiate between
> messages and errors if you do that...
This two links on the Wiki explain a lot about ActionErrors and
ActionMessages usage...
http://wiki.apache.org/struts/ActionErrorsAndActionMessages?highlight=%28actionerrors%29
http://wiki.apache.org/
rs if you do that...
> -Original Message-
> From: Scott Purcell [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 28, 2005 5:08 PM
> To: Struts Users Mailing List; Hubert Rabago
> Subject: RE: MessageResources in ActionForm
>
>
> A follow up to this thread.
>
&g
-Original Message-
From: Hubert Rabago [mailto:[EMAIL PROTECTED]
Sent: Monday, March 28, 2005 2:10 PM
To: Struts Users Mailing List
Subject: Re: MessageResources in ActionForm
The API change occurred with the 1.1 release. With that release,
Action.MESSAGES_KEY was deprecated, as well as
t: Monday, March 28, 2005 1:51 PM
> To: Struts Users Mailing List; Hubert Rabago
> Subject: RE: MessageResources in ActionForm
>
>
> Is this an api change from 1.1? Does anyone know?
>
>
>
> -Original Message-
> From: Hubert Rabago [mailto:[EMAIL PROTECTED]
Is this an api change from 1.1? Does anyone know?
-Original Message-
From: Hubert Rabago [mailto:[EMAIL PROTECTED]
Sent: Monday, March 28, 2005 1:45 PM
To: Struts Users Mailing List
Subject: Re: MessageResources in ActionForm
Use Globals.MESSAGES_KEY .
On Mon, 28 Mar 2005 13:39:17
Use Globals.MESSAGES_KEY .
On Mon, 28 Mar 2005 13:39:17 -0600, Scott Purcell
<[EMAIL PROTECTED]> wrote:
> Hello,
> I am trying to obtain a MessageResources object in a ActionForm and I cannot
> figure out how.
>
> Prior to the new 1.2.4 struts I used this:
>
> MessageResources resources =
>
It's easy to confuse them, and I check their javadocs each time I use them.
Globals.MESSAGES_KEY gives you access to MessageResources specific to a module.
Globals.MESSAGE_KEY contains the ActionMessages for that request.
Globals.ERROR_KEY contains the ActionErrors for that request.
Hubert
On Mo
You might want to check Globals.MESSAGES_KEY
although this isn't how I understood the MessageResources to
work, I thought the ActionMessages was stored in the request
under the Global.MESSAGES_KEY and not the MessageResources...
anybody else?
> -Original Message-
> From: Scott Purcell [
Struts uses java.util.ResourceBundle instances inside it's
MessageResources implementation. In particular, the most common
mechanism is to implicitly use PropertyResourceBundle instances that
take a properties file and turn it into a ResourceBundle. Therefore,
you must follow all the rules descri
Look into using the fmt:setBundle tag.
Eric Chow wrote:
Hello,
In struts-conf.xml, we can define more than one Message Resources:
In JSTL, I have to add a for use
in
How can I defein JSTL to use Struts' message resources setting without
setting the context-param in web.xml ???
Eric
Yeah - I've reviewed that package but it doesn't appear to solve the real issue. The
getMessage() call in the OJBMessageResources class clears the cache of the
MessageResources class. That's fine, but as soon as you return the value back up to
MessageResources, it's going to put it on the cach
http://sourceforge.net/project/showfiles.php?group_id=49385&package_id=76369
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi Ken:
A JDBCMessageResources class already exists. I believe that James
Mitchell wrote it. After a quick search, I couldn't find any additional
links to it, however.
Ken Pullin wrote:
I've been looking into extending the MessageResources class and providing my own
MessageResourcesFactory.
Am Dienstag, 1. Juni 2004 15:15 schrieb None None:
> I use the following code:
>
> myActionForm.setMessage(getResources(request).getMessage(getLocale(request)
>, "messages.deleteFailed"));
Great! This works fine! The only thing that I missed was to get the locale
from the request.
Thanks,
Ralf.
I use the following code:
myActionForm.setMessage(getResources(request).getMessage(getLocale(request),
"messages.deleteFailed"));
I have two property files, ofmResources_en.properties and
ofmResources_de.properties. The above code fetches the
messages.deleteFailed message from the appropriate
27 matches
Mail list logo