tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thom May <tho...@amxstudios.com>
Subject Re: Using Servlets Previously Created via JServ
Date Mon, 31 Jul 2000 16:10:47 GMT
Aaah, right.
this is where I bail, i'm afraid. i don't have a decent enough
knowledge of jserv to work out what the equivalent technique
would be :/
soz.
thom
On Mon, Jul 31, 2000 at 04:48:43PM +0100, Paul McGrath wrote:
> Dear Thomas
> 
> Thanks for the quick reply.
> 
> > urm. don't the paths need to be the same? ;-)
> > ie:
> > http://localhost/servlets/ShoppingIndexServlet
> > should be
> > http://localhost/servlets/shoppingClassifieds/ShoppingIndexServlet
> > or have I missed something really cunning?
> 
> The idea is that I will be able to call my servlets in the same fashion as I
> was calling them via Apache+JServ. In other words servlets called via
> Apache+JServe would always be called http://localhost/servlets/servlet-name
> regardless of what sub-directory the servlet sat in. With JServ the complete
> paths never had to be supplied as 'zones' where used to give directions as
> to which directory the servlet sits in. Only the servlet name was needed on
> the url. I notice within the tomcat.properties file there is provision for
> zones in the same syntax as JServ. I've copied them in to this file.
> 
> Basically I want to avoid a big code rewrite with my servlets by using them
> in the same way. There are many hard coded elements which just use
> /servlets/servletname as the zones within JServe handled the rest. Perhaps
> it is not possible to do this with Tomcat.
> 
> Best wishes
> Paul
> 
> 
> 
> 
> ----- Original Message -----
> From: Thom May <thomas@amxstudios.com>
> To: <tomcat-user@jakarta.apache.org>
> Sent: Monday, July 31, 2000 4:30 PM
> Subject: Re: Using Servlets Previously Created via JServ
> 
> 
> > >  <servlet-mapping>
> > >      <servlet-name>ShoppingIndexServlet</servlet-name>
> > >
> <url-pattern>/shoppingClassifieds/ShoppingIndexServlet</url-pattern>
> > >  </servlet-mapping>
> > --snip--
> > > The ShoppingIndexServlet which sits under
> > > webapps/servlets/shoppingClassifieds does not work when it's called by
> > > http://localhost/servlets/ShoppingIndexServlet  any ideas ?????
> > >
> > urm. don't the paths need to be the same? ;-)
> > ie:
> > http://localhost/servlets/ShoppingIndexServlet
> > should be
> > http://localhost/servlets/shoppingClassifieds/ShoppingIndexServlet
> >
> >
> > or have I missed something really cunning?
> > hth hand
> > thom
> > --
> > Thomas May
> > Sys Admin, AMX Communications
> > (T) +44 (0)20 7440 3955
> > (F) +44 (0)20 7613 5333
> > (E) thomas.may@amxstudios.com
> > (W) http://www.amxstudios.com
> 

-- 
Thomas May
	Sys Admin, AMX Communications
(T) +44 (0)20 7440 3955
(F) +44 (0)20 7613 5333
(E) thomas.may@amxstudios.com
(W) http://www.amxstudios.com

Mime
View raw message