RE: Problem with HttpSessionListener

2006-10-13 Thread Caldarale, Charles R
> From: José Roberto Motta Garcia [mailto:[EMAIL PROTECTED] > Subject: Re: Problem with HttpSessionListener > > Do you mean a servlet? No, just Java classes. > Wouldn't every app instantiate its own > object if this class is a simple one? Only if they do a new; you ca

Re: Problem with HttpSessionListener

2006-10-13 Thread José Roberto Motta Garcia
Hi chuck, do u know how to do that? It's what I'm trying to >> do, to get a cross-app scope for customized management. >> > If all you need are objects common to all web apps, classes placed in > shared/lib will suffice. > Do you mean a servlet? Wouldn't every app instantiate its own objec

RE: Problem with HttpSessionListener

2006-10-13 Thread Caldarale, Charles R
> From: José Roberto Motta Garcia [mailto:[EMAIL PROTECTED] > Subject: Re: Problem with HttpSessionListener > > "No one was asking for cross-application scoping." > > Hi chuck, do u know how to do that? It's what I'm trying to > do, to get a cross-app

Re: Problem with HttpSessionListener

2006-10-13 Thread José Roberto Motta Garcia
"No one was asking for cross-application scoping." Hi chuck, do u know how to do that? It's what I'm trying to do, to get a cross-app scope for customized management. Tks Jose Roberto > >> the proper way to access your webapps info is >> getServletContext() to get the context first..once

RE: Problem with HttpSessionListener

2006-10-12 Thread Caldarale, Charles R
> From: Martin Gainty [mailto:[EMAIL PROTECTED] > Subject: Re: Problem with HttpSessionListener > > Session information is scoped only to the current web > application (ServletContext), so information stored in one > context will not be directly visible in another. No

Re: Problem with HttpSessionListener

2006-10-12 Thread Martin Gainty
11, 2006 10:00 AM Subject: Re: Problem with HttpSessionListener I'm going to try to explain it better, if my English allows me. I have this classe: ... public class HttpTestListener implements HttpSessionListener { public void sessionCreated(HttpSessionEv

Betr.: Re: Problem with HttpSessionListener

2006-10-11 Thread Roel De Nijs
Juan, what you also could do is, adjusting your code as follows: public void sessionCreated(HttpSessionEvent e){ System.out.println("sessionCreated - id = " + e.getSession().getId()); e.getSession().setAttribute("test", new String("testValue")); } add this line System.o

Re: Problem with HttpSessionListener

2006-10-11 Thread Christopher Schultz
Juan, > public class HttpTestListener implements HttpSessionListener { > >public void sessionCreated(HttpSessionEvent e){ >e.getSession().setAttribute("test", new String("testValue"); >} Okay. I assume that there's an extra ")" end the end, otherwise your code doesn't compile. I'

Re: Problem with HttpSessionListener

2006-10-11 Thread Juanjo Cuadrado
I'm going to try to explain it better, if my English allows me. I have this classe: ... public class HttpTestListener implements HttpSessionListener { public void sessionCreated(HttpSessionEvent e){ e.getSession().setAttribute("test", new String("testValue"); } ... In my web.xml I

Re: Problem with HttpSessionListener

2006-10-11 Thread Martin Gainty
message was cutoff which object are you attempting to recover? Servlet? SessionListener? Session? SessionAttribute? also you will not set any object in Session thru getAttribute as this is an accessor method and not a mutator Martin -- This e-mail communication and any attachments may contain