upload_show.jsp
资源名称:shop.rar [点击查看]
上传用户:yatiankong
上传日期:2014-05-16
资源大小:5604k
文件大小:3k
源码类别:
Applet
开发平台:
Java
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- <%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*,java.lang.*" errorPage="" %>
- <%@ page import="java.lang.*"%>
- <%@ page import="MyFly.Bean.Upload" %>
- <%@ include file ="top.jsp" %>
- <HTML>
- <HEAD>
- <TITLE>星海购书网</TITLE>
- <META content="text/html; charset=gb2312" http-equiv=Content-Type>
- <META content="MSHTML 5.00.3700.6699" name=GENERATOR>
- </HEAD>
- <BODY leftMargin=0 topMargin=0 marginheight="0" marginwidth="0">
- <TABLE align=center border=1 cellPadding=0 cellSpacing=0 width=760 bgcolor="#6FBA0A">
- <TBODY>
- <TR>
- <TD width="772" height=322 vAlign=top bgColor=#ffffff><table width="101%"
- height="115%" border=1 cellpadding=0 cellspacing=0>
- <tbody>
- <tr>
- <td width="100%" height=40 valign=top>
- <table border=0 cellpadding=0 cellspacing=0 width="100%">
- <tbody>
- <tr>
- <td height=32 class=title_right> <img src="image/xz07.gif" width="16" height="16"> <strong>当前位置: </strong><a href="default.jsp">首页</a><strong> --> </strong>资料下载</td>
- </tr>
- </tbody>
- </table></td>
- </tr>
- <tr>
- <td height=323 valign=top>
- <table width="595" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF">
- <tr>
- <td colspan="3" align="center"><span class="style4"> 资料下载</span></td>
- </tr>
- <tr>
- <td width="324"><span class="style17">文件说明</span></td>
- <td width="168" ><span class="style17">添加时间</span></td>
- <td width="95" ><span class="style17">下载</span></td>
- </tr>
- <%
- request.setCharacterEncoding("gb2312");
- Upload upload=new Upload();
- ResultSet rs=upload.Query();
- String temp=null;
- String temp2=null;
- while(rs.next())
- {
- temp=rs.getString(2);
- //System.out.print(temp);
- //temp=new String(temp.getBytes("ISO8859_1"));
- //System.out.print(temp);
- temp2=rs.getString(3);
- // String s=URLDecoder.decode(temp);
- //System.out.print(s);
- //String name=new String(request.getParameter("index").getBytes("ISO8859_1"));
- String s=java.net.URLEncoder.encode(temp,"UTF-8");
- // System.out.print(s);
- %>
- <tr>
- <td><%=temp2%></td>
- <td ><%=rs.getString(4)%></td>
- <td><a href="../upload/<%=s%>">点击下载</a></td>
- </tr>
- <tr>
- <td background=image/line.gif width="324" height="5" colspan="3"></td>
- </tr>
- <%
- }
- %>
- </table></td>
- </tr>
- </table></TD>
- </TR>
- </TBODY></TABLE>
- <%@ include file ="foot.jsp"%>
- </BODY></HTML>