Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

J2EE Reference Implementation default webapp

 
Joe Guzzardo
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic