我做的是一个修改操作,修改操作是要先要通过id查询到数据,查询到数据后然后进行修改,然后会回查询页面,但不知道怎样做,求指教

解决方案 »

  1.   

    使用form表单来做跳转,把修改的内容放在form中,使用submit提交,在form中游一个action属性,通过action属性掉到Action方法中
      

  2.   

    但是这个页面的form表单已经有一个Action,就是通过id查询的那个Action
    <s:form action="findById" method="post">
    <table>
    <tr>
    <td>学号:</td>
    <td><input type="text" value="${dto.id}"></td>
    </tr>
    <tr>
    <td>姓名:</td>
    <td><input type="text" value="${dto.name}"></td>
    </tr>
    <tr>
    <td>年龄:</td>
    <td><input type="text" value="${dto.age}"></td>
    </tr> <tr>
    <td><s:submit /></td>
    </tr>
    </table>
    </s:form>
      

  3.   

    input 中onclick="update_lcst('Action名!updateInput_lcst?id=<s:property value='id'/>"  
      

  4.   

    1.要么用form表单的action <form action="url"></form> 2,用js实现window.location="url";