> 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
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
> 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
"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
> 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
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
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
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'
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
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
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
11 matches
Mail list logo