wood burning stoves 2.0*
The moose likes Struts and the fly likes changing the Application properties dynamically Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "changing the Application properties dynamically " Watch "changing the Application properties dynamically " New topic
Author

changing the Application properties dynamically

gim priy
Greenhorn

Joined: Oct 13, 2005
Posts: 5
Hi team,

I want to load the values of the Struts "ApplicationResources.properties" dynamically(with out restartting the server).Is there any way to do that ?

this is a part of my jsp


<tr>
<td class="textdefault tdwidth6 textnowrap"><label for="username"><bean:message key="smlogin.username"/></label></td>
<td colspan="2">

<input type="text" name="USER" size="32" maxlength="255" style="margin-left: 1px">
</td>
</tr>

In ApplicationResources.properties

smlogin.username=User name:


Thx
gimhan

[ EFH: Added HTML escapes ]
[ June 07, 2006: Message edited by: Ernest Friedman-Hill ]
Pauline McNamara
Sheriff

Joined: Jan 19, 2001
Posts: 4012
    
    6
Hi gimhan, welcome to Javaranch!

Your question would be better placed in a different forum (this one is for questions about javaranch, not about java). Hang on while we move your post to a forum where you're more likely to get the help you're looking for.

A tip for the future: you might want to use the special "code" tags around your code so that we can see the code itself instead of seeing how it is rendered.

Cheers,
Pauline
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
The only way to do this would be to write your own classes to extend Struts. The "out of the box" installation reads the resource properties files once at startup time and does not refresh them until the application is restarted. Note that it is not necessary to restart the server. It is necessary to restart the web application.


Merrill
Consultant, Sima Solutions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: changing the Application properties dynamically