You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
80 lines
2.3 KiB
Java
80 lines
2.3 KiB
Java
package egovframework.com.cmm.web;
|
|
|
|
import egovframework.rte.fdl.property.EgovPropertyService;
|
|
|
|
import javax.annotation.Resource;
|
|
import javax.servlet.http.HttpSession;
|
|
|
|
import org.springframework.stereotype.Controller;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
|
/**
|
|
* 공통유틸리티성 작업을 위한 Controller 클래스
|
|
* @author 공통 서비스 개발팀 JJY
|
|
* @since 2009.03.02
|
|
* @version 1.0
|
|
* @see
|
|
*
|
|
* <pre>
|
|
* << 개정이력(Modification Information) >>
|
|
*
|
|
* 수정일 수정자 수정내용
|
|
* ------- -------- ---------------------------
|
|
* 2009.03.02 JJY 최초 생성
|
|
* 2011.08.31 JJY 경량환경 템플릿 커스터마이징버전 생성
|
|
*
|
|
* </pre>
|
|
*/
|
|
@Controller
|
|
public class EgovComUtlController {
|
|
|
|
/** EgovPropertyService */
|
|
@Resource(name = "propertiesService")
|
|
protected EgovPropertyService propertiesService;
|
|
|
|
/**
|
|
* JSP 호출작업만 처리하는 공통 함수
|
|
*/
|
|
@RequestMapping(value="/EgovPageLink.do")
|
|
public String moveToPage(@RequestParam("link") String linkPage,
|
|
HttpSession session,
|
|
@RequestParam(value="menuNo", required=false) String menuNo){
|
|
String link = linkPage;
|
|
// service 사용하여 리턴할 결과값 처리하는 부분은 생략하고 단순 페이지 링크만 처리함
|
|
if (linkPage==null || linkPage.equals("")){
|
|
link="cmm/egovError";
|
|
}else{
|
|
if(link.indexOf(",")>-1){
|
|
link=link.substring(0,link.indexOf(","));
|
|
}
|
|
}
|
|
// 선택된 메뉴정보를 세션으로 등록한다.
|
|
if (menuNo!=null && !menuNo.equals("")){
|
|
session.setAttribute("menuNo",menuNo);
|
|
}
|
|
return link;
|
|
}
|
|
|
|
/**
|
|
* JSP 호출작업만 처리하는 공통 함수
|
|
*/
|
|
@RequestMapping(value="/EgovPageLink.action")
|
|
public String moveToPage_action(@RequestParam("link") String linkPage){
|
|
String link = linkPage;
|
|
// service 사용하여 리턴할 결과값 처리하는 부분은 생략하고 단순 페이지 링크만 처리함
|
|
if (linkPage==null || linkPage.equals("")){
|
|
link="cmm/egovError";
|
|
}
|
|
return link;
|
|
}
|
|
|
|
/**
|
|
* validation rule dynamic java script
|
|
*/
|
|
@RequestMapping("/validator.do")
|
|
public String validate(){
|
|
return "cmm/validator";
|
|
}
|
|
|
|
} |