一个表单提交的问题    为何req获取的数据为空  小弟不解

解决方案 »

  1.   

    <html:form action="/select" method="post">
        <table width="800" align="center" cellpadding=1 cellspacing=1 bgcolor="green">
         <tr>
           <td colspan="3" align="center">新闻例表</td>
         </tr>
         <tr bgcolor="#ffffff">
           <td width=50>选择</td>
           <td width=100>标题</td>
           <td width=250>内容</td>
           <td width=200>上传</td>
           <td width=200>发布时间</td>
           
         </tr>
          <logic:iterate id="element"  name="l" >
         <tr bgcolor="#ffffff">
           <td><input type="checkbox" name="upAndde" value="id"/></td>
           <td width=200><bean:write name="element" property="news_Title"/></td>
           <td width=100><bean:write name="element" property="news_Context"/></td>
           <td width=200><bean:write name="element" property="filePath"/></td>
           <td width=200><bean:write name="element" property="createDate"/></td>
        </tr>
        </logic:iterate>  
     
        </table>
           
           <input type="submit" name="delete" value="删除"/> 
           <input type="submit" name="update" value="更新"/> 
          
           ${str}
           </html:form>
      

  2.   

     resp.setCharacterEncoding("GBK");
       NewsService ns=new NewsService();
       String[] de=req.getParameterValues("upAndde");
       String delete=req.getParameter("delete");
       String update=req.getParameter("update");
      

  3.   

        <action path="/select" type="cn.yt.action.delete" >
      

  4.   

    struts标签里边嵌套普通的标签有时候就是得不到,全部换统一的试试