[OT] Re: How do I access Message Resources in an Action?

2004-03-02 Thread Kris Schneider
If you want, post the JSTL question here (OT) or on taglibs-user... Quoting [EMAIL PROTECTED]: > J2SE 1.5 preview beta was released, and the site is getting hammered. Which > stinks because I need to see some APIs for a part of JSTL I'm not familiar > with :-( > > Rick DeBay > > >- Origina

Re: How do I access Message Resources in an Action?

2004-03-02 Thread rick
J2SE 1.5 preview beta was released, and the site is getting hammered. Which stinks because I need to see some APIs for a part of JSTL I'm not familiar with :-( Rick DeBay >- Original Message - >From: [EMAIL PROTECTED]> >To: [EMAIL PROTECTED]> >Sent: Tuesday, March 02, 2004 7:37 AM >Subje

Re: How do I access Message Resources in an Action?

2004-03-02 Thread Adam Hardy
I could send you off to look at the Javadoc, but sometimes working stuff out painstaking. Here's what I do: MessageResources resources = (MessageResources) context.getAttribute(Globals.MESSAGES_KEY); String msg = resources.getMessage("my.key"); Globals.MESSAGES_KEY is the default. If you

RE: How do I access Message Resources in an Action?

2004-03-02 Thread Kommineni, Sateesh \(GE Consumer & Industrial\)
Hi, User PropertyResourceBundle .. PropertyResourceBundle propBundle = null; try{ propBundle = (PropertyResourceBundle)PropertyResourceBundle.getBundle(resFileName); } -Sateesh -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 02, 2004

Re: How do I access Message Resources in an Action?

2004-03-02 Thread James Mitchell
The same way it is done in the struts-example. Did you run that yet? -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx MSN: [EMAIL PROTECTED] - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, Marc