Aha!  I'm not sure which pair I did, but I only put top four lines in my
web.xml file (the servlet-name and servlet-class pair, and surrounding
servlet tag).

Tonight I'll try it with all the lines recommended here, and see.  The
book I'm using only had the four lines.  Is this a change between
Tomcat4 and Tomcat5?

Thanks, and Regards,
________________________
Allen Williams
[EMAIL PROTECTED]
Office: (321)726-1197
Mobile: (321)258-1272
FAX: (321)727-9607

-----Original Message-----
From: Hassan Schroeder [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 18, 2006 2:39 PM
To: Tomcat Users List
Subject: Re: Newbie: Help on directory structure

On 5/18/06, Allen Williams <[EMAIL PROTECTED]> wrote:
> I have an Java app called login, in a package called UserConfig.  This
is
> just a very simple app to help me get started.
>
> The directory structure:
>
> app-name|
>         |-login.jsp
>         |-welcome.jsp
>         |-WEB-INF|
>         |        |-classes|
>         |        |        |-UserConfig|
>         |        |        |           |-login.class
>         |-src/
>         |-etc.///
>
> In a form in a (very simple) login.jsp file, I have tried referencing
> "servlets/UserConfig.login",

You need to provide a mapping for your servlets in web.xml, e.g.

  <servlet>
    <servlet-name>LoginServlet</servlet-name>
    <servlet-class>UserConfig.login</servlet-class>
  </servlet>
  <servlet-mapping>
    <servlet-name>LoginServlet</servlet-name>
    <url-pattern>/login</url-pattern>
  </servlet-mapping>

HTH,
-- 
Hassan Schroeder ------------------------ [EMAIL PROTECTED]

---------------------------------------------------------------------
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