Serve servlet by class name

You can enable "Serve Servlet by classname" feature, Once you do that you can access any servlet in the web application by its class name in addition through the servlet context

I have one com.webspherenotes.webapp.WebAppExtensionServlet servlet in my WebAppExtensionSample.war file and i can access it by going to http://localhost:9081/webappext/servlet/com.webspherenotes.webapp.WebAppExtensionServlet url.

In this the /webappext is the web application context

You can download the sample code from here

No comments: