关于struts2中select如何将jsp中的key传递给action的问题,求高手!

jsp中的代码:
<s:select label="请选择车间" name="depId"
list="#{'-1':'','201':'一期,'202':'二期,'203':'三期}"></s:select>

<div align="center"><font size="3" face="楷体"> <font
color="red"><a
href="newlist.action?depID=” onclick="return check(depId)"><font color="red">创 建 新 记 录</font></a></font></font></div>
请问 如何将select中的key值(即-1,201,202,203)传递给newlist.action呢,即上面的depID= 后面怎么写。。。在action中又需要设置什么参数!

第1个回答  2012-03-01
直接写 depID=”" 的值,用this.getRequest.get();
取出来就行了追问

直接写,写多少?这个是需要从select中取的,是动态的。。。
你写一下看看。depID=多少

相似回答