You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Oleg V Alexeev <oa...@apache.org> on 2002/02/06 18:58:35 UTC
Re[2]: [PROPOSAL] Extensible set of resource registrations.
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:oalexeev@apache.org
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>