在JSP中加入struts标签<html:link></html:link>,让他跳转到下一页,在link中有参数,是让Action进行判断然后执行跳转到新的页,相关代码如下,请高手看看那里错了:
JSP:
<tr>
    <logic:present name="pageList2" scope="session">
         <logic:iterate name="pageList2" id="legalaid2" length="4">
              <logic:present name="legalaid2">
                     <tr>
                        <td width="96%">
                           <html:link page="/legalaid/legalAidSeAction.do?action=select5"paramId="t19_c02" paramName="legalaid2" paramProperty="t19_c02">
                                <bean:write name="legalaid3" property="t19_c02"/>
                            </html:link>
                        </td>
                      </tr>
                </logic:present>
           </logic:iterate>
     </logic:present>
</tr>
在ACTION中的代码:
        if (action.equalsIgnoreCase("select5")) {
            String t19_c02_ = request.getParameter("T19_c02");
            pageList = (ArrayList) session.getAttribute("pageList");
            for (int i = 0; i < pageList.size(); i++) {
                fform = (LegalAidForm) pageList.get(i);
                if (t19_c02_.equalsIgnoreCase(fform.getT19_c02())) {
                    break;
                }
            }
            if (fform != null) {
                session.setAttribute("legalaid", fform);
                return mapping.findForward(
                        "legalAid.select_5.success");
            } else {
                return mapping.findForward(
                        "legalAid.select_5.fail");
            }
        }
在struts-config.xml:
    <action name="legalAidForm" path="/legalaid/legalAidSeAction" scope="session" type="sms.legalaid.LegalAidSeAction" validate="false">
      <forward name="legalAid.select_5.success" path="/legalaid/selectone.jsp"/>
      <forward name="legalAid.select_5.fail" path="/legalaid/fail.jsp"/>
    </action>