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
e received this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its contents - Original Message - From: "Juanjo Cuadrado" <[EMAIL PROTECTED]> To: Sent: Wednesday, October 11, 2006 8:09 AM Subject: Problem with HttpS

Re: Problem with HttpSessionListener

2006-10-11 Thread Martin Gainty
contents - Original Message - From: "Juanjo Cuadrado" <[EMAIL PROTECTED]> To: Sent: Wednesday, October 11, 2006 8:09 AM Subject: Problem with HttpSessionListener > Hi, > >I'm trying to create a listener in my application. I have created a &g

Problem with HttpSessionListener

2006-10-11 Thread Juanjo Cuadrado
Hi, I'm trying to create a listener in my application. I have created a listener class that implements HttpSessionLister and I have put the element in my web.xml. My listener class only sets a object in the session (getSession().getAttribute("k", "kk")), but when I try to recover this