tags:

views:

32

answers:

1

I'm using eclipse(galileo) and struts2 framework and tiles.

It seems that modifying xml files(struts.xml, tiles-config.xml, etc) is not affected until I restart the server.

It is very annoying and it takes more time. Is there any way not to restart?

A: 

Strictly, you don't have to restart the entire server, just the application itself. But to answer your question more directly, the configuration files (by default at any rate) are just read on startup and the values are held for the life of the application.

For Tiles you might try this init parameter, but I've not tried it personally, so I can't vouch for it.

For Struts, try setting devMode (Link) to true.

<constant name="struts.devMode" value="true" />

For changes to web.xml, and others, I think there's a setting at the application server level to control that, but I doubt that it's standard across all application servers.

Ian McLaird
Thank you. I changed devMode true. But for the tiles, I don't know where to change that init param.
Deckard
From the documentation, you set it as a context param in the web.xml file.
Ian McLaird
I got it. Thank you!
Deckard
Deckard - did you get this to work with Tiles? auto-reload tiles definitions when the xml file changes? If so, would you be willing to share details on how you did it?
Kevin Day