본문 시작
사이트맵
<%@ page import="java.util.*"%><%@ page import="net.acego.common.util.*"%><%String code = request.getParameter("code");if(code == null ) code = "01";int codeLen =code.length();if(codeLen <4) codeLen = 2;String code1 = code.substring(0,2);// 1단계 코드String siteCode = (String)request.getAttribute("siteCode");XmlUtil util = new XmlUtil();List beanList = util.makeSiteMenuXmlList(siteCode+"_cms","cms");StringBuffer buf = new StringBuffer();XmlBean bean = null;%>
<%int idx = 0;int na = 0;for(int k=0; k< beanList.size(); k++){idx++;bean = beanList.get(k);if(bean.getMdir().equals("sitemap")) break;//1단계buf.append("
");buf.append("
"+bean.getTitle()+"
");buf.append("");k++;for(int m = k; m< beanList.size(); m++) {bean = beanList.get(m);if(bean.getDepth().equals("2")) {// 2단계buf.append("