> Is it true that when you submit the form as above but with 'method="get"', and
> no other change, you get the markup specified by the out.println()?
yes it's very true. i have just replaced 'get' by 'post'
> I find my attention drawn to the deployment descriptor,
> <project-web-dir>/WEB-INF/web.xml, informally called "the web.xml file".
>
> Please provide the web.xml contents.
The contents of web.xml file are :
_____________________________________________________________________
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed
with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version
2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
version="2.5">
<servlet>
<servlet-name>TryOne</servlet-name>
<servlet-name>EmailServlet_2</servlet-name>
<servlet-name>EmailServlet</servlet-name>
<servlet-class>servpack.TryOne</servlet-class>
<servlet-class>servpack.EmailServlet_2</servlet-class>
<servlet-class>servpack.EmailServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>TryOne</servlet-name>
<servlet-name>EmailServlet_2</servlet-name>
<servlet-name>EmailServlet</servlet-name>
<url-pattern>/TryOne</url-pattern>
<url-pattern>/EmailServlet_2</url-pattern>
<url-pattern>/EmailServlet</url-pattern>
</servlet-mapping>
</web-app>
_______________________________________________________________
> I observe that you elevated doPost() and doGet() to 'public' access. You
> don't really need to do that.
hmmm. ok.
> Tomcat is deployed to a directory on the web server host known as
> $CATALINA_HOME in the UNIX style of environment variable, %CATALINA_HOME% to
[quoted text clipped - 4 lines]
> What is the full path of the file 'mail_list.html' within $CATALINA_HOME on
> your Tomcat host?
here it is->
$CATALINA_HOME\webapps\m_egs\mail_list.html
K Gaur - 29 Feb 2008 01:50 GMT
> > Is it true that when you submit the form as above but with 'method="get"', and
> > no other change, you get the markup specified by the out.println()?
[quoted text clipped - 72 lines]
> here it is->
> $CATALINA_HOME\webapps\m_egs\mail_list.html
Lew - 29 Feb 2008 11:31 GMT
> The contents of web.xml file are :
> _____________________________________________________________________
[quoted text clipped - 25 lines]
>
> </web-app>
This is not a valid web.xml. You're supposed to have multiple <servlet> tags
each with exactly one <servlet-name> and exactly one of either a
<servlet-class> or <jsp-file> element contained within. Likewise, a
<servlet-mapping> tag takes exactly one <servlet-name> within, and every
<url-pattern> inside the one <servlet-mapping> refers to the one <servlet-name>.

Signature
Lew
K Gaur - 29 Feb 2008 12:58 GMT
> This is not a valid web.xml. You're supposed to have multiple <servlet> tags
well that did it, thanks.