O.K., that caused the effect I was looking for. Based on this result, I changed the 
code in the JSP that called the servlet. I modified the action attribute for the form 
that calls the servlet.

old version: action="servlet/chapter2.login"
new version: action="chapter2/login"

Thanks to everyone who responded. I think I can carry on from here. I recognize the 
need to understand the basics, but I need a crack to plant my toe in so I can learn by 
experimenting. This has given me that toe-hold.
-- 
Charles Knell
[EMAIL PROTECTED] - email



-----Original Message-----
From:     "Shapira, Yoav" <[EMAIL PROTECTED]>
Sent:     Mon, 23 Jun 2003 14:45:46 -0400
To:       "Tomcat Users List" <[EMAIL PROTECTED]>
Subject:  RE: RE: RE: Getting servlet to run


Howdy,

><?xml version="1.0" encoding="ISO-8859-1"?>
>
><!DOCTYPE web-app PUBLIC
>  '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN'
>  'http://java.sun.com/j2ee/dtds/web-app_2_3.dtd'>
>
><web-app>
>  <servlet>
>    <servlet-name>login</servlet-name>
>    <servlet-class>chapter2.login</servlet-class>
>  </servlet>
>  <servlet-mapping>
>    <servlet-name>login</servlet-name>
>    <url-pattern>/chapter2/login</url-pattern>
>  </servlet-mapping>
></web-app>

What happens when you go to http://yourhost/chapter2/login ?

> The docs on the Tomcat site haven't been much help so far. Either the
>stuff I need to know isn't there, or I don't know enough yet to ask the
>kind of questions that will yield the information I need to solve the
>problem.

The tomcat documentation assumes familiarity with the servlet
specification.  This you can get from any number of books out there or
the Servlet Specification itself, downloadable from
java.sun.com/servlets.

Alternatively, you could just ask specific question, e.g. "what is
servlet-mapping and how to do I use it?" and you'll get good answers.
This is not a complete substitute for understanding the basics, but will
get you started.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to