I tried to put two parameters from html form and get it to the
servlet and then display it.
my servlet is located in C:\Tomcat\apache-tomcat-6.0.18\webapps\chapter1\WEB-INF\classes\LoginServlet.class
my html form is located in C:\Tomcat\apache-tomcat-6.0.18\webapps\name.html
i put html form action as <form method="GET" action="/chapter1/LoginServlet">
my web.xml file is as below .but when i put two parameters and click submit butten nothing happen .it should display what i entered.
<?xml version="1.0" encoding="ISO-8859-1"?>
<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
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
<servlet>
<servlet-name>LoginServlet</servlet-name>
<servlet-class>LoginServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>LoginServlet</servlet-name>
<url-pattern>/LoginServlet</url-pattern>
</servlet-mapping>
</web-app>