aspose file tools*
The moose likes Servlets and the fly likes J2EE Reference Implementation default webapp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "J2EE Reference Implementation default webapp" Watch "J2EE Reference Implementation default webapp" New topic
Author

J2EE Reference Implementation default webapp

Joe Guzzardo
Ranch Hand

Joined: Mar 14, 2000
Posts: 57
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.
Joe Guzzardo
Ranch Hand

Joined: Mar 14, 2000
Posts: 57
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: J2EE Reference Implementation default webapp