tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Manuel Melle Ocariz" <MME...@softwareag.es>
Subject Re: servlet deployment
Date Tue, 22 May 2001 14:06:34 GMT
You have to create a web.xml file in your Web-inf folder. This file should lokk like this:

<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
	<servlet>
		<servlet-name>HelloWorld</servlet-name>
		<servlet-class>dummy.HelloWorld</servlet-class>
	</servlet>
	<servlet-mapping>
		<servlet-name>HelloWorld</servlet-name>
		<url-pattern>/HelloWorld/*</url-pattern>
	</servlet-mapping>
	<welcome-file-list>
		<welcome-file>
	                            index.html
	     	</welcome-file>
	</welcome-file-list>
</web-app>

As you can see, this file specifies the servlet name and maps it to an url pattern. In your
html you just have to write i.e:

<form action="HelloWorld">

This should work.

Manuel Melle Ocáriz
Software AG - E-Business Competence Center
mmelle@sag.es



Mime
View raw message