19 lines
578 B
Java
19 lines
578 B
Java
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);
|
|
}
|
|
}
|