Besides the fact that MessageResources was never intended to be changed at
runtime, what will you do if you deploy on a server that throws away
previous exploded WARs like JBoss? On restart, you just lost those changes.
If you need a dynamic bundle, consider using a database-backed
MessageResources implementation. While still somewhat of a hack, at least
your changes can be persisted in a consistent and safe manner.
--
James Mitchell
Software Engineer / Open Source Evangelist
Consulting / Mentoring / Freelance
EdgeTech, Inc.
http://www.edgetechservices.net/
678.910.8017
AIM: jmitchtx
MSN: [EMAIL PROTECTED]
Skype: jmitchtx
----- Original Message -----
From: "Shailesh Barde" <[EMAIL PROTECTED]>
To: <user@struts.apache.org>
Sent: Wednesday, November 23, 2005 2:26 AM
Subject: Interesting!
Hello Friends,
I have developed a module in my Project to Make changes in the resource
Bundle (.properties) file at RunTime by Using java.io.After Writing on a
File(Through Action Action Class) the web Server gets Restarted & the
updated Resource Bundle is Displayed on a JSP.(after Refreshing that Page)
As the Web Server gets started for Every change I have made,i have stored
the entire changes in a Temporary File (which is different from my current
Resource Bundle properties).
My Intention is to load that file(temporary file) Through Action
Servlet(we are having extended Action Servlet of ours in Application).How
can i do this?
Please Guide!
Regards,
Shailesh Barde
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]