This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Struts and the fly likes Message Resource Bundle Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Message Resource Bundle" Watch "Message Resource Bundle" New topic
Author

Message Resource Bundle

Arpit Gadle
Ranch Hand

Joined: Dec 16, 2008
Posts: 69

Dear All,
Changing value in the resource bundle(Struts2) requires server restart?

Thanks
Eduardo Yañez Parareda
Ranch Hand

Joined: Oct 09, 2008
Posts: 92

Yes


http://serfj.sourceforge.net - Simplest Ever REST Framework for Java
Arpit Gadle
Ranch Hand

Joined: Dec 16, 2008
Posts: 69


Changing value in the resource bundle(Struts2) requires server restart?


Thanks for your reply...
What is the reason for restarting server?
Eduardo Yañez Parareda
Ranch Hand

Joined: Oct 09, 2008
Posts: 92

Well, indeed you don't need to restart the server, but redeploy the webapp. In case you're application have read the properties bundle, you'll need to do it, in case it haven't read the bundle, I think it isn't necessary. But where do you have the bundle?, it isn't within a WAR file? if it is in the WAR, you'll always need to redeploy the webapp.
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9293
    
  17

If you are just doing development/testing, then you can enable struts dev mode. That way Struts 2 will automatically reload your resource bundle files...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Message Resource Bundle