Deleting Servlets [message #90562] |
Wed, 06 April 2005 22:48 |
Eclipse User |
|
|
|
Originally posted by: marlin.mixon.usoncology.com
Hello. I created a servlet but I mistyped the name. I wanted to either
rename it or delete it and start over, but right-clicking (win32) provided
some options, but no delete. I decided to edit the web.xml file to remove
the servlet and did so with care, deleting both the <servlet></servlet>
and <servlet-mapping></servlet-mapping> entries.
Now, however, when I create a new unannotated servlet, I get a new servlet
(S) icon, but the creation of the java template under the package fails. I
am able to work around this by manually creating the java source, but it's
not as convenient. Any ideas?
I've enclosed my web.xml below. Other details: 1.0M3, Tomcat 5.5.7,
jdk1.5.
Thanks,
Marlin
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app id="WebApp_ID">
<display-name>TransMapper</display-name>
<servlet>
<servlet-name>GetEAGuidList</servlet-name>
<display-name>GetEAGuidList</display-name>
<description/>
<servlet-class>transMapperProj.GetEAGuidList</servlet-class >
</servlet>
<servlet>
<servlet-name>WriteTransMap</servlet-name>
<display-name>WriteTransMap</display-name>
<description/>
<servlet-class>transMapperProj.WriteTransMap</servlet-class >
</servlet>
<servlet>
<servlet-name>GetTransMappings</servlet-name>
<display-name>GetTransMappings</display-name>
<description/>
<servlet-class>transMapperProj.GetTransMappings</servlet-class >
</servlet>
<servlet>
<servlet-name>DeleteTranslation</servlet-name>
<display-name>DeleteTranslation</display-name>
<description>Delete one translation record from MsgTranslation
table</description>
<servlet-class>transMapperProj.DeleteTranslation</servlet-class >
</servlet>
<servlet-mapping>
<servlet-name>GetEAGuidList</servlet-name>
<url-pattern>/GetEAGuidList</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>WriteTransMap</servlet-name>
<url-pattern>/WriteTransMap</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>GetTransMappings</servlet-name>
<url-pattern>/GetTransMappings</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>DeleteTranslation</servlet-name>
<url-pattern>/DeleteTranslation</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
</web-app>
|
|
|
Powered by
FUDForum. Page generated in 0.44782 seconds