Package com.jeecms.cms.action.member

Source Code of com.jeecms.cms.action.member.LoginAct

package com.jeecms.cms.action.member;

import static com.jeecms.cms.Constants.TPLDIR_CSI;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import com.jeecms.cms.entity.main.CmsSite;
import com.jeecms.cms.web.CmsUtils;
import com.jeecms.cms.web.FrontUtils;
import com.jeecms.common.web.RequestUtils;

@Controller
public class LoginAct {
  public static final String LOGIN_CSI = "tpl.loginCsi";

  /**
   * 客户端包含
   *
   * @param request
   * @param model
   * @return
   */
  @RequestMapping(value = "/login_csi.jspx")
  public String csi(HttpServletRequest request, ModelMap model) {
    CmsSite site = CmsUtils.getSite(request);
    // 将request中所有参数
    model.putAll(RequestUtils.getQueryParams(request));
    FrontUtils.frontData(request, model, site);
    return FrontUtils.getTplPath(request, site.getSolutionPath(),
        TPLDIR_CSI, LOGIN_CSI);
  }

}
TOP

Related Classes of com.jeecms.cms.action.member.LoginAct

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.