F
F. H.
I would like one of my servlet's doGet() methods to be able to pass a
request to to the doGet() method of Tomcat's
org.apache.catalina.servlets.DefaultServlet class. I want to do this
because I need to slightly extend the behavior of the default servlet.
It seems impossible to subclass the default servlet though; my
customized MyDefaultServlet class must be in the same
org.apache.catalina.servlets.* package to call the protected doGet()
method. Is it possible to extend the package to include
MyDefaultServlet without replacing it?
request to to the doGet() method of Tomcat's
org.apache.catalina.servlets.DefaultServlet class. I want to do this
because I need to slightly extend the behavior of the default servlet.
It seems impossible to subclass the default servlet though; my
customized MyDefaultServlet class must be in the same
org.apache.catalina.servlets.* package to call the protected doGet()
method. Is it possible to extend the package to include
MyDefaultServlet without replacing it?