By the way, I wouldn't recommend leaving it turned on, as it presents a security risk. If you place a security constraint on a servlet based on its servlet mapping, users will be able to bypass that security constraint by using the invoker servlet to invoke your servlet.
----- Original Message ----- From: "James Carman" <[EMAIL PROTECTED]> To: "Tomcat Users" <[EMAIL PROTECTED]> Sent: Saturday, March 22, 2003 11:48 PM Subject: Re: How to access a servlet without <servlet-mapping> > By default, in Tomcat 4.x, the servlet mapping for the "invoker" servlet > (the one that serves requests starting with /servlet) is commented out. You > can uncomment it in <tomcat home>/conf/web.xml and it will be turned on. > Then, your first URL should work. > ----- Original Message ----- > From: "David Thielen" <[EMAIL PROTECTED]> > To: "Tomcat Users" <[EMAIL PROTECTED]> > Sent: Saturday, March 22, 2003 6:27 PM > Subject: How to access a servlet without <servlet-mapping> > > > Hi; > > How do I access a servlet without using <servlet-mapping>? I know > servlet-mapping makes sense but I want to understand the other URI and > everything I try doesn't make sense: > > servlet: > webapp/WEB-INF/classes/ReportSales.jave > > web.xml: > <servlet> > <servlet-name>SalesReport</servlet-name> > <servlet-class>ReportSales</servlet-class> > </servlet> > > The following all failed: > http://localhost:8080/WindwardReportsServlet/servlet/ReportSales > http://localhost:8080/WindwardReportsServlet/servlet/SalesReport > http://localhost:8080/WindwardReportsServlet/ReportSales > http://localhost:8080/WindwardReportsServlet/SalesReport > > any ideas? > > thanks - dave > > > --------------------------------------------------------------------- > 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]
