Re: T5: Getting Request Info

2008-04-29 Thread Kristian Marinkovic
yes you can... i have a Dispatcher that invalidates the httpsession if a user specific ASO returns true on isLogout(). g, kris Marcus <[EMAIL PROTECTED]> 28.04.2008 21:59 Bitte antworten an "Tapestry users" An "Tapestry users" Kopie Thema Re: T5: Getting Req

Re: T5: Getting Request Info

2008-04-28 Thread Marcus
Hi, Can I invalidate session using this code? ... import javax.servlet.http.HttpServletRequest; ... @Inject private HttpServletRequest _httpServletRequest; ... public String onActionFromLogout() { _visit = null; _httpServletRequest.getSession().invalidate(); re

Re: T5: Getting Request Info

2008-04-25 Thread Joshua Jackson
On 4/26/08, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > You can also just inject the HttpServletRequest. It is a "shadow" of > the request in the RequestGlobals object. Wow I didn't know that :) Great. Thanks Howard. -- Let's show the world what we've got. Blog: http://joshuajava.wordpress

Re: T5: Getting Request Info

2008-04-25 Thread Howard Lewis Ship
You can also just inject the HttpServletRequest. It is a "shadow" of the request in the RequestGlobals object. On Fri, Apr 25, 2008 at 8:10 PM, Joshua Jackson <[EMAIL PROTECTED]> wrote: > Never mind, > > I made a workaround as such: > > @Inject private RequestGlobals requestGlobals; > >

Re: T5: Getting Request Info

2008-04-25 Thread Joshua Jackson
Never mind, I made a workaround as such: @Inject private RequestGlobals requestGlobals; private HttpServletRequest request = requestGlobals.getHTTPServletRequest(); Cheers, On 4/26/08, Joshua Jackson <[EMAIL PROTECTED]> wrote: > Dear all, > > There is a generic Request component in T5,