Hello Cedric,

Tuesday, February 05, 2002, 7:41:08 PM, you wrote:


CD>   Can't you use a generic way like in web.xml instead :

CD> <aTagName>
CD>     <init-param>
CD>       <param-name>debug</param-name>
CD>       <param-value>2</param-value>
CD>     </init-param>
CD>     ...
CD> </aTagName>

CD>   aTagName is replaced by the concerned configuration (requestProcessor, 
actionServlet, ...).
CD>   In this way, we can have a generic DTD that can fit any future extensions 
requesting
CD> configuration parameters.
CD>   I think of something like that for the Tiles initialization from struts-config 
files.

CD>   Use of new DTDs is more user friendly, but need to update extended DTDs when the 
struts one is
CD> modified.
CD>   Another approach that I haven't check yet is the use of namespaces in XML files. 
Can we have
CD> one DTD for each namespace in a single XML file ? If answer is yes and digester 
support it, this
CD> could solve the "extension" problem.

Struts always has such tags - with <set-property/> tags.

But DTD for namespase is a great idea - I try to play with it a week
ago and now I think that this is single way to make struts config
extendable.

-- 
Best regards,
 Oleg                            mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to