Results 1 to 2 of 2
  1. #1
    Srikanth816 is offline Member
    Join Date
    Apr 2008
    Rep Power

    Default How to implement HttpSessionListener in JSP

    Dear friend,

    In my Application i am implementing HttpSessionListener to my Sevlet, to
    know when the session is going to create and destroy.
    Similarly i want to know by using JSPs.

    Can anyone help me.

    Srikanth G.

  2. #2
    sanjeevtarar's Avatar
    sanjeevtarar is offline Senior Member
    Join Date
    Apr 2008
    Rep Power



    Just make a Listener class and make a entry into web.xml file.

    Listener will be called by container when you will create session object in JSP OR session.invalidate().

    There is no link with servlets and Listener.

    If i am wrong please correct me.


Similar Threads

  1. how to implement progress bar .....
    By roshithmca in forum AWT / Swing
    Replies: 1
    Last Post: 03-06-2008, 04:18 PM
  2. Using HttpSessionListener
    By bbq in forum Advanced Java
    Replies: 1
    Last Post: 07-05-2007, 03:54 AM
  3. API to Implement Server SSH in JAVA
    By Jack in forum Advanced Java
    Replies: 2
    Last Post: 07-02-2007, 01:52 AM
  4. How to implement Cut and Paste
    By Jamie in forum AWT / Swing
    Replies: 2
    Last Post: 05-31-2007, 06:15 PM
  5. How can we implement IPC in java
    By samson in forum Networking
    Replies: 1
    Last Post: 04-04-2007, 06:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts