Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
4687 mandeep.dh 1
package in.shop2020.inventory.controllers;
2
 
3
import javax.servlet.ServletContext;
4
 
5
import org.apache.struts2.util.ServletContextAware;
6
 
7
public class WarehouseController implements ServletContextAware{
8
 
9
    private ServletContext context;
10
 
11
    public String index(){
12
        return "index";
13
    }
14
 
15
    public void setServletContext(ServletContext context) {
16
        this.context = context;
17
    }
18
 
19
    public String getServletContextPath() {
20
        return context.getContextPath();
21
    }
22
}