if (session.getAttribute("highlightmodule") != null)
session.setAttribute("highlightmodule", "hr");
com.centraview.common.UserObject userobjectd = (com.centraview.common.UserObject)session.getAttribute( "userobject" );
ListPreference listpreference= userobjectd.getListPreference("Expenses");
DisplayList displaylistSession = ( DisplayList )session.getAttribute( "displaylist") ;
DisplayList displaylist = ( DisplayList )request.getAttribute( "displaylist") ;
ExpenseFormList DL= null;
// After performing the logic in the DeleteHanlder, we are generat a new request for the list
// So we will not be carrying the old error. So that we will try to collect the error from the Session variable
// Then destory it after getting the Session value
if (session.getAttribute("listErrorMessage") != null)
{
ActionErrors allErrors = (ActionErrors) session.getAttribute("listErrorMessage");
saveErrors(request, allErrors);
session.removeAttribute("listErrorMessage");
}//end of if (session.getAttribute("listErrorMessage") != null)
ListGenerator lg = ListGenerator.getListGenerator(dataSource);
if( displaylist == null)
{
DL = ( ExpenseFormList )lg.getExpensesList( userobjectd.getIndividualID() , 1,listpreference.getRecordsPerPage() , "" ,listpreference.getSortElement());
}
else//When the dispaly list in not null
{
String searchSession = displaylistSession.getSearchString();
String searchrequest = displaylist.getSearchString();