At 03:35 PM 15/06/01, you wrote:
>Jim Cheesman wrote:
> > To be honest, no idea ;) I haven't used JServ so I've no idea how its
> > repositories worked... I don't suppose that building a redirecting servlet
> > would be that difficult - add a parameter to a cgi style call, and build
> > the servlet URL from that. Then call
> > getServletContext().getRequestDispatcher(myURL).forward(request, response);
>
>That would be an idea :) But I found something that could help me,
>although I can't find documentation on it anywhere...
>
>When I look at tomcat-apache.conf, I find this line:
>ApJServMount /servlet /ROOT
>ROOT is a directory with a normal structure (WEB-INF and the like). Now,
>when I want to access a servlet that's located in
>$TOMCAT_HOME/webapps/ROOT/WEB-INF/classes, I can just enter
>http://www.myserver.com/servlet/<actual servlet>. That works great. No
>need for /servlet/servlet/<actual servlet>.
>
>But other Contexts do need that extra "/servlet"-directory, even though
>I tell them (i.e.)
>ApJServMount /servlets /servlets
>Still I need to access the servlets in this Context at
>http://www.myserver.com/servlets/servlet/<actual servlet>.
In this case "servlets" is a seperate web application - just like ""
(nothing inbetween the quotes intentionally). So in both cases you are
accessing your sevlets with
http://myserver.com/webapp_path/servlet/actual_servlet - just that in the
second case the webapp_path is blank/empty.
>The context is made like this:
><Context path="/servlets"
> docBase="/var/servlet"
> reloadable="true" >
></Context>
>
>Now, why can't I access the servlets direct from /servlets, when I *can*
>do that with the /ROOT context?
As I said - check the extra/missing "s" servlets/servlet vs. /servlet
>Does that clarify my question a bit more? Seeing ROOT, I'd say it must
>be possible, but what's the correct config?
Of course, you can blitz the root webapp context entry in server.xml - or
change the path to "/root", then change the servlets webapp path to "/"...
That would acheive want you want.
HTH,
JimC
--
* Jim Cheesman *
Trabajo:
[EMAIL PROTECTED] - (34)(91) 724 9200 x 2360
Evil is
not all bad.