Originally posted by Steve Wood:
When you say delare a servlet mapping, is that in the web.xml? If you could give me an example..
Yes.
Here's a simple sample:
After that, every URL mapped to your web app context that begins with /whatever/ will map to the servlet. The remainder of the URL is available from the request instance via getPathInfo().
I'm one of those annoying JSP developers that doesn't understand servlets (just knows they're there).
I highly recommend you wrap your mind around servlets. The best web app structures embrace both servlets and JSP, each to their best advantage. Grab a copy of the Servlet Spec and read it cover to cover. It's a surprisingly easy read.
Link to Spec can be found in the JSP FAQ.
Do I need to declare a servlet mapping for every directory or can I do something like:
/workspaces (goes to the servlet)
/workspaces/myproject (servlet picks up the myproject as a parameter)
See above.
As you can see, I need some guidance!
You're in the right place.
Thanks for your help.
My pleasure.
[ February 09, 2007: Message edited by: Bear Bibeault ]