The init parameters of the servlet are automatically aggregated into the properties or the repository, and thus also those of the elements.

On 17-dec-05, at 20:28, F Baube wrote:

I need to be able to obtain the ServletContext from within my
Rep startup code, so that I can check values for init-params
and attributes.

i.e.
http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/ ServletContext.html#getAttribute(java.lang.String)
and
http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/ ServletContext.html#getInitParameter(java.lang.String)

But it appears that in Rife, the ServletContext is available
to subclasses of Element [ i.e.
http://rifers.org/docs/api/com/uwyn/rife/engine/ ElementSupport.html#getServletContext()
] but not to subclasses of (for example) BlockingParticipant.

Is there a workaround for this ?


thx

fred

--
F.Baube                *
Georgetown/MSFS/1988   *  Act locally.
email fbaube#welho.com *  Think pangalactically.
 gsm  +358 41 536 8192 *
 wmd   60°11'10.8"N 24°57'36.9"E
_______________________________________________
Rife-users mailing list
[email protected]
http://www.uwyn.com/mailman/listinfo/rife-users


--
Geert Bevin                       Uwyn bvba
"Use what you need"               Avenue de Scailmont 34
http://www.uwyn.com               7170 Manage, Belgium
gbevin[remove] at uwyn dot com    Tel +32 64 84 80 03

PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net


_______________________________________________
Rife-users mailing list
[email protected]
http://www.uwyn.com/mailman/listinfo/rife-users

Reply via email to