如果获得绝对路径就不会有问题 了 <a href="<%=request.getContextPath()%>/del.do?id=<bean:write name='i' property='id' />">删</a>