问:如何在不同目录下运行index. jsp?(参考下面的图片)。
我成功地运行index. jsp文件在(社区/WebContent/index.jsp)与此路径http://localhost.:8080/社区/index.jsp
但是,希望以相同的路径运行webapp文件夹(Community/Serializer/src/main/webapp/index. jsp)中的index.jsp。
我正在使用eclipse,运行apache-tomcat-7.0.28。服务器. xml上的更改?有什么想法吗?
提前感谢!
将此路径Community/Serializer/src/main/webapp/index. jsp放在web.xml的wecome文件中