Implementing server side processing with Struts 1.3.8 application

Implementing server side processing with Struts 1.3.8 application

anjibmananjibman Posts: 115Questions: 10Answers: 0
edited September 2011 in General
Hi,

I am trying to add DataTable in Struts 1.3.8 application for the reporting purpose. The report can have thousands of records (usually greater than16000) so I am trying to use server-side processing. I did check the page http://datatables.net/release-datatables/examples/server_side/server_side.html but couldn't match with Struts framework.

Basically I have three links in page (Completed, Failed and All) to display state of transactions. currently I have actions for each three operations where it do DB call get all data matching the condition passing to view through request object.

[code]
public abstract class GetFailedAction extends org.apache.struts.action.Action{

@Override
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
throws IOException, ServletException {

TransferDAOImpl transferObject = new TransferDAOImpl();
Collection transfers = new ArrayList();

transfers = transferObject.getTransfersByStatus("failure");
request.setAttribute("transfers", transfers);

}
}
[/code]

So i am wondering where to implement server-side processing in Struts.
This discussion has been closed.