之前对jsp不够太多的了解,域名通过web.xml中的欢迎页到指定的jsp中。在这个jsp中设置指定的方法。
web.xml
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
这个是放到根目录:index.jsp
<jsp:include page="/test/testone" flush="false"/>
这个要执行域名后面的方法。
jsp:include 标签网上有很多。详细可以从网上找。