Re: Context.xml: how to reference parameters inside the same file

2011-01-13 Thread Konstantin Kolinko
> On 1/13/2011 7:27 AM, durbans wrote: >> awarnier wrote: >>> >>> Since this is XML, could you not also reference "entities" defined in a >>> separate file ? +1. >> >> How ? > > http://lmgtfy.com/?q=creating+xml+entities > A Tomcat-related example exists here: http://wiki.apache.org/tomcat/FAQ/P

Re: Context.xml: how to reference parameters inside the same file

2011-01-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Durbans, On 1/13/2011 7:27 AM, durbans wrote: > awarnier wrote: >> >> Since this is XML, could you not also reference "entities" defined in a >> separate file ? > > How ? http://lmgtfy.com/?q=creating+xml+entities - -chris -BEGIN PGP SIGNATURE-

Re: Context.xml: how to reference parameters inside the same file

2011-01-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 1/13/2011 6:47 AM, André Warnier wrote: > Konstantin Kolinko wrote: >> 2011/1/13 durbans : >>> Is it possible ? >>> >> >> No, not possible. >> >> You can reference any system properties, though (as mentioned in [1]). >> E.g. ${catalina.base}

Re: Context.xml: how to reference parameters inside the same file

2011-01-13 Thread durbans
awarnier wrote: > > Since this is XML, could you not also reference "entities" defined in a > separate file ? > How ? My problem is that i have a resource: and I need to get the attributes value in Java code. I am able to get the values (context.getInitParameters()) but not the values.

Re: Context.xml: how to reference parameters inside the same file

2011-01-13 Thread André Warnier
Konstantin Kolinko wrote: 2011/1/13 durbans : Is it possible ? No, not possible. You can reference any system properties, though (as mentioned in [1]). E.g. ${catalina.base} or ${java.io.tmpdir} [1] http://tomcat.apache.org/tomcat-6.0-doc/config/index.html Since this is XML, could you no

Re: Context.xml: how to reference parameters inside the same file

2011-01-13 Thread Konstantin Kolinko
2011/1/13 durbans : > Is it possible ? > No, not possible. You can reference any system properties, though (as mentioned in [1]). E.g. ${catalina.base} or ${java.io.tmpdir} [1] http://tomcat.apache.org/tomcat-6.0-doc/config/index.html Best regards, Konstantin Kolinko -

Context.xml: how to reference parameters inside the same file

2011-01-13 Thread durbans
I'd like to create a context.xml where I have: [...] [...] where parameter1, parameter2 and parameter3 use the values of the parameters tag defined previously. Is it possible ? I didn't find any way or syntax to set name1, name2 and name3 as reference . It seems that it accepts only stri