表单
<form action="/student/t_updateStudent?userId = 1" method="post" name = "form1">action 中
String ids = ServletActionContext.getRequest().getParameter("userId");  ==>这个不就是接收参数的吗?调试有运行到那里,怎么没接收到参数?

解决方案 »

  1.   

    自己解决了,呵呵.
    是这样传参的 <input type="hidden" value="${param.t_sid}" name="userId">
      

  2.   

    你这样做值虽然传过去了,但是已经不是路径传参了。路径传参参数不要放在表单的action里面,这样貌似是传不过去。你可以试试这样的路径传参方式<a href="student/t_updateStudent?userId =1">传参</a>