%@ page language="java" contentType="text/HTML;charset=UTF-8" pageEncoding="UTF-8" %> <%! public class URLVo { public String name; public String url; public URLVo(String name, String url) { this.name = name; this.url = url; } } %> <% /****************************************************************** 주소 목록 *******************************************************************/ java.util.ArrayList urls = new java.util.ArrayList(); urls.add(new URLVo("영덕 SF", "http://pv.hyosung.com")); urls.add(new URLVo("영덕 SF", "http://ydsfsolar.iptime.org/union/sub_03.asp")); urls.add(new URLVo("영덕 썬파워", "http://ydsunpower.iptime.org/union/sub_01.asp")); urls.add(new URLVo("화천2호", "https://monitoring.solaredge.com/solaredge-web/p/login#/dashboard")); //urls.add(new URLVo("평창 영신", "https://www.isolarcloud.com/?userAcct=eltenergy")); %> <% int idx = com.elt.util.StringUtil.nullToInteger(request.getParameter("idx"), 1); if(idx > urls.size()) idx = 1; URLVo url = null; %> ELT Reload Main <%@ include file="../layout/include_css.jsp" %> <% for(int i=1; i<=urls.size(); i++) { url = urls.get(i-1); %> <%=url.name %> <% } %> <% url = urls.get(idx-1); %>