Subversion Repositories SmartDukaan

Rev

Rev 22086 | Rev 22354 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 22086 Rev 22089
Line 2... Line 2...
2
 
2
 
3
import javax.servlet.http.HttpServletRequest;
3
import javax.servlet.http.HttpServletRequest;
4
 
4
 
5
import org.slf4j.Logger;
5
import org.slf4j.Logger;
6
import org.slf4j.LoggerFactory;
6
import org.slf4j.LoggerFactory;
7
import org.springframework.beans.factory.annotation.Value;
-
 
8
import org.springframework.stereotype.Controller;
7
import org.springframework.stereotype.Controller;
9
import org.springframework.ui.Model;
8
import org.springframework.ui.Model;
10
import org.springframework.web.bind.annotation.RequestMapping;
9
import org.springframework.web.bind.annotation.RequestMapping;
11
import org.springframework.web.bind.annotation.RequestMethod;
10
import org.springframework.web.bind.annotation.RequestMethod;
12
 
11
 
13
@Controller
12
@Controller
14
public class DashboardController {
13
public class DashboardController {
15
 
14
 
16
	private static final Logger LOGGER = LoggerFactory.getLogger(DashboardController.class);
15
	private static final Logger LOGGER = LoggerFactory.getLogger(DashboardController.class);
17
	
16
	
18
	@Value("${app.context.path}")
-
 
19
	private String appContextPath;
-
 
20
	
-
 
21
	@RequestMapping(value = "/dashboard", method = RequestMethod.GET)
17
	@RequestMapping(value = "/dashboard", method = RequestMethod.GET)
22
	public String dashboard(HttpServletRequest request, Model model) throws Exception{
18
	public String dashboard(HttpServletRequest request, Model model) throws Exception{
23
		model.addAttribute("appContextPath", request.getContextPath());
19
		model.addAttribute("appContextPath", request.getContextPath());
24
		return "dashboard";
20
		return "dashboard";
25
	}
21
	}