It's not a secret anymore!*
The moose likes JSP and the fly likes Httpsesion Listener is not working properly? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Httpsesion Listener is not working properly?" Watch "Httpsesion Listener is not working properly?" New topic
Author

Httpsesion Listener is not working properly?

Samanthi perera
Ranch Hand

Joined: Jan 08, 2010
Posts: 510
this is my loging.jsp


this is my listener class


when a user loging it doesn't access the listener class?
where is the problem?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61095
    
  66

What makes you think that anything you do during the login processing (the part that you didn't deem suitable to show us) will trigger the listener?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Samanthi perera
Ranch Hand

Joined: Jan 08, 2010
Posts: 510
this is Adminprocessor.java servlet


this is loging.java

Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61095
    
  66

But you didn't answer my question.
Samanthi perera
Ranch Hand

Joined: Jan 08, 2010
Posts: 510
creating a new session.
Samanthi perera
Ranch Hand

Joined: Jan 08, 2010
Posts: 510
anyway is my answer is correct or not?
can anyone help me how to create session with trigger each and everytime?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61095
    
  66

Samanthi perera wrote:creating a new session.

Please try using complete sentences when posting. What makes you think that a new session is being created?

Samanthi perera wrote:anyway is my answer is correct or not?
can anyone help me how to create session with trigger each and everytime?

Getting snippy will not help you get better or faster answers.

You need to think about the assumptions that you are making. Are they really true?
Samanthi perera
Ranch Hand

Joined: Jan 08, 2010
Posts: 510
i am still have that problem?
please help me.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61095
    
  66

You aren't putting in any effort yourself.

Please answer my questions: What makes you think that the listener is not working? What assumptions are you making to support that claim?

Please use complete sentences. Please think about the problem rather than just expecting someone else to do it for you.
Samanthi perera
Ranch Hand

Joined: Jan 08, 2010
Posts: 510
HttpSessionListener active when their is a change is session.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61095
    
  66

That is not correct. The name of the class in your post is a link to the javadoc which spells out when the listener methods are activated.
Samanthi perera
Ranch Hand

Joined: Jan 08, 2010
Posts: 510
can you please give me an example?
Thomas Kennedy
Ranch Hand

Joined: Jan 20, 2008
Posts: 137
You didn't show us your web.xml. Have you taken a close look at it?


Costs matter. Justice lies in processes not outcomes. Crime is caused by criminals.
 
jQuery in Action, 2nd edition
 
subject: Httpsesion Listener is not working properly?