其实要是单纯的检索页面,没有必要定义ActionForm的,因为你不需要保存表单上面的值
你的问题解决如下:
你先定义一个FormBean.java 这个类里面声明host,username,等的access(set和get)方法
现在你从数据库中检索出来的结果都转换成每一条纪录对应一个FormBean对象,这样你就得到了一个FormBean数组。最后在你的Action中将这个数组放到session中,比如session.setAttribute("FormBean",myFormBeanArray);在jsp端:<logic:iterate id="subscription" name="FormBean" type="packageName.FormBean">
  <tr>
    <td align="left">
      <bean:write name="subscription" property="host" filter="true"/>
    </td>
    <td align="left">
      <bean:write name="subscription" property="username" filter="true"/>
    </td>
    <td align="center">
      <bean:write name="subscription" property="type" filter="true"/>
    </td>
    <td align="center">
      <bean:write name="subscription" property="autoConnect"/>
    </td>
   </tr>
</logic:iterate>这样就可以了