<%@ page contentType="application/xml;charset=UTF-8" %> <%@ page import = "java.io.*" %> <%@ page import = "java.sql.*" %> <%@ page import = "java.util.*" %> <%@ page import = "java.util.regex.*" %> <%@ page import = "javax.sql.*" %> <%@ page import = "javax.servlet.*" %> <%@ page import = "javax.servlet.http.*" %> <%@ page import = "com.youngsamsung.common.util.StrUtil" %> <%@ page import = "com.youngsamsung.common.util.HttpUtils" %> <%@ page import = "java.util.List" %> <%@ page import = "java.util.Map" %> <%@ page import = "java.net.URLEncoder" %> <%@ page import = "java.text.SimpleDateFormat" %> <%@ page import = "com.youngsamsung.common.ctl.SimpleQueryController" %> <% Map reqMap = HttpUtils.requestToMap(request); String strQuery = ""; String urlLink = "http://www.youngsamsung.com/portal/site/Front/menuitem.b1d14050568a7e708c19eb107ee0db3d/"; String strURL1 = "http://www.youngsamsung.com/portal/site/Front/template.MAXIMIZE/menuitem.b1d14050568a7e708c19eb107ee0db3d/?javax.portlet.tpst=4683d406c7201571b0e1d0107ee0db3d_ws_MX&javax.portlet.prp_4683d406c7201571b0e1d0107ee0db3d_viewID=read&javax.portlet.begCacheTok=com.vignette.cachetoken&javax.portlet.endCacheTok=com.vignette.cachetoken&curPage=1&kpid="; String strURL2 = "&rm="; String strURL3 = "&orderBy=&whereGo=read"; SimpleQueryController invoker = null; strQuery = "knowledgeplus.knowledgeplus:selectKnowledgeplusListRSS"; List list2 = null; try { invoker = new SimpleQueryController(reqMap); list2 = invoker.queryForList(strQuery); } catch (Exception ex) { System.out.println("knowplus.jsp Exception: " + ex.getMessage()); } //out.println(""); out.println(""); out.println(""); out.println(" 영삼성닷컴 지식플러스 "); out.println("" + urlLink + ""); out.println(" 영삼성 지식 플러스 RSS 피드"); out.println("ko"); out.println("" + (String)((Map)(list2.get(0))).get("edit_date") + ""); for(int i=0; i < list2.size()/10; i++){ String strTitle = (String)((Map)(list2.get(i))).get("title"); Pattern pattern = Pattern.compile("&"); Matcher matcher = pattern.matcher(strTitle); strTitle = matcher.replaceAll("&"); out.println(""); out.println("" + strTitle + ""); out.println("" + strURL1 + (Number)((Map)(list2.get(i))).get("kp_id") + strURL2 + (Number)((Map)(list2.get(i))).get("rm") + strURL3 + ""); out.println(""); out.println("" + (String)((Map)(list2.get(i))).get("edit_date") + ""); out.println("" + strURL1 + (Number)((Map)(list2.get(i))).get("kp_id") + strURL2 + (Number)((Map)(list2.get(i))).get("rm") + strURL3 + ""); out.println(""); } out.println(""); out.println(""); %>