tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Williams, Allen" <awill...@harris.com>
Subject RE: Newbie: Help on directory structure
Date Thu, 18 May 2006 20:30:17 GMT
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
allen.williams@harris.com
Office: (321)726-1197
Mobile: (321)258-1272
FAX: (321)727-9607

-----Original Message-----
From: Hassan Schroeder [mailto:hassan.schroeder@gmail.com] 
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 <anw@csunv.com> 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 ------------------------ hassan.schroeder@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message