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>.
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?
Does that clarify my question a bit more? Seeing ROOT, I'd say it must
be possible, but what's the correct config?
Kind regards,
Tim Stoop