Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

HttpSessionAttribujteLIstener doubt  RSS feed

 
sudheer kiran
Ranch Hand
Posts: 237
Firefox Browser MyEclipse IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i worte a Dog class which Implements HttpSessionBindingListener

in my jsp i imported <%@page inmport="src.Dog"%>

eRror is : not found any class with the name DOG..
I HAVE SET ENVIRON VARIABLES CORRECTS..WHAT WUD BE THE PROBLEM.
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by sudheer kiran:


in my jsp i imported <%@page inmport="src.Dog"%>


check the spell

Originally posted by sudheer kiran:

I HAVE SET ENVIRON VARIABLES CORRECTS..WHAT WUD BE THE PROBLEM.



Did you compile Dog class?your using IDE right?
 
Shruthi Sam
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey i have written a dummy jsp and a java file as below and it worked. Please Check the spelling and syntax.

<html><body>
<%@ page import="src.Dog" %>
Testing .....
</body></html>


Java File:
package src;

import javax.servlet.http.HttpSessionBindingEvent;
import javax.servlet.http.HttpSessionBindingListener;

public class Dog implements HttpSessionBindingListener {

public void valueBound(HttpSessionBindingEvent arg0) {

}

public void valueUnbound(HttpSessionBindingEvent arg0) {

}

}
 
sudheer kiran
Ranch Hand
Posts: 237
Firefox Browser MyEclipse IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you both
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!