my dog learned polymorphism
The moose likes Struts and the fly likes Message Resource Bundle Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply 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
Saloon Keeper

Joined: Aug 03, 2008
Posts: 9189
    
    2

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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Message Resource Bundle
 
Similar Threads
Problems while Loading Applet...
Cannot create InputStream from Properties file
displaying french characters
Getting problem in struts
Internationalization, J2EE web applications