RE: MessageResources

2005-09-21 Thread Holshausen, Ron
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

RE: MessageResources

2005-09-21 Thread Holshausen, Ron
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

Re: MessageResources file encoding

2005-08-03 Thread Konrad Billewicz
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

RE: MessageResources file encoding

2005-08-03 Thread Chatzinikos, Fotis, VF-GR Consultant
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.

Re: MessageResources file encoding

2005-08-03 Thread Jason Lea
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

Re: MessageResources

2005-04-06 Thread Dave Newton
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

Re: MessageResources

2005-04-06 Thread Niall Pemberton
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

Re: MessageResources

2005-04-06 Thread Dave Newton
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..

Re: MessageResources

2005-04-06 Thread Niall Pemberton
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

Re: MessageResources

2005-04-06 Thread Dave Newton
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

RE: MessageResources

2005-04-06 Thread Fogleson, Allen
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

Re: MessageResources

2005-04-06 Thread Niall Pemberton
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

Re: MessageResources in ActionForm

2005-03-28 Thread Corey Probst
> 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/

RE: MessageResources in ActionForm

2005-03-28 Thread Nidel, Mike
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

RE: MessageResources in ActionForm

2005-03-28 Thread Scott Purcell
-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

Re: MessageResources in ActionForm

2005-03-28 Thread Hubert Rabago
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]

RE: MessageResources in ActionForm

2005-03-28 Thread Scott Purcell
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

Re: MessageResources in ActionForm

2005-03-28 Thread Hubert Rabago
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 = >

Re: MessageResources in ActionForm

2005-03-28 Thread Hubert Rabago
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

RE: MessageResources in ActionForm

2005-03-28 Thread Nidel, Mike
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 [

Re: MessageResources native to ascii conversion

2004-10-22 Thread Craig McClanahan
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

Re: MessageResources and JSTL ???

2004-09-07 Thread Bill Siggelkow
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

Re: MessageResources Question

2004-07-14 Thread Ken Pullin
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

Re: MessageResources Question

2004-07-14 Thread Bill Siggelkow
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]

Re: MessageResources Question

2004-07-14 Thread Nick Heudecker
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.

Re: MessageResources Problem in Action

2004-06-01 Thread Ralf Schneider
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.

RE: MessageResources Problem in Action

2004-06-01 Thread None None
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