On Tue, 23 Jul 2002, Martin Cooper wrote: > Date: Tue, 23 Jul 2002 22:14:06 -0700 > From: Martin Cooper <[EMAIL PROTECTED]> > Reply-To: Struts Developers List <[EMAIL PROTECTED]> > To: 'Struts Developers List ' <[EMAIL PROTECTED]> > Subject: RE: cvs commit: > jakarta-struts/src/share/org/apache/struts/action ActionServlet.java > > Well, I do have one idea, off the top of my head. It's a bit whacky, but in > a perverse kind of way, it fits with what Stxx is all about. I'm not > entirely sure it meets the Stxx folks' goals, though. > > The idea is to allow for Struts to apply a transform to the config file > before passing it to the Digester. In this particular case, a Stxx config > file would be transformed by a Stxx-to-Struts XSL stylesheet, the result of > which would be passed to the Digester as a regular struts-config.xml input > stream. A separate Stxx Struts Plugin could then apply a different transform > on the same Stxx config file, and perform the remaining Stxx-specific > configuration for the web app. > > While this would mean maintaining a separate DTD for Stxx (assuming they > want a validating parse), it does provide a great deal of flexibility in > configuring Struts and extending it from a single config file. >
That is a pretty creative idea, and sort of mirrors what we do to create both TLDs and documentation files from the same sources. The biggest potential drawback is the extra startup time that this implies. In the mean time, I did a little bit of refactoring (moving the manifest constants from o.a.s.a.Action to o.a.s.Globals, and pointing the old ones to the new ones) that let us avoid the need to require validation. Along the way, I restored the functionality of the "validating" init parameter to the controller servlet. Coupled with the previous change allowing registration of new rulesets, Stxx ought to be good to go with tonight's nightly build (20020724). > -- > Martin Cooper > Craig -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>