Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
3381 chandransh 1
package in.shop2020.support.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
    @Override
16
    public void setServletContext(ServletContext context) {
17
        this.context = context;
18
    }
19
 
20
    public String getServletContextPath() {
21
        return context.getContextPath();
22
    }
23
}