No, that's deprecated in T4. I was just thinking of overriding BaseEngine with my own implementation and do what I have to do from the overridden "service" method, but I only get access to a WebRequest and a WebResponse object (instead of HttpServletRequest and HttpServletResponse), which don't allow me to deal with the cookies.
-----Original Message----- From: Patrick Casey [mailto:[EMAIL PROTECTED] Sent: segunda-feira, 3 de outubro de 2005 16:11 To: 'Tapestry users' Subject: RE: Persistent cookies in T4 I don't suppose the old faithful: RequestContext cx = cycle.getRequestContext(); Cookie c; c = cx.getCookie(LOGIN_COOKIE); if (c != null) fUserName = c.getValue(); Still works? --- Pat > -----Original Message----- > From: Denis Souza [mailto:[EMAIL PROTECTED] > Sent: Monday, October 03, 2005 11:46 AM > To: 'Tapestry users' > Subject: Persistent cookies in T4 > > Hi, > > > > I'm trying to create a persistent cookie to be placed in the user's > browser > but I just can't figure out how to do it in Tapestry 4. I've looked around > in the list archives and in the docs but I couldn't find anything that > would > help me (except for the CookieSource class which didn't seem very helpful > in > my case). Anyone know how this can be done? > > > > Another thing is that for every request I must read this cookie and update > my database with some info (regardless of which page the user is > accessing) > and on every response I might have to change the cookie's contents. How > would I go about having a class/method that is called on every > request/response so that I can read/update this information? I'm thinking > it's some hivemind thing but I guess I'm just not fluent enough with it > yet. > Can somebody help me? > > > > Thanks, > > Denis Souza > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]