• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

WAR FILES

 
Deepak Jain
Ranch Hand
Posts: 637
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Once you put the war file say beer.war under webapp/ and make a first request to it, Tomcat will unpack it webapp/beer and after
that it will behave like a normal webapp. Note that webapp/beer.war and webapp/beer/ will exists after the war file is unpacked.
However if you delete the webapp/beer/ and keep the beer.war then welcome files will behave a bit differently as explained below

The static content in the WAR is as follows
/foo/index.html
/foo/default.jsp
/foo/orderform.html
/foo/home.gif
/catalog/default.jsp
/catalog/products/shop.jsp
/catalog/products/register.jsp
� A request URI of /foo will be redirected to a URI of /foo/. --> In an unpacked version it will go to the welcome file
� A request URI of /foo/ will be returned as /foo/index.html.
� A request URI of /catalog will be redirected to a URI of /catalog/. --> In an unpacked version it will go to the welcome file
� A request URI of /catalog/ will be returned as /catalog/default.jsp.
� A request URI of /catalog/index.html will cause a 404 not found
� A request URI of /catalog/products will be redirected to a URI of /catalog/products/.
� A request URI of /catalog/products/ will be passed to the �default� servlet,
if any. If no �default� servlet is mapped, the request may cause a 404 not
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64180
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please do not post in all uppercase. Please read this for more information.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic