There are two ways to do this:
        1.  The simpler and easier to maintain, but not portable across
different JSP/Servlet engines: call them as
/context/servlet/fullly.qualified.class.name (without .class).

        2.  The more portable, but more difficult to maintain: add a mapping
to web.xml.  Add something like:
<servlet>
        <servlet-name>MyServlet</servlet-name>
        <servlet-class>com.iteco.MyServlet</servlet-class>
</servlet>
<servlet-mapping>
        <servlet-name>MyServlet</servlet-name>
        <url-parren>/MyServlet</url-pattern>  This is relative to the
webapps.
</servlet-mapping>
You can check out the servlet spec for more information about the web.xml
file.

        Randy

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 26, 2001 11:22 AM
To: [EMAIL PROTECTED]
Subject: Invoking Servlets


How can I get Tomcat to execute my servlets? I'm running Tomcat as an
extension to IIS 5. I managed to configure it to serve my JSPs, but not
servlets? I'm not sure I know the html code for invoking serlets - I
expected that it should be the class file name without the extension
(.class).


Agu C.F



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

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

Reply via email to