这是一第一个页面:用隐藏域将值传到第二个页面
<form id="form1" name="form1" method="post" action="index2.jsp">
请选择年份:
<a href="index2.jsp">2008</a><input name="hiddenField" type="hidden" value="2008" />
<a href="index2.jsp">2009</a><input name="hiddenField" type="hidden" value="2009" />
</form>
第二个页面: String year=request.getParameter("hiddenField");
这样子得到的值为什么是空的啊?
没道理啊,请高手们帮帮忙啊!