Thanks it works now . We are using 2.3.  

-----Original Message-----
From: Craig McClanahan [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 15, 2005 3:58 PM
To: Manuchehar Khan
Cc: Struts Users Mailing List
Subject: Re: [SPAM] - Re: Caching Appliction Level Data? (session
listener) - Email has different SMTP TO: and MIME TO: fields in the
email addresses

On Tue, 15 Feb 2005 15:53:15 -0500, Manuchehar Khan
<[EMAIL PROTECTED]> wrote:

> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web
Application
> 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>

This is the problem ... the <listener> element was added in Servlet
2.3, so you need to use the 2.3 version of the DTD:

    <!DOCTYPE web-app PUBLIC
      "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
      "http://java.sun.com/dtd/web-app_2_3.dtd";>

Of course, you'll need a 2.3 container to run in as well.

If you only have 2.2, then use a Struts PlugIn instead of
ServletContextListener.

Craig

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to