Posts

Showing posts with the label 전자정부

전자정부 EgovMap Xml Jsp

<?xml version='1.0' encoding='utf-8'?> <%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> <%@ page import="java.util.List,acdn.welvt.elvtr.service.ElvtrSpecVo"%> <%@ page import="egovframework.rte.psl.dataaccess.util.EgovMap" %> <web> <% List<EgovMap> troubleList = (List)request.getAttribute("troubleList");  System.out.println("jsp"); if (troubleList != null) { for (int i = 0; i < troubleList.size(); i++) { EgovMap pnMap = (EgovMap)troubleList.get(i); out.print("<trouble_detail>"); out.print("<trouble_sn>" +  pnMap.get("troubleSn")+ "</trouble_sn>"); out.print("<defect_dt>" + pnMap.get("defectDt") + "</defect_dt>"); out.print("<defect_type>" + pnMap.get("defectType") + "</def...

was 간 통신 민원24( 민원발급번호) 2

jeus   -> tomcat  -> 민원 24 아래는 tomcat단 소스 민원번호는 xml로 리턴(jdom2) @RequestMapping(value="/setIssue.do") public String setMinwonIssus(HttpServletRequest request, HttpServletResponse response) throws Exception{ String userId = request.getParameter("userId")==null?"":request.getParameter("userId"); String encodeXmlString = request.getParameter("sResultXmlBase64Enc")==null?"":request.getParameter("sResultXmlBase64Enc").replace(" ", "+"); String sBlgDeptCd = request.getParameter("sBlgDeptCd")==null?"":request.getParameter("sBlgDeptCd").replace(" ", "+"); String sCappIsuFmtCd = request.getParameter("sCappIsuFmtCd")==null?"":request.getParameter("sCappIsuFmtCd").replace(" ", "+"); String sIsuCpyCntc = request.getParameter("sIsuCpyCntc")==null?"":request.getParameter(...

java.math.BigDecimal cannot be cast to java.lang.String

Image
===================================================== 문제 부분 : 변경 : number 타입의 데이터를 String으로 바로 형변환 해서 생기는 문제 String.valueOf()로 변경

Error creating bean with name 'exceptionTransfer' defined in file

Image
1.server clean 2. project clean 소스 수정한것도 없는데 잘 되다가 에러를 뿜는다. server, project clean 하니 잘 된다.

전자정부 프레임워크 서비스단

Controller.java --------------------------------------------------------------------------------------------- @Controller public class NationController { @Resource(name = "NationService") private NationService nationService; @RequestMapping(value="/test/ChkFind .do") public String chkfindresult (HttpServletRequest request, Model model) throws Exception { List<EgovMap> statList = null; try{ statList = (List<EgovMap>)  nationService.getStatFindList(); }catch(Exception e){ } } } NationService.java --------------------------------------------------------------------------------------------- public interface NationService { public List<?> getStatFindList() throws Exception; } NationServiceImpl.java --------------------------------------------------------------------------------------------- @Service("NationService") public class NationServiceImpl implements NationService { @Resource(name = "NationDAO") priva...