dcsimg
HELP - How to implement a simple listener class in struts.
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Huy_Nguyen
Posted On:   Wednesday, June 18, 2003 09:39 PM

Guys I am having a problem with implementing a simple Listener Class with my web application using Struts. 1) I create a listener interface which extends HttpSessionListener as following: public interface ControllerHelper extends HttpSessionListener . 2) I create a listener class to implement above interface class: public class ControllerHelperImpl implements ControllerHelper, java.io.Serializable . com.mis.apps.web.listeners Deploy the application into SDK J2EE 1.3.1 went OK. However, when I access to my webapp http://localhost/misweb , I got error page J2EE SDK/1.3.1 - HTTP Status 404 - /misweb .    More>>

Guys

I am having a problem with implementing a simple Listener Class with my web application using Struts.



1) I create a listener interface which extends HttpSessionListener as following:
public interface ControllerHelper extends HttpSessionListener
.



2) I create a listener class to implement above interface class: public class ControllerHelperImpl implements ControllerHelper, java.io.Serializable .






com.mis.apps.web.listeners



Deploy the application into SDK J2EE 1.3.1 went OK. However, when I access to my webapp http://localhost/misweb , I got error page J2EE SDK/1.3.1 - HTTP Status 404 - /misweb .



Wierd enough, when I remove the listener declaration in the web.xml file, and restart the server, my web works as normal (of course without the function of my listener class).

ANYONE CAN TELL ME WHAT I AM MISSING. I AM SURE STRUTS WOULD SUPPORT LISTENER IMPLEMENTATION.

Any help is appreciate.

Regards,

huy.d.nguyen

   <<Less
About | Sitemap | Contact