I am trying to populate the list "li" from the LoginAction on to the jsp page using display-table.And that list should be selectable.But when i run my jsp it says "nothing found to display".What might be the problem.And is display-table a better approach to use to make the list selectable and editable? or is there any other turn around?Thanks
LoginAction.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);
}
CaseHistoryData.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>