R: Automatically detecting struts-config changes and reload app.

2004-03-25 Thread Leonardo Francalanci
I wrote the following on 01/23/2004 on the mailing list, but nobody cared... I wrote a servlet to trigger off a reload of the struts-config.xml. The servlet is: protected void doGet(..) { ActionServlet as =

Re: R: Automatically detecting struts-config changes and reload app.

2004-03-25 Thread Joe Germuska
If I don't remove the attribute following requests will not work (because of the code in ActionServlet.getRequestProcessor) Is this a bug? That sounds like a bug to me. I'm thinking that destroy methods should remove from the application context anything the instance put into the context

R: Automatically detecting struts-config changes and reload app.

2004-03-25 Thread Leonardo Francalanci
I used your code ( Thanks ) and I finally got it to work with a Filter. We have a login filter in our app. So I added a method which runs only in development mode. just one thing: I'm not sure, but it seems that sometimes Tomcat does not re-read the file. It's like it keeps it cached