give that one a try:
url-pattern/story/*/url-pattern
using SERVERNAME/sampleapp/story
-Original Message-
From: Erin Lester [mailto:[EMAIL PROTECTED]]
Sent: Dienstag, 26. Juni 2001 16:25
To: [EMAIL PROTECTED]
Subject: web.xml not working
I have created a web application as per the
Here is a servlet definition from my web.xml file:
servlet
servlet-name
Login
/servlet-name
servlet-class
com.beeslender.servlets.LoginServlet
/servlet-class
servlet-mapping
servlet-name
Login
Thanks for the suggestion, but I don't think that's it. According to the
Java Servlet Spec. v2.2 (ch. 13, pg 65), servlet-mapping isn't contained
within the servlet element, but is a seperate element.
In my original post I said I couldn't have a web.xml file in my
application. That was
Eric
If you deploy your servlets using a web.xml then you
should have your servlets properly packaged. so in
your case you need to package your servlets as
com.beeslender.servlets.LoginServlet
package com.beelender.servlets; at the top of your
Login Servlet and then you should map your web.xml
That was my web.xml for Erin to use as an example.
Mine works just fine btw.
--- Krishna Muthyala [EMAIL PROTECTED] wrote:
Eric
If you deploy your servlets using a web.xml then you
should have your servlets properly packaged. so in
your case you need to package your servlets as
Okay, that sample was just what I had modified/copied
from the web.xml that was supplied w/ TomCat.
--- Erin Lester [EMAIL PROTECTED]
wrote:
Thanks for the suggestion, but I don't think that's
it. According to the
Java Servlet Spec. v2.2 (ch. 13, pg 65),
servlet-mapping isn't contained