Set servlet as default home page in web.xml [duplicate]
问题 This question already has answers here : Change default homepage in root path to servlet with doGet (2 answers) Closed 5 years ago . I've a servlet registered in web.xml as below. <servlet> <servlet-name>Manager</servlet-name> <servlet-class>Manager</servlet-class> </servlet> <servlet-mapping> <servlet-name>Manager</servlet-name> <url-pattern>/RequestManager</url-pattern> </servlet-mapping> Basically I want to call this servlet as my default home page when I open http://localhost:8080/appname