• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Httpsesion Listener is not working properly?

 
Samanthi perera
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65126
92
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Samanthi perera
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this is Adminprocessor.java servlet


this is loging.java

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65126
92
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But you didn't answer my question.
 
Samanthi perera
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
creating a new session.
 
Samanthi perera
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65126
92
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am still have that problem?
please help me.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65126
92
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HttpSessionListener active when their is a change is session.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65126
92
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can you please give me an example?
 
Thomas Kennedy
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You didn't show us your web.xml. Have you taken a close look at it?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic