first commit
This commit is contained in:
18
hrmsEjb/wenrgise/common/utility/ReportPlugin.java
Normal file
18
hrmsEjb/wenrgise/common/utility/ReportPlugin.java
Normal file
@@ -0,0 +1,18 @@
|
||||
package wenrgise.common.utility;
|
||||
|
||||
import javax.servlet.ServletException;
|
||||
import org.apache.struts.action.ActionServlet;
|
||||
import org.apache.struts.action.PlugIn;
|
||||
import org.apache.struts.config.ModuleConfig;
|
||||
|
||||
public class ReportPlugin implements PlugIn {
|
||||
private String reportPathName = "/WEB-INF/EnrgiseReport.xml";
|
||||
|
||||
public void init(ActionServlet servlet, ModuleConfig config) throws ServletException {}
|
||||
|
||||
public void destroy() {}
|
||||
|
||||
private String calculatePath(ActionServlet servlet, String sPath) {
|
||||
return servlet.getServletContext().getRealPath(sPath);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user