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 using the J2EE Reference Implementation version 1.2.1 to deploy an application. I want to make my application the default webapp such that when a user enters the URL www.mysite.com they will be taken to my application home page index.html. The index.html will take the user to a servlet when they click a link on the page. When I do this I get an error: Given path servlet/ControllerServlet is not absolute to the base of this context. When I deploy this application with a context root it works okay but then I have to specify the webapp in the URL (www.mysite.com/mywebapp/index.html) Any help would be greatly appreciated.
Joined: Mar 14, 2000
I finally found a reasonable solution. I deployed the application with a context root but kept the index.html in the public-html directory. Then I just modified the link to my servlet to prepend the path with the context root. Simple really.