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