Perfect! What you did in JSF is exatcly what we need: "the controller servlet automatically recognize 'META-INF/struts-config.xml' resources in any JAR files that were included in the application."
When in struts? Can I help? Filippo Munafò -----Original Message----- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 20, 2004 18:33 To: 'Struts Dev Mailing List' Subject: Re: Splitting struts-config into multiple jar and read them as resource stream Quoting Joe Germuska <[EMAIL PROTECTED]>: > >We'd like not to subclass ActionServlet, but is really difficult to > >do something like this outside the ActionServlet hierarchy mainly > >'cause of the call to "initConfigDigester()", that's obviously > >protected. > > > >The questions are: > > > >- is there a way to do the same without subclassing ActionServlet? > >- do you think is it reasonable to include a similar feature in the > >main source tree on CVS (dynamic read pieces of struts-config from > >jar files)? > > It seems plausible that a factory class could be factored out of the > ActionServlet. I'd think you could do this in Struts 1 in a backwards > compatible fashion. I think people would like to be able to > configure struts from a variety of sources; another popular request > is for dynamic reconfiguration -- without a redeploy -- but that's a > different and more complicated question. > Along the same lines, one of the things we did in JavaServer Faces (with regards to configuration) is to have the controller servlet automatically recognize "META-INF/faces-config.xml" resources in any JAR files that were included in the application. This makes it very easy to package a module, or some other sub-unit of an overall webapp, as a single JAR file that self-configures. > Joe Craig --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]