<% String path = request.getContextPath()+"/"; out.println("<link href='"+path+"easyui/jquery-easyui-1.5.3/themes/default/easyui.css' rel='stylesheet' type='text/css'/>"); out.println("<link href='"+path+"easyui/jquery-easyui-1.5.3/themes/icon.css' rel='stylesheet' type='text/css'/>"); out.println("<link href='"+path+"easyui/jquery-easyui-1.5.3/demo/demo.css' rel='stylesheet' type='text/css'/>"); out.println("<script type='text/javascript' src='"+path+"easyui/jquery-easyui-1.5.3/jquery.min.js'></script>"); out.println("<script type='text/javascript' src='"+path+"easyui/jquery-easyui-1.5.3/jquery.easyui.min.js'></script>"); out.println("<script type='text/javascript' src='"+path+"easyui/jquery-easyui-1.5.3/locale/easyui-lang-zh_CN.js'></script>"); %> //只要把以上代码放入一个jsp文件中,就可以在用的时候直接引入这个jsp文件就可以了 //引入的代码: <jsp:include page="url(路径)"></jsp:include>