Home Tutorialhelp Allcomments Servlets Mysessionlistener



User Comments for the tutorial:


Total comments: 6      View Tutorial    Discuss: HttpSessionListener

great side
sir/mam this side is realy very helpful for the java persion i m very thankful of u providing a very easy and effective material. 

catch (Exception e) { System.out.println("Error in setting session attribute: " }+ e.getMessage()); it should be: catch (Exception e) { System.out.println("Error in setting session attribute: " + e.getMessage()); } 

the association
What I do not understand from this code is where is the MySessionListener associated with the session? The class MySessionListener seems to be on it's own and there is no addListener type method to bind a listener to a session. Am I missing something 

Listner class
I have added the web.xml before the servlet <listener> <listener-class>my.com.MySessionListner</listener-class> </listener> still the session is not firing 

Typo error
the section sessionCreated() System.out.println("Error in setting session attribute: " }+ e.getMessage()); the additional paranthesis creats problem in the code 

how create a session in one servlet and it using other servlets without forwading  

Related Tutorial and Articles

Advantages of Servlets over CGI
Servlets are server side components that provides a powerful mechanism... java servlets provide excellent framework for server side processing. Using servlets web developers can create fast and efficient server side applications and can 

Servlet Interview Questions

explain the concept of ssi servlets  explain the concept of ssi   Server Side Includes (SSI) are commands and directives placed in Web.... The Server Side Includes is a simple interpreted server side scripting used in HTML 


Accessing Database from servlets through JDBC!
technology java servlets provide excellent framework for server side.... Platform independency of servlets provides a great advantage over.... Secure Servlets are server side components, so it inherits 

HTML Questions

How to align div side by side?
Example of aligning DIV side by side in HTML page In this tutorial I will explain you how you can align the div side by side using CSS. The CSS is great way for designing you website. Web designers are using CSS to design 

General Information

Great Tattoo ideas for Women
Great Tattoo ideas for Women: Sexy, Stylish and Weird Fashion Women like... even though it's a small butterfly on the neck. There are many great tattoo ideas..., you can have tribal tattoo on your lower back or in side of your waist. You may 


What is Java Servlets?
; Servlets are server side components that provide a powerful mechanism for developing server side programs. Servlets provide component-based, platform-independent... and javax.servlet.http. Servlets provides a way of creating the sophisticated server side 

Ajax Questions

which server side script used in j2ee - Ajax
which server side script used in j2ee  Which server-side script.... You can use: * JSP * PHP * Servlets * ASP * .NET etc.. You can use all... scenario you have to call the server side script? Thanks 


JAVA SERVLETS ? An Overview       This tutorial covers concepts pertaining to Server side programming in general and Java Servlets in particular. In addition 

PHP Tutorial

Great Uses for PHP Language
. This comes from how PHP is a server side language. It only gives out client details... all over again when another machine is being used. These are all great uses 

Servlet Interview Questions

Servlets differ from RMI
. Servlets are used to extend the server side functionality of a website. They communicate with various application on the server side and respond to the request made...Servlets differ from RMI  Explain how servlets differ from RMI 

Advertisements Advertisements