This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
I'm switching a static html site over to jsp. Does anyone know of a way to map the *.jsp to *.html using servlet mapping in the web.xml? And if it was done this way, would it default to a .html if there was no matching .jsp file? I'll be using Apache with Resin. Thanks.
Hm, I kinda think you've anwered your own question. In the web.xml file, you're probably going to be mapping your servlet to a url, right? Well you can use that url to reference that particular servlet. All you need to do is place that url into an html link, (for example).... I hope you understand what I'm trying to get at... ^^
Joined: May 20, 2002
Han, I think I understand what your saying. Since jsp are servlets, and declared as such in one of the configuration files (not web.xml), I can use the servlet mapping tags to map jsp to .html extentions. While I know I can do that individually for each page, I was hoping to be able to do it with wildcard characters. But since there would still be a few html pages mixed in, I was looking for a way where it would look for a jsp file first, and if it didn't exist, default to the .html page. Might have to look at apache's mod_rewrite for what I want. Thanks.