velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geir Magnusson Jr." <>
Subject Re: feature suggestion
Date Tue, 06 Mar 2001 18:26:41 GMT
David Esposito wrote:
> Can you have the init() method default to a "properties" init param in the
> context if one is not defined in the servlet tag? That is, what I've done
> for most of my application is put all of my parameters in the context ...


I am probably not answering your question, but I think I know what you
want, and there is a conventional way to do it that doesn't require any
code change.

You don't need it in every servlet in the descriptor. Just do it in one,
and put in 


and the that servlet will be instantiated and have it's init(
ServletConfig ) method called. Since you only need one call to
Runtime.init() to configure Vel, this works just fine.

I use this myself in production, cuz the whole <param> thing got boring

ex :

Does that solve it?


Geir Magnusson Jr.                     
Developing for the web?  See

View raw message