File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

changing the Application properties dynamically

gim priy

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

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

this is a part of my jsp

<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">


smlogin.username=User name:


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

Joined: Jan 19, 2001
Posts: 4012
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.

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.

Consultant, Sima Solutions
I agree. Here's the link:
subject: changing the Application properties dynamically
It's not a secret anymore!