Subversion Repositories SmartDukaan

Rev

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

Rev 22080 Rev 22086
Line 1... Line 1...
1
package com.spice.profitmandi.web.controller;
1
package com.spice.profitmandi.web.controller;
2
 
2
 
-
 
3
import javax.servlet.http.HttpServletRequest;
-
 
4
 
3
import org.slf4j.Logger;
5
import org.slf4j.Logger;
4
import org.slf4j.LoggerFactory;
6
import org.slf4j.LoggerFactory;
5
import org.springframework.beans.factory.annotation.Value;
7
import org.springframework.beans.factory.annotation.Value;
6
import org.springframework.stereotype.Controller;
8
import org.springframework.stereotype.Controller;
7
import org.springframework.ui.Model;
9
import org.springframework.ui.Model;
Line 15... Line 17...
15
	
17
	
16
	@Value("${app.context.path}")
18
	@Value("${app.context.path}")
17
	private String appContextPath;
19
	private String appContextPath;
18
	
20
	
19
	@RequestMapping(value = "/dashboard", method = RequestMethod.GET)
21
	@RequestMapping(value = "/dashboard", method = RequestMethod.GET)
20
	public String dashboard(Model model) throws Exception{
22
	public String dashboard(HttpServletRequest request, Model model) throws Exception{
21
		model.addAttribute("appContextPath", appContextPath);
23
		model.addAttribute("appContextPath", request.getContextPath());
22
		return "dashboard";
24
		return "dashboard";
23
	}
25
	}
24
	
26
	
25
}
27
}