package com.momohelp.controller;

import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

/**
 *
 * @author Administrator
 *
 */
@Controller
public class DefaultController {

	private String index_ftl = "default/1.0.2/index";
	private String welcome_ftl = "default/1.0.2/welcome";

	@RequestMapping(value = { "" }, method = RequestMethod.GET)
	public ModelAndView indexUI(HttpSession session) {
//		Object obj = session.getAttribute("session.user");
//		if (null == obj) {
//			return new ModelAndView("redirect:/user/login");
//		} // END
		ModelAndView result = new ModelAndView(index_ftl);
		// TODO
//		result.addObject("data_session_user", obj);
//		result.addObject("data_session_time",
//				session.getAttribute("session.time"));
		return result;
	}

	@RequestMapping(value = { "/welcome" }, method = RequestMethod.GET)
	public ModelAndView welcomeUI(HttpSession session) {
		ModelAndView result = new ModelAndView(welcome_ftl);
		return result;
	}
}

@@ -675,24 +675,27 @@
 l == obj) %7B%0A
+%09%09%0A
 //%09%09%09return 

test --20160502