页面刷新request里面的值丢失了
首先在servlet里面使用
String qid="123",aid="456";
request.setAttribute("qid",qid);
request.setAttribute("aid",aid);
request.getRequestDispatcher("index.jsp").forward(request,response);
在index.jsp页面里
<input name="qid" value="${requestScope.qid}">
<input name="aid" value="${requestScope.aid}">
遇到问题如下:
第一次执行,index.jsp的两个文本框里显示了123 456
但是一刷新,就没有值显示了
为什么呀?