I am using an Apache Tomcat web platform where my servlets are deployed. Right now, all access is by designation of package information.servlet.
how can I remove com.abc.test. (package/classpath information) and just have the application use servlet/MyServlet call up which references com.abc.test.MyServlet? I have roughly 30 different servlets as part of the application and will grow as more is added - what can be done to make this look a little cleaner to the end-user without getting int a lot of maintenance.
Thank you for your assistance and expertise on the matter.
I took a look at the link you posted. Would this require that I have to specify for each servlet that I have or am I not seeing the right solution? What must be changed in the web.xml so that all of these servlets will remove the package/path information to the servlet class file?
Joined: Apr 26, 2007
For each servlet, if you want it to be uniquely reached by a URL, you will have to map it in the web.xml separately.
However, if you want multiple URLs to point to the same servlet, that can be done as well (by giving * as the wildcard to denote URL).
Joined: May 27, 2010
After doing some reading of what you sent, It looks like for final cleanup and added security I will want to declare all of the servlets.