| 网站首页 | JAVA文章 | AppServers | Web开发 | 应用开发 | 资源下载 | 论坛
    想学好编程,学好外语很重要  [enadd  2006年12月25日]        
设为首页 加入收藏 联系站长
您现在的位置: 编程笔记网 >> JAVA文章 >> SERVLET与JSP >> 文章正文
JSP单页面网站文件管理器           ★★★ 【字体:
JSP单页面网站文件管理器
作者:-    文章来源:-    点击数:    更新时间:2007-10-25

 try {
  mySmartUpload.upload();
  mySmartUpload.save(strDealPath);
 
  response.sendRedirect(request.getRequestURI()+"?path="+strDealPath+"&act=show");
  return;
 } catch (Exception e) {
  strErr="文件上传出错,请检查是否超过1M 的文件大小限制!";
 }

}

%>
<%
out.println(strStat);
%>

<HTML><HEAD><TITLE>Directory Listing For /</TITLE>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<META content="MSHTML 5.00.2920.0" name=GENERATOR></HEAD>
<BODY bgColor=white>
<div align="center">
  <table border=0 cellpadding=5 cellspacing=0 width="90%">
    <tbody>
    <tr>
      <td align=left bgcolor=#000066 valign=bottom><font color=#ffffff face=宋体
      size=4 Roman? New ,?times><b>&nbsp;网站文件管理器</b></font></td>
      <td align=right bgcolor=#000066 valign=bottom><font color=#ffffff face=宋体
      size=4 Roman? New ,?times><b>&nbsp;<strong><%=request.getContextPath()%></strong></b></font></td>
    </tr>
    </tbody>
  </table>
  <table width="90%" border="0" cellspacing="0" cellpadding="5">
    <tr>
      <td><font size="2"><b>物理路径:</b><%=strDealPath%></font></td>
    </tr>
 </table>
  <br>
  <% if (strStat.equals("login")){%>
  <table width="300" border="0" cellspacing="1" cellpadding="0" >
    <tr>
    <td height="200" valign="top" align="center">
      <p align="center">
        <table width="100%" border="0" cellspacing="1" cellpadding="5" bgcolor=#999999 class=a9px>
          <tr>
            <td bgcolor="#cccccc"><font size=+2>登录</font></td>
        </tr>
        <tr>
            <td bgcolor="#FFFFFF" valign="top" align="center">
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <form name=dataform method=post action='<%=request.getRequestURI()%>?act=login'>
                  <tr>
                    <td width="100"><b><font size="-1">登录名:</font></b></td>
                    <td>
                      <input maxlength=16
              name="username" value="">
                    </td>
                  </tr>
                  <tr>
                    <td width="100"><b><font size="-1">密码:</font></b></td>
                    <td>
                      <input  class=stedit  maxlength=16
                  name="userpass" value="">
                    </td>
                  </tr>
                </form>
              </table>
            <br>
              <table border=0 cellpadding=0 cellspacing=0>
                <tbody>
                <tr>
                  <td>
                    <input  name=update onClick="javascript:if (checkform()==false);" type=button value="登    录">
                  </td>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                </tr>
                </tbody>
              </table>
              <br>
            </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
  <%  //错误信息显示
}else if(strErr!=""){
 %>
  <table width="90%" border="0" cellspacing="0" cellpadding="5">
    <tr>
      <td><font size=+2><strong>操作错误</strong></font></td>
    </tr>
  </table>
  <table align=center cellpadding=5 cellspacing=0 width="90%">
    <form name=dataForm2

上一页  [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] 下一页  

文章录入:fengyun    责任编辑:fengyun 
  • 上一篇文章:

  • 下一篇文章: 没有了
  • 发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
    最新热点 最新推荐 相关文章
  • jsp+javascript打造级连菜单

  • JSP中日期的用法

  • Java程序设计基础入门

  • Servlet和JSP概述

  • JSP动作

  • JSP教程-标记库

  • JSP技术简介

  • JSP与JavaMail (六)

  • JSP与JavaMail (五)

  • JSP与JavaMail (四)

  •   网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)
    | 设为首页 | 加入收藏 | 联系站长 | 友情链接 | 版权申明 | 管理登录 |