You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by David Thielen <da...@thielen.com> on 2003/03/23 00:27:30 UTC

How to access a servlet without

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

Re: How to access a servlet without

Posted by James Carman <ja...@carmanconsulting.com>.
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" <ja...@carmanconsulting.com>
To: "Tomcat Users" <to...@jakarta.apache.org>
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" <da...@thielen.com>
> To: "Tomcat Users" <to...@jakarta.apache.org>
> 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: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>
>


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


Re: How to access a servlet without

Posted by James Carman <ja...@carmanconsulting.com>.
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" <da...@thielen.com>
To: "Tomcat Users" <to...@jakarta.apache.org>
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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org