ssdevClient_sessParmList.ss.jsp 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <%@ page import="java.util.ArrayList" %>
  2. <%@ page import="java.util.List" %><%-- 去掉,去掉 basePath(String),直接用 /page/ = AppC.PAGE_path。Lin
  3. <%@ page language="java" import="java.util.*" pageEncoding="UTF-8" isELIgnored="false" %>
  4. <jsp@directive.page import="java.io.File"/>
  5. <jsp@directive.page import="javax.imageio.stream.FileImageInputStream"/>
  6. <jsp@directive.page import="java.io.FileInputStream"/>
  7. <jsp@directive.page import="java.io.BufferedReader"/>
  8. <jsp@directive.page import="java.io.InputStreamReader"/>
  9. <jsp@directive.page import="wd.core.web.WdDevLoginServlet;"/>
  10. <%
  11. String path = request.getContextPath();
  12. String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
  13. %>
  14. --%>
  15. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  16. <html>
  17. <head>
  18. <%-- 去掉,去掉 basePath(String),直接用 /page/ = AppC.PAGE_path。Lin
  19. <base href="<%=basePath%>">
  20. --%>
  21. <title>My JSP 'index.jsp' starting page</title>
  22. <meta http-equiv="pragma" content="no-cache">
  23. <meta http-equiv="cache-control" content="no-cache">
  24. <meta http-equiv="expires" content="0">
  25. <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
  26. <meta http-equiv="description" content="This is my page">
  27. <%--
  28. <link rel="stylesheet" type="text/css" href="styles.css">
  29. --%>
  30. <script type="text/javascript" src="/ss/lhgdialog/lhgcore.min.js"></script> <%-- ="wd/js/lhgdialog/lhgcore.min.js"。Lin --%>
  31. <script type="text/javascript" src="/ss/lhgdialog/lhgdialog.min.js"></script> <%-- ="wd/js/lhgdialog/lhgdialog.min.js"。Lin --%>
  32. <script type="text/javascript" src="/ss/Geometry.js" ></script> <%-- ="wd/js/Geometry.js"。Lin --%>
  33. <script type="text/javascript" src="/ss/lhgdialog/lhgdialogUtil.js" ></script> <%-- ="wd/js/lhgdialogUtil.js"。Lin --%>
  34. <%-- 去掉,改为服务 -- 移到 SsdevClientServ.initSessSel()。Lin
  35. <%
  36. request.setCharacterEncoding("UTF-8");
  37. String app = WdDevLoginServlet.getCurrApp();
  38. List<String> fileNameList = new ArrayList();
  39. Properties p = new Properties();
  40. String filePath = session.getServletContext().getRealPath(app+"/debug/");
  41. System.out.println(filePath);
  42. File f = new File(filePath);
  43. if(f.exists() && f.isDirectory()){
  44. for(File file : f.listFiles()){
  45. String fName = file.getName();
  46. if(fName.toLowerCase().endsWith(".session.xml")){
  47. fileNameList.add(fName);
  48. }
  49. }
  50. }
  51. %>
  52. --%>
  53. <script type="text/javascript">
  54. function choice(fileName){
  55. window.parent.initChoiceXml(fileName);
  56. closeCurrDialog(false);
  57. }
  58. </script>
  59. </head>
  60. <body>
  61. <table border="1" width="80%">
  62. <tr>
  63. <th width="60%">名称</th>
  64. <th width="40%">操作</th>
  65. </tr>
  66. <%-- 改,改为 request."fileNameList" -- 改为服务了。Lin
  67. <%
  68. for(String fName : fileNameList){
  69. %>
  70. <tr>
  71. <td width="60%"><%=fName%></td>
  72. <td width="40%">
  73. <input type="button" value="选择" onclick="choice('<%=fName %>');" />
  74. </td>
  75. </tr>
  76. <%
  77. }
  78. %>
  79. --%>
  80. <rpt.ss name="fileNameList" id="fileName">
  81. <tr>
  82. <td width="60%">${fileName}</td>
  83. <td width="40%">
  84. <input type="button" value="选择" onclick="choice('${fileName}');"/>
  85. </td>
  86. </tr>
  87. </rpt.ss>
  88. </table>
  89. </body>
  90. </html>