在pox.xml文件中添加
<dependency>
<groupId>org.apache</groupId>
<artifactId>apache-ant-zip</artifactId>
<version>2.3</version>
<scope>system</scope>
<systemPath>${basedir}/lib/apache-ant-zip-2.3.jar</systemPath>
</dependency>
jsp中获取当前的url
<%
String path = request.getContextPath();
String bastPath = request.getScheme()+”://”+request.getServerName()+”:”+request.getServerPort()+path+”/”;
%>
<base href=”<%=bastPath%>” id=”base_url”>
The username you provided is not allowed to use the text-based Tomcat Manager (error 403)
Tomcat管理
http://blog.csdn.net/jay_1989/article/details/52861620