76b6667ecfc218594c664282da809bfe37db045b.svn-base 716 B

123456789101112131415161718192021
  1. <%@page contentType="text/html" pageEncoding="UTF-8"%>
  2. <%@ page
  3. import = "com.sinosoft.common.upLoad.UpLoadFormServiceImpl"
  4. %>
  5. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  6. <html xmlns="http://www.w3.org/1999/xhtml">
  7. <head>
  8. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  9. <title>txt文件预览</title>
  10. </head>
  11. <%
  12. response.setCharacterEncoding("UTF-8");
  13. String fileName = request.getParameter("filePath");
  14. fileName = java.net.URLDecoder.decode(fileName,"UTF-8");
  15. UpLoadFormServiceImpl u = new UpLoadFormServiceImpl();
  16. String s = u.readTxtFile(request,response,fileName);
  17. %>
  18. <body>
  19. <%=s %>
  20. </body>
  21. </html>