I have a display:table tag using the results of a struts action that consistently says "no records to display". Logging code in the action method shows that there are 30 items in the action results.
Hoping someone can point out my error:
JSP is:
<s:action var="passageAction" name="list" namespace="/secure/assessment/passage">
<s:param name="itemBankID">${param.itemBankID}</s:param>
<s:param name="standardGuid">${param.standardGuid}</s:param>
</s:action>
<display:table id="passage" name="#passageAction.availableItems">
Struts Action def:
<action name="list" class="com.ia.controller.assessment.PassageAction" method="listPassages">
<result name="success"/>
<result name="error"/>
</action>
The last part of listPassages method which logs 30 items:
this.availableItems =
this.passageDAO.list(
criteria,
pagination,
showRetired,
excludePrompt,
null);
LOGGER.info("count of items " + this.availableItems.size());
return SUCCESS;
Solved by using the action in a jquery load on the div tag... as Dave said, too many pieces –