• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

changing the Application properties dynamically

 
gim priy
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4012
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic