an application.properties value directly
fr om within a class?
If you're just looking for the values, grab it as a resource bundle. Here's
how I grab it in a Business Delegate:
// Get the application's messages resources
ResourceBundle resources =
ResourceBundle.getBundle(ApplicationResources
Nice, clean, elegant solution - thanks a lot, Matt!
-Original Message-
From: Raible, Matt [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 15, 2003 12:54 PM
To: 'Struts Users Mailing List'
Subject: RE: How do you access an application.properties value directly fr
om within a class?
I
PROTECTED]
Sent: Tuesday, July 15, 2003 2:53 PM
To: 'Struts Users Mailing List'
Subject: RE: How do you access an application.properties value directly
fr om within a class?
Or how about an ugly way? ;-)
%@ page import=org.apache.struts.util.MessageResources
3 matches
Mail list logo