I would like to map a name the user can type into the address bar to take a specific action.
For instance, I have the following servlet tag:
<servlet>
<servlet-name>controller</servlet-name>
<servletclass>
com.qs.pro.controller.ControllerServlet
</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
So, when the user types in:
http://mysite/mycontext/controller it executes the specified controller. Now, is there any way to make ANOTHER mapping that will let the user type in:
http://mysite/mycontext and have it execute like this:
http://mysite/mycontext/controller?key=value A.k.a., I want my landing page to be my servlet, but I want it automatically called with a parameter.
Any mapping guru's out there got any tricks for me?
Jason