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,
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
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
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
: 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
]
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
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
-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
8 matches
Mail list logo