Hi,
    Sorry if this question has been asked a bunch of times.  I tried to
search the archives and couldn't find any thing.  I'm trying to
implement a simple servlet engine mainly so major parts of my
application remain portable to different web serving environments.  I
thought the way I would, for instance, forward a post request would be
the following:

HttpServlet servlet = (HttpServlet)
server.classLoader.loadClass("MyPackage.Servlet1").newInstance();
MyServletRequest request = new MyServletRequest();
MyServletResponse response = new MyServletResponse();
servlet.doPost(request, response);

However, the last line of course will not compile because doPost is
protected.  What is the standard way of doing this.  I noticed the
service method, but service is also protected except for "client"
requests.  Am I to consider myself a client in this instance?  I can
probably put something together with "duct tape", but I'd like to follow
some kind of convention.

Thanks,


Omar


--
Omar Eljumaily
Omnicode
707 573-1814

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to