DisplayList displaylist = (DisplayList) request.getAttribute("displaylist");
ProjectList DL = null;
if (displaylist == null)
{
ListGenerator lg = ListGenerator.getListGenerator(dataSource);
DL = (ProjectList) lg.getProjectList(userobjectd.getIndividualID(), 1,
listpreference.getRecordsPerPage(), "", listpreference.getSortElement());
} //end of if statement (displaylist == null)
else
{
String searchSession = displaylistSession.getSearchString();
String searchrequest = displaylist.getSearchString();
if (searchSession == null)
{
searchSession = "";
} //end of if statement (searchSession == null)
if (searchrequest == null)
{
searchrequest = "";
} //end of if statement (searchrequest == null)
if (((displaylistSession.getListID() == displaylist.getListID())
&& (displaylist.getDirtyFlag() == false)
&& (displaylist.getStartAT() >= displaylistSession.getBeginIndex())
&& (displaylist.getEndAT() <= displaylistSession.getEndIndex())
&& (displaylist.getSortMember().equals(displaylistSession.getSortMember())
&& (displaylist.getSortType() == (displaylistSession.getSortType()))
&& (searchSession.equals(searchrequest))))
|| displaylist.getAdvanceSearchFlag() == true)
{
DL = (ProjectList) displaylistSession;
request.setAttribute("displaylist", displaylistSession);
}
else
{
ListGenerator lg = ListGenerator.getListGenerator(dataSource);
DL =(ProjectList) lg.getProjectList( userobjectd.getIndividualID(),displaylist);
// DL =(ProjectList) lg.getProjectList(userobjectd.getIndividualID(), 1,
// listpreference.getRecordsPerPage(), "", listpreference.getSortElement());
}
} //end of else statement (displaylist == null)