cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carsten Ziegeler <cziege...@apache.org>
Subject Re: Reverting the property search order in CoreUtils
Date Wed, 26 Oct 2005 17:26:03 GMT
Sylvain Wallez wrote:
> Oh yes, sure!
> 
> Something I'm worried a bit about though, is the naming of these 
> parameters in web.xml if we want to keep compatibility with the existing 
> parameter names. The new property stuff uses fully-qualified names, 
> which is very good, whereas the servlet parameters have no prefix.
> 
> Or maybe when we search for a given property, we should have a 
> double-lookup in web.xml:
> - lookup the property as is (allows for fully qualified names in web.xml)
> - if the property name starts with "org.apache.cocoon", lookup the 
> property with this prefix stripped.
> 
Or we could add a parameter from web.xml twice: once as is and if the
prefix is missing, we add the fully qualified property as well. So we
have a single lookup.

> That way, we use fully qualified names everywhere in the code, and 
> property files, but still ensure backwards compatibility with the 
> current web.xml.
> 
Yeap, good idea.

Carsten
--
Carsten Ziegeler - Open Source Group, S&N AG
http://www.s-und-n.de
http://www.osoco.org/weblogs/rael/

Mime
View raw message