首先,我jQuery包有引进,但还是报$或jQuery is not defined 这个错,纠结了半天,最后发现也原来是路径问题。
把原先的路径:
<script type="text/javascript" src="../jQuery/jquery-1.7.2.js"></script>
改成:
<%String path = request.getContextPath();%>
<script type="text/javascript" src="<%=path %>/jQuery/jquery-1.7.2.js"></script>
就没问题了。