首先在ajax 中获取到的值不能直接在jstl中使用,
可以利用另一种思维,在一个空的页面中调用
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html>
<html lang="en">
<head>
<%@ include file="../frame/jqgridqmttop.jsp"%>
</head>
<body>
<script type="text/javascript">
console.log("222222222222");
//打开一个全新的页面,,后面在接口
window.location.href= '<%=basePath%>ItemController/showItems.do';
console.log("over");
</script>
<header>
</header>
</body>
</html>
在接口中使用model对象进行传值