How do you access an application.properties value directly from within a class?

2003-07-15 Thread Mark Galbreath
When Struts load, it grabs application.properties and stores it's keys and values somewhere. From within an action class I need to access a value in application.properties. How could one do this? tia, mark - To unsubscribe,

RE: How do you access an application.properties value directly from within a class?

2003-07-15 Thread Jarnot Voytek Contr AU HQ/SC
getResources() -- Voytek Jarnot Quidquid latine dictum sit, altum viditur. -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2003 11:28 AM To: 'Struts Users Mailing List' Subject: How do you access an application.properties value directly

RE: How do you access an application.properties value directly from within a class?

2003-07-15 Thread Raible, Matt
an application.properties value directly from within a class? When Struts load, it grabs application.properties and stores it's keys and values somewhere. From within an action class I need to access a value in application.properties. How could one do this? tia, mark

Re: How do you access an application.properties value directly from within a class?

2003-07-15 Thread Mike Deegan
an application.properties value directly from within a class? When Struts load, it grabs application.properties and stores it's keys and values somewhere. From within an action class I need to access a value in application.properties. How could one do this? tia, mark

Re: How do you access an application.properties value directly from within a class?

2003-07-15 Thread Konstadinis Euaggelos
: Tuesday, July 15, 2003 7:53 PM Subject: Re: How do you access an application.properties value directly from within a class? Hey Matt / All, Do you have an elegant way - in scriptlet form - at the JSP level to grab an application.properties value to then use as a JSP expression

Re: How do you access an application.properties value directly from within a class?

2003-07-15 Thread James Mitchell
] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, July 15, 2003 1:53 PM Subject: Re: How do you access an application.properties value directly from within a class? Hey Matt / All, Do you have an elegant way - in scriptlet form - at the JSP level to grab an application.properties

Re: How do you access an application.properties value directly from within a class?

2003-07-15 Thread Mike Deegan
Subject: Re: How do you access an application.properties value directly from within a class? You can use this, bean:define id=keybean:message key='myKey'//bean:define You can use the key as a scriplet % =key% This solution works also in the following case , if you want to display a title

RE: How do you access an application.properties value directly from within a class?

2003-07-15 Thread Raible, Matt
-Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2003 12:04 PM To: Struts Users Mailing List Subject: Re: How do you access an application.properties value directly from within a class? You mean like this? bean:define id=someKey bean:message key=some.key