Index: development-project/project-standard/standard-server/src/main/java/egovframework/com/cmm/web/EgovComUtlController.java =================================================================== diff -u --- development-project/project-standard/standard-server/src/main/java/egovframework/com/cmm/web/EgovComUtlController.java (revision 0) +++ development-project/project-standard/standard-server/src/main/java/egovframework/com/cmm/web/EgovComUtlController.java (revision 007a152283dc12605b35fc26eaba26e0fdcabd60) @@ -0,0 +1,62 @@ +package egovframework.com.cmm.web; + +import egovframework.rte.fdl.property.EgovPropertyService; + +import javax.annotation.Resource; + +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; + +/** + * @Class Name : EgovComUtlController.java + * @Description : 공통유틸리티성 작업을 위한 Controller + * @Modification Information + * @ + * @ 수정일 수정자 수정내용 + * @ ------- -------- --------------------------- + * @ 2009.03.02 조재영 최초 생성 + * @ 2011.10.07 이기하 .action -> .do로 변경하면서 동일 매핑이 되어 삭제처리 + * @ 2015.11.12 김연호 한국인터넷진흥원 웹 취약점 개선 + * + * @author 공통서비스 개발팀 조재영 + * @since 2009.03.02 + * @version 1.0 + * @see + * + */ +@Controller +public class EgovComUtlController { + + //@Resource(name = "egovUserManageService") + //private EgovUserManageService egovUserManageService; + + /** EgovPropertyService */ + @Resource(name = "propertiesService") + protected EgovPropertyService propertiesService; + + /** + * JSP 호출작업만 처리하는 공통 함수 + */ + @RequestMapping(value="/EgovPageLink.do") + public String moveToPage(@RequestParam("link") String linkPage){ + String link = linkPage; + link = link.replace(";", ""); + link = link.replace(".", ""); + + // service 사용하여 리턴할 결과값 처리하는 부분은 생략하고 단순 페이지 링크만 처리함 + if (linkPage==null || linkPage.equals("")){ + link="egovframework/com/cmm/egovError"; + } + return link; + } + + /** + * validato rule dynamic Javascript + */ + @RequestMapping("/validator.do") + public String validate(){ + return "egovframework/com/cmm/validator"; + } + +} \ No newline at end of file