cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bart Molenkamp" <b.molenk...@bizzdesign.nl>
Subject RE: Acessing request within a avalon component?
Date Wed, 13 Oct 2004 15:10:40 GMT
Yes:

You'll have to implement
org.apache.avalon.framework.context.Contextualizable.

Then implement the contextualize() method:

/* (non-Javadoc)
 * @see ...
 */
public void contextualize(Context context) throws ContextException {
	this.context = context;
}

Then you can do:
Request request = ContextHelper.getRequest(context);

HTH,
Bart.
> -----Original Message-----
> From: Stephan Coboos [mailto:cromosom@gmx.net]
> Sent: Wednesday, October 13, 2004 3:28 PM
> To: dev@cocoon.apache.org
> Subject: Acessing request within a avalon component?
> 
> Hello,
> 
> is it possible to access the current request within a avalon component
> without passing it as parameter?
> 
> Thank you!
> 
> Regards
> Stephan


Mime
View raw message