public void doSearchListDataBinding(HttpServletRequest request) throws Exception { JournalEntryVO srchParams = null; RequestAutoBindEngine engine = null; try { srchParams = new JournalEntryVO(); engine = new RequestAutoBindEngine(); engine.requestBindData(request, srchParams); srchParams.setPaginationDetails(); httpRequest.setAttribute("JournalEntryVO", srchParams); } finally { srchParams = null; engine = null; } }
@SuppressWarnings("unchecked") public void doTransJournalReProcess(HttpServletRequest request) throws FoursoftException, Exception { String selectedJrnalIds = null; JournalEntryVO srchParams = null; try { selectedJrnalIds = StringUtility.noNull(request.getParameter("selectedJrnalIds")); JournalEntryDAO.pushETJIdsQueue(CollectionUtils.commaSepartedStrToList(selectedJrnalIds)); navigationParams.setSuccessMessage("Reprocess request intiated sucessfully."); srchParams = (JournalEntryVO) httpRequest.getAttribute("JournalEntryVO"); if (srchParams != null) { srchParams.setSelectedJrnalIds(null); } } finally { selectedJrnalIds = null; } }
public void doSearch(HttpServletRequest request) throws FoursoftException, Exception { JournalEntryVO srchParams = null; List<JournalEntryVO> srchResults = null; try { srchParams = (JournalEntryVO) httpRequest.getAttribute("JournalEntryVO"); if (srchParams == null) { srchParams = new JournalEntryVO(); srchParams.setPaginationDetails(); } journalDAO = new JournalEntryDAO(); srchParams.setDateFormat(dateFormat); srchResults = journalDAO.getSearchResult(srchParams); srchParams.setSearchResults(srchResults); httpRequest.setAttribute("JournalEntryVO", srchParams); } finally { srchParams = null; srchResults = null; journalDAO = null; } }