Take a look at
http://jakarta.apache.org/commons/resources/
There is a JDBCMessageResourceFactory to load values from the database, in your struts-config file
you can specify a different message resource factory class.
http://wiki.apache.org/jakarta-commons/ResourcesUserGuide
It works well for me!
Hope that helps,
Gareth
Danny Lee wrote:
The only easy solution I can think of is to write some application,
which is performing DB->File transformation before MessageResoursces
consumer-application starts.
But this is not a real solution, becouse you still can't change
properties dynamicaly. I'm not sure if Struts allows you to do it at
all... Maybe not (becouse otherway I suspect this feature would be
implemented so far...)
cheers,
Danny
Sony Thomas schrieb:
Hi all,
I want to read my application resources from a database rather than
using properties file. Do I need to extends MessageResoursces class in
order to do this ?? Is there any examples of this or is ther any links
which give some idea, how to do this??
thanks all
Sony
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Gareth Evans
MSoft eSolutions Limited
Technology Centre
Inward Way
Rossmore Business Park
Ellesmere Port
Cheshire
CH65 3EN
--
Tel: +44 (0)870 0100 704
Fax: +44 (0)870 9010 705
E-Mail: [EMAIL PROTECTED]
Web: www.msoft.co.uk
----------------------------------------------
Terms:
Please note that any prices quoted within this e-mail are subject to VAT.
All program details and code described in this e-mail are subject to
copyright © of MSoft eSolutions Limited and remain the intellectual
property of MSoft eSolutions Limited.
Any proposal or pricing information contained within this e-mail are
subject to MSoft eSolutions' Terms and Conditions
----------------------------------------------
Disclaimer:
This message is intended only for use of the addressee. If this message
was sent to you in error, please notify the sender and delete this
message. MSoft eSolutions Limited cannot accept responsibility for viruses,
so please scan attachments. Views expressed in this message do not
necessarily reflect those of MSoft eSolutions Limited who will not
necessarily be bound by its contents.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]