| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- <%@ page import="java.util.ArrayList" %>
- <%@ page import="java.util.List" %><%-- 去掉,去掉 basePath(String),直接用 /page/ = AppC.PAGE_path。Lin
- <%@ page language="java" import="java.util.*" pageEncoding="UTF-8" isELIgnored="false" %>
- <jsp@directive.page import="java.io.File"/>
- <jsp@directive.page import="javax.imageio.stream.FileImageInputStream"/>
- <jsp@directive.page import="java.io.FileInputStream"/>
- <jsp@directive.page import="java.io.BufferedReader"/>
- <jsp@directive.page import="java.io.InputStreamReader"/>
- <jsp@directive.page import="wd.core.web.WdDevLoginServlet;"/>
- <%
- String path = request.getContextPath();
- String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
- %>
- --%>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- <html>
- <head>
- <%-- 去掉,去掉 basePath(String),直接用 /page/ = AppC.PAGE_path。Lin
- <base href="<%=basePath%>">
- --%>
- <title>My JSP 'index.jsp' starting page</title>
- <meta http-equiv="pragma" content="no-cache">
- <meta http-equiv="cache-control" content="no-cache">
- <meta http-equiv="expires" content="0">
- <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
- <meta http-equiv="description" content="This is my page">
- <%--
- <link rel="stylesheet" type="text/css" href="styles.css">
- --%>
- <script type="text/javascript" src="/ss/lhgdialog/lhgcore.min.js"></script> <%-- ="wd/js/lhgdialog/lhgcore.min.js"。Lin --%>
- <script type="text/javascript" src="/ss/lhgdialog/lhgdialog.min.js"></script> <%-- ="wd/js/lhgdialog/lhgdialog.min.js"。Lin --%>
- <script type="text/javascript" src="/ss/Geometry.js" ></script> <%-- ="wd/js/Geometry.js"。Lin --%>
- <script type="text/javascript" src="/ss/lhgdialog/lhgdialogUtil.js" ></script> <%-- ="wd/js/lhgdialogUtil.js"。Lin --%>
- <%-- 去掉,改为服务 -- 移到 SsdevClientServ.initSessSel()。Lin
- <%
- request.setCharacterEncoding("UTF-8");
- String app = WdDevLoginServlet.getCurrApp();
- List<String> fileNameList = new ArrayList();
- Properties p = new Properties();
- String filePath = session.getServletContext().getRealPath(app+"/debug/");
- System.out.println(filePath);
- File f = new File(filePath);
- if(f.exists() && f.isDirectory()){
- for(File file : f.listFiles()){
- String fName = file.getName();
- if(fName.toLowerCase().endsWith(".session.xml")){
- fileNameList.add(fName);
- }
- }
- }
- %>
- --%>
- <script type="text/javascript">
- function choice(fileName){
- window.parent.initChoiceXml(fileName);
- closeCurrDialog(false);
- }
- </script>
- </head>
- <body>
- <table border="1" width="80%">
- <tr>
- <th width="60%">名称</th>
- <th width="40%">操作</th>
- </tr>
- <%-- 改,改为 request."fileNameList" -- 改为服务了。Lin
- <%
- for(String fName : fileNameList){
- %>
- <tr>
- <td width="60%"><%=fName%></td>
- <td width="40%">
- <input type="button" value="选择" onclick="choice('<%=fName %>');" />
- </td>
- </tr>
- <%
- }
- %>
- --%>
- <rpt.ss name="fileNameList" id="fileName">
- <tr>
- <td width="60%">${fileName}</td>
- <td width="40%">
- <input type="button" value="选择" onclick="choice('${fileName}');"/>
- </td>
- </tr>
- </rpt.ss>
- </table>
- </body>
- </html>
|