index.jsp
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<%="This is First App" %>
</body>
</html>
web.xml文件:
<display-name>JSPAPP</display-name>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>
当我运行应用程序http://localhost:8080/JSPAPP/index.jsp时,它可以正常工作。但是我需要将此URL更改为http://localhost:8080/MyFirstApp/index.jsp,即我需要将JSPAPP更改为MyFirstApp,请告诉我如何更改。