You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Randy Layman <ra...@aswethink.com> on 2001/04/09 21:52:01 UTC
RE: servlet mapping question
I appears that your context name is bill and I would assume that its
url is something like localhost/bill. Therefore, your servlet needs to be
referenced as /bill.faqtool. All of this can/should be done in the
AppName/WEB-INF/web.xml file and not in the /conf/web.xml file.
Also, this probably isn't an issue, but the XML you posted didn't
contain the closing </servlet> tag. I realize that you probably just copied
and pasted, but I just wanted to make sure that you did have the closing
servlet tag in the web.xml file.
Randy
-----Original Message-----
From: William Blackmon [mailto:William.Blackmon@getmusic.com]
Sent: Monday, April 09, 2001 4:05 PM
To: TOMCAT (E-mail)
Subject: servlet mapping question
I'm trying to map the /faqtool url listed below
<form name="menu" action="/faqtool" method="post">
so that it references the class
com.taglib.wdjsp.faqtool.FaqAdministrationServlet
I've tried the following in webapps/bill/web.xml and in tomcat\conf\web.xml
and I continually
get a Tomcat error msg. : 'No handler for request R< + /faqtool + null> 404
The servlet xml entry is:
<servlet>
<servlet-name>FaqAdmin</servlet-name>
<servlet-class>com.taglib.wdjsp.faqtool.FaqAdministrationServlet</servlet-cl
ass>
</servlet>
<servlet-mapping>
<servlet-name>FaqAdmin</servlet-name>
<url-pattern>/faqtool</url-pattern>
</servlet-mapping>
Whats wrong with this picture? And do all servlets need to be entered in
both the conf\web.xml and
\AppName\web-inf\web.xml file?
thanks in advance
Bill Blackmon
Sr. Software Engineer, GetMusic (http://www.getmusic.com)
11 W. 19th Street, 3rd Floor
New York, NY 10011
917-464-0683