== <listener> / <listener-class> tags in Struts' web.xml ==
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   joey_corleon
Posted On:   Monday, September 30, 2002 11:53 AM

Hi, I am trying to use the listener functionality of the API version 2.3 but here is my problem: In my version of the web.xml file, the header specify the use of the DTD http://java.sun.com/dtds/web-app_2_2.dtd. When trying to insert the tag and its embeded tag in the file, the XML parser complains (does not know about those tags), which is understandable - Then I I have tried to modify the DTD url in order to point to the version 2.3: "http://java.sun.com/dtd/web-app_2_3.dtd" Is this approch acceptable (I use as container the version of Tomcat embeded in Forte for Java 4.0 which is I thing a version 2.3 of the Sevlet API) <?   More>>

Hi,


I am trying to use the listener functionality of the API version 2.3 but here is my problem:


In my version of the web.xml file, the header specify the use of the DTD
http://java.sun.com/dtds/web-app_2_2.dtd.

When trying to insert the tag and its embeded tag in the file, the XML parser complains (does not know about those tags), which is understandable -

Then I I have tried to modify the DTD url in order to point to the version 2.3:

"http://java.sun.com/dtd/web-app_2_3.dtd"

Is this approch acceptable (I use as container the version of Tomcat embeded in Forte for Java 4.0 which is I thing a version 2.3 of the Sevlet API)




<?xml version="1.0" encoding="ISO-8859-1"?>

"http://java.sun.com/dtd/web-app_2_3.dtd">


Anyway, it seems that does not work either.

Can anyone help???

   <<Less

Re: == &lt;listener&gt; / &lt;listener-class&gt; tags in Struts' web.xml ==

Posted By:   joey_corleon  
Posted On:   Tuesday, October 1, 2002 02:43 PM

OK, it works now :o)


I have replaces the header of the web.xml file by the following header (pointing to the version 2.2)







Then have added the lines within the web.xml:





org.mycompany.theNameOfTheClass





Note that this tags must be in the file just before the (read the DTD)

And it works just great :o)


NOTE: Their is maybe a caching problem with Forte for Java 4.0: After having modified the web.xml file and selected "force reload and execute" in the GUI, the changes were not necessarly taken into account thus the new web.xml reloaded as expected.

About | Sitemap | Contact