通过request.setAttribute();将数据塞到作用域,然后在jsp页面用el表达式获取。例如:
request.setAttribute("name", "zhangsan");
jsp页面:
${name}