123456789101112131415161718192021 |
- <%@page contentType="text/html" pageEncoding="UTF-8"%>
- <%@ page
- import = "com.sinosoft.common.upLoad.UpLoadFormServiceImpl"
- %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>txt文件预览</title>
- </head>
- <%
- response.setCharacterEncoding("UTF-8");
- String fileName = request.getParameter("filePath");
- fileName = java.net.URLDecoder.decode(fileName,"UTF-8");
- UpLoadFormServiceImpl u = new UpLoadFormServiceImpl();
- String s = u.readTxtFile(request,response,fileName);
- %>
- <body>
- <%=s %>
- </body>
- </html>
|