I need to accede to the HttpSession once I do submit . The only object that I have available is IRequestCycle cycle. That I can do?
2007/3/9, Miguel Angel Hernández <[EMAIL PROTECTED]>:
Hi, Petter: Seems I've mistaken the version number is 4.0.2, sorry for that! :P Renat, It seems to be that it was a problem of our app-server (Geronimo 1.1.1) after all. We were using the default authentication method, but when we switched to a custom login page using j_security_check servlet to login we could logout by restarting the session with no problem. Thanks a lot for your answers thought. cheers, Miguel On 3/9/07, Renat Zubairov <[EMAIL PROTECTED]> wrote: > > Hi Miguel, > > It's rather strange, what do you mean by "not working"? Aren't they > injected? They are empty? What about restart service? > You can try to post your hivemodule.xml part where you inject > Session/Response services into your pages/services. > > Renat > > On 07/03/07, Miguel Angel Hernández <[EMAIL PROTECTED]> wrote: > > Renat Thanks a lot, > > > > Unfortunately I've already tried those... but it's not working. I'm > using > > Geronimo as AppServer... maybe it's the configuration of my realm or > > something... > > > > I'll make you know if I find out what is it. > > > > regards, > > > > migs > > > > On 3/6/07, Renat Zubairov <[EMAIL PROTECTED]> wrote: > > > > > > You can try to use Restart service. It should be pretty simple to call > > > a restart service via service link. > > > Otherwise you can have a look to the > > > > > > > > > > http://tapestry.apache.org/tapestry4/tapestry/hivedocs/module/tapestry.globals.html > > > > > > For example you can get a request injected to your Hivemind services. > > > Or via WebRequest you will get a WebSession > > > > > > > > > > http://tapestry.apache.org/tapestry4/tapestry/apidocs/org/apache/tapestry/web/WebRequest.html#getSession(boolean) > > > > > > There you will find exactly what you are looking for :) > > > > > > > > > > http://tapestry.apache.org/tapestry4/tapestry/apidocs/org/apache/tapestry/web/WebSession.html#invalidate() > > > > > > > > > > > > On 06/03/07, Miguel Angel Hernández <[EMAIL PROTECTED]> wrote: > > > > Hi all, > > > > > > > > Anybody knows how I can access the HttpSession from tapestry... I > found > > > > RequestCycle: getRequestContext():getSession()... but its > > > > deprecated. > > > > > > > > I need to invalidate the session in order to logout from JAAS realm, > > > I've > > > > tried WebSession():invalidate() but it doesn't work :( > > > > > > > > > > > > > -- > > > Best regards, > > > Renat Zubairov > > > > > > > > -- > Best regards, > Renat Zubairov >
-- PEDRO MARIA BUITRAGO MANTILLA EDESA S.A. Carrera 13A 89-53 Oficina 402 Bogotá, Colombia Teléfono (+571) 618-5553 Móvil (+573) 310-320-9898