tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Adams <>
Subject Re: How to make a URL map to a servlet ?
Date Wed, 26 Sep 2001 08:21:45 GMT
Thanks for the quick response Lester.

I thought web.xml might be the key.  I have actually already added some
entries to web.xml in order to try to get this to work but I guess I'm not
quite there yet.  Here's what I have so far, perhaps somebody can tell me what
I'm doing wrong:


<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"

  <display-name>MOPITT Data Selection</display-name>



Lester June Cabrera wrote:

> Hi James,
> Tomcat is bundled with a "build" utility. By editing /etc/web.xml in your
> development directory, you should be able to map your servlet class to your
> desired URL.
> Lester
> At 01:58 AM 9/26/01 -0600, you wrote:
> >I have a servlet which looks at the request, makes sure that there is a
> >Session and the necessary beans included in the Session and then directs
> >to a JSP page.  I want to be able to enter a URL and get the servlet
> >(which will direct me to the JSP).
> >
> >I have the JSP in $TOMCAT_HOME/webapps/myapp/Myapp.jsp and the servlet
> >in $TOMCAT_HOME/webapps/myapp/WEB-INF/classes/Servlet.
> >
> >Can anyone tell me how I can set things up so that I can enter a URL and
> >get the servlet to run ?  I have tried using URL's such as
> > and
> > but these don't
> >appear to work.  I'm stumped.
> >
> >I'm running Tomcat version 3.2.1-1, the OS is Red Hat 7.0.
> >
> >Thanks in advance for any suggestions or insight.  Please Cc:
> > if you can.
> >
> >
> >-James

View raw message