Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Deploying files to webapps/ROOT

 
Victor Ho
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have had success deploying applications as .war files into webapps/. E.g. applicaiton 'xyz' -> webapps/xyz.

However, this requires the users to type the sub-dir names in the url:
http://host:port/xyz/index.html

If I would like to deploy files to the webapps/ROOT directly, any pointers on how to do so?

Thanks
Victor
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
With a WAR you are creating a new webapplication. /ROOT is already a web application for "/" so you can dump html and jsp files in directly. If you want a servlet to run under /ROOT, you will have to modify the web.xml in /ROOT/WEB-INF.
Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic