SCJP, SCJD, SCWCD, SCBCD
SCJP 1.4, SCWCD1.4, OCA(1Z0-007)
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4">
<servlet>
<servlet-name>Anila's Servlet</servlet-name>
<servlet-class>YOURServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Anila's Servlet</servlet-name>
<url-pattern>/Serv</url-pattern>
</servlet-mapping>
</web-app>
SCJP, SCJD, SCWCD, SCBCD
Yes, i have created a WEB_INF directory in D:\TomCat\webapps\DirectoryName
and also in D:\MyPrograms\DirectoryName\etc.
Yes, i am using the link http://localhost:8080/DirName/form.html. When i use http://localhost:8080, i am getting the tomcat home page
Best Regards,<br />DongShan<br /> <br />SCJP1.4, SCWCD1.4
Best Regards,<br />DongShan<br /> <br />SCJP1.4, SCWCD1.4
Thanks a lot.Even i got confused whether you need a web.xml file to display just an html page.
My tomcat installation is in D:\Tomcat\Tomcat5.0
I have corrected the WEB_INF to WEB-INF.
My application directory name is Dolls and html is Doll.html.
I have placed this Doll.html in D:MyPrograms\Dolls\Doll.html
and also in D:Tomcat\Tomcat5.0\webapps\Dolls\Doll.html
Also D:\Tomcat\Tomcat5.0\webapps\Dolls\WEB-INF directory also
Best Regards,<br />DongShan<br /> <br />SCJP1.4, SCWCD1.4
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |