Title: Invoking servlets

I have a "core" servlet that is used in my server for sole purpose of loading
other servlets and transfering control to them. It has alias like
/servlets/ = InvokerServlet
So, if user requests http://myserver.com/servlets/HelloServlet,
this guy will resolve the real path of the servlet to, e.g.
/http/pub/servlets-home/HelloServlet.
But the problem is that ServletContext.getServlet(String) is deprecated. HOW
ELSE CAN I LOAD SERVLET AND PASS CONTROL TO ITS service() METHOD without
a. making InvokerServlet "know" details of server implementation
b. without using class loader to load class, create instance of servlet and call
its service() method. In ideal case, I want to let server manage instances of
all servlets being run in the system.

Thanks a lot,
Maxim

p.s. if it's wrong mail list to post to, please tell me address of the right one
and accept my apologises.

Reply via email to