True, but in this case, there hasn't yet been a Request to extract the
contextPath from; so short of hard-wiriting the value (i.e.,
duplicating in Tapestry configuration something that is also in
servlet container configuration) that would not help here.

On Mon, Aug 9, 2010 at 2:15 PM, Andreas Andreou <[email protected]> wrote:
> in some 4.1 project, i had introduced the concept of UrlManager - it
> would get you
> urls or paths in the absense of Request but they had to be user
> configured (unless
> an active request was found)
>
> It solved similar problems (i.e. rendering a tapestry page offline, not 
> "using"
> that data in the Request when creating urls [helps when under proxy] )
>
>
> On Mon, Aug 9, 2010 at 23:33, Howard Lewis Ship <[email protected]> wrote:
>> I was just experimenting with pre-loading Tapestry pages.  It doesn't
>> work, because if you inject an Asset, it looks for the
>> Request.getContextPath() and hits a null (no Request object during
>> startup).
>>
>> In Servlet 2.5 we could use the ServletContext.getContextPath()
>> instead, which makes a lot more sense.
>>
>> At some point, we should require that 2.5 be the minimum.  That's
>> Tomcat 6 and up, and Jetty 7 and up and I think current versions of
>> Geronimo.  I wonder what app servers would be ruled out if we required
>> 2.5?
>>
>> --
>> Howard M. Lewis Ship
>>
>> Creator of Apache Tapestry
>>
>> The source for Tapestry training, mentoring and support. Contact me to
>> learn how I can get you up and productive in Tapestry fast!
>>
>> (971) 678-5210
>> http://howardlewisship.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>
>
>
> --
> Andreas Andreou - [email protected] - http://blog.andyhot.gr
> Tapestry PMC / Tacos developer
> Open Source / JEE Consulting
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>



-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to