日期:2014-05-20  浏览次数:20807 次

传值
<html:form     method= "post "action= "manager/info?method=update_info ">
<%String   number   =   request.getParameter( "number ");    
    String   Id   =   request.getParameter( "id ");

    DBmanager   db   =   new   DBmanager();
    String   sql   =   "select   *   from   info   where     iId= ' "+Id+ " ' ";
    ResultSet   rs   =   db.doExcuteQuery(sql);
    while(rs.next()){
%>        
      <html:hidden   property= "iId "   value= " <%=Id%> "/>
招聘岗位: <input   name= "title "   type= "text "     value= " <%=rs.getString( "title ")%> "  
     
招聘要求:
              <textarea   name= "content "   cols= "40 "   rows= "5 "   class= "buttonmain "> <%=rs.getString( "content ")%> </textarea>    
 
<%}%>    
<input   type= "submit "   name= "submit "   value= "修改 "/>
<input   type= "reset "   name= "Submit22 "   value= "重置 "   />
</html:form>


我从上个页面获取到了2个值number   ,id;隐性传值只会把一个值(id)传到action中去,那number怎么传过去啊???

------解决方案--------------------
<html:hidden property= "number " value= " <%=number%> "/>


举一反三,帅哥