You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Christopher Corde <cc...@yahoo.com> on 2004/04/06 22:38:30 UTC
Accessing the ServletContext
Does anyone know the best way to access the
ServletContext from within Tapestry objects?
Thanks,
Chris
__________________________________
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway
http://promotions.yahoo.com/design_giveaway/
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Accessing the ServletContext
Posted by Erik Hatcher <er...@ehatchersolutions.com>.
Also note that context parameters (among other sources) are fed
directly into Tapestry's property handling mechanism.
getEngine().getPropertySource().getPropertyValue(name)
The property source facility is quite nice. I'm leveraging it for
several customizations. I just don't like the default (inverted IMO)
order of sources.
Erik
On Apr 6, 2004, at 4:50 PM, Paul Ferraro wrote:
> Or, better yet, use the Global object facility:
> http://jakarta.apache.org/tapestry/doc/TapestryUsersGuide/
> state.global.html
>
> Philippe Paravicini wrote:
>
>> From a BasePage (or IPage) object:
>>
>> context =
>> this.getRequestCycle().getRequestContext().getSession().getServletCont
>> ex t();
>>
>> You can get to the page from any component.
>>
>> pp
>>
>> On Apr 6, 2004, at 1:38 PM, Christopher Corde wrote:
>>
>>>
>>> Does anyone know the best way to access the
>>> ServletContext from within Tapestry objects?
>>>
>>> Thanks,
>>> Chris
>>>
>>> __________________________________
>>> Do you Yahoo!?
>>> Yahoo! Small Business $15K Web Design Giveaway
>>> http://promotions.yahoo.com/design_giveaway/
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail:
>>> tapestry-user-help@jakarta.apache.org
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Accessing the ServletContext
Posted by Paul Ferraro <pm...@columbia.edu>.
Or, better yet, use the Global object facility:
http://jakarta.apache.org/tapestry/doc/TapestryUsersGuide/state.global.html
Philippe Paravicini wrote:
> From a BasePage (or IPage) object:
>
> context =
> this.getRequestCycle().getRequestContext().getSession().getServletContex
> t();
>
> You can get to the page from any component.
>
> pp
>
> On Apr 6, 2004, at 1:38 PM, Christopher Corde wrote:
>
>>
>> Does anyone know the best way to access the
>> ServletContext from within Tapestry objects?
>>
>> Thanks,
>> Chris
>>
>> __________________________________
>> Do you Yahoo!?
>> Yahoo! Small Business $15K Web Design Giveaway
>> http://promotions.yahoo.com/design_giveaway/
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Accessing the ServletContext
Posted by Philippe Paravicini <pp...@intersight.com>.
From a BasePage (or IPage) object:
context =
this.getRequestCycle().getRequestContext().getSession().getServletContex
t();
You can get to the page from any component.
pp
On Apr 6, 2004, at 1:38 PM, Christopher Corde wrote:
>
> Does anyone know the best way to access the
> ServletContext from within Tapestry objects?
>
> Thanks,
> Chris
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Small Business $15K Web Design Giveaway
> http://promotions.yahoo.com/design_giveaway/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org