This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Override | |
| public List<DTO> getModels(DTO searchCriteria) { | |
| /** | |
| * <li>has been overridden to get the review reports which satisfy the</li> | |
| * <li>filter criteria provided as parameter</li> | |
| * <li>filter criteria includes selected departments,subdepartments,designations</li> | |
| * TODO | |
| * handle user filter expressions also | |
| */ | |
| ReviewFilterDTO filterDTO=(ReviewFilterDTO)searchCriteria; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Override | |
| public List generateReport(DTO filterCriteria) { | |
| return this.dao.getModels(filterCriteria); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public String generateReport(){ | |
| /** | |
| * get the list of departments,subdepartments,designations, | |
| * date range to be used while populating report | |
| */ | |
| //System.out.println("report from date:"+this.getFilter().getFromDate()+"..todate:"+this.getFilter().getToDate()); | |
| this.setFilter((ReviewFilterDTO)this.initialize(this.getFilter())); | |
| this.setReviewReportList(this.service.generateReport(this.getFilter())); | |
| return ""; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public String generateAllReports(){ | |
| //your logic | |
| return SUCCESS;//or any other string | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public String execute() throws Exception{ | |
| return ""; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public String generateAllReports(){ | |
| return reportController.generateAllReports(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <action name="generateReports" class="reportService" method="generateAllReports"> | |
| <result name="success" type="redirect">/pages/Graphs.jsp</result> | |
| </action> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <li> | |
| <s:url id="url" action="generateReports"> | |
| <s:a href="%{url}">Generate All Report</s:a> | |
| </li> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <package name="default" extends="struts-default"> | |
| <default-action-ref name="pmdashboard" /> | |
| <global-results> | |
| <result name="error">/error.jsp</result> | |
| </global-results> | |
| <global-exception-mappings> | |
| <exception-mapping exception="java.lang.Exception" result="error"/> | |
| </global-exception-mappings> | |
| <action name="pmdashboard"> | |
| <result>/pages/DashBoard.jsp</result> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <% response.sendRedirect("pmdashboard.action"); %> |