你不是写了<% String s = (String)request.getAttribute("idd");  %>
        <html:form action="/update?iddd=  " >把/update的参数里加一项<% String s = (String)request.getAttribute("idd");  %>
        <html:form action="/update?iddd=<%=s%>" >在action里用   String idd=(String)request.getAttribute("iddd");

解决方案 »

  1.   

    不好意思,写错了点,是String idd=request.getParameter("iddd");
      

  2.   

     <html:form action="/update?iddd=<%=s%>" >
    这样写得不到值http://localhost:8080/aaa/update.do?iddd=%20<%=s%20%>
    看地址就知道了
      

  3.   

    用js写个js方法,把你要传的参数传过去,然后提交给action
      

  4.   

    在你的form里加一个属性,用于保存s
    <html:text property = "temp" value = ${idd}/>
    action里面直接从form取值
      

  5.   

    每次页面load都会到request中取到idd的值
    不要显示出来可以加一个隐藏字段就可以了
      

  6.   

    <input type="hidden" value='<%=request.getParameter("iddd")%>'>就ok了。每次提交的时候 request.get...就可以了
      

  7.   

    <html:hidden property="idd" value="${idd}">第一句String s = (String)request.getAttribute("idd");  都可以省略了