• Post Reply Bookmark Topic Watch Topic
  • New Topic

Access web app localhost:8080/input.jsp URL  RSS feed

 
mi go
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have one web application project in servlet called WebApp1 consiting of one servlet Account.java and one input.jsp file. Currently i have web.xml defined for WebApp1 as follows:



input.jsp is as follows:


so i have WebApp1 folder in my webapps directory of tomcat therefore the url i need to follows is http://localhost:8080/WebApp1/input.jsp

but i wish to use http://localhost:8080/input.jsp this url. How to make use of ROOT directory of tomcat for that?
 
Tim Moores
Saloon Keeper
Posts: 3570
77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By putting input.jsp into webapps/ROOT rather than webapps/WebApp1. The URL it submits to would then become "WebApp1/Account" rather than "Account".
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!