我正在尝试使用 display-table 将 LoginAction 中的列表“li”填充到 jsp 页面上。并且该列表应该是可选择的。但是当我运行我的 jsp 时,它说“没有找到要显示的内容”。可能是什么问题.并且显示表是一种更好的方法来使列表可选择和可编辑?还是有其他转机?谢谢
登录操作.java
public class LoginAction extends Action {
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request,
HttpServletResponse response) throws Exception
{
ActionForward nextPage = mapping.findForward("success");
LoginForm in = (LoginForm) form;
CaseHistoryData cd =new CaseHistoryData();
List<CaseHistoryData> li = new ArrayList <CaseHistoryData>();
cd.setNo(1);
cd.setShortdesciption("NOA Data verified");
li.add(cd);
CaseHistoryData cd2 =new CaseHistoryData();
cd2.setNo(2);
cd2.setShortdesciption("Count Allowance");
li.add(cd2);
}
案例历史数据.java
public class CaseHistoryData extends ActionForm {
private int no;
private String shortdesciption;
setter and getters}
AdvancedCorrection.jsp
<html:form action="/OnClick" method="post">
<display:table export="true" id="data"
name="sessionScope.LoginAction.li"
requestURI="/OnClick" pagesize="10" >
<display:column property="no" title="No" sortable="true" />
</display:table>
Struts-config.xml
<form-bean name="AdvancedCorrectionBean" type="us.gov.doc.uspto.patent.palm.advancedcorrection.web.domain.CaseHistoryData">
</form-bean>
<action path="/OnClick" type="us.gov.doc.uspto.patent.palm.advancedcorrection.web.action.LoginAction" name="AdvancedCorrectionBean" scope="session"
input="/AdvancedCorrectio
n.jsp" validate="true" >
<forward name="success" path="/jsp/AdvancedCorrection.jsp" />
</action>