2009年4月17日

初学jsp写的一个显示系统目录文件的小程序

摘要: jsp(SUN企业级应用的首选) File System Viewer"); sb.append(roots[i]+" "); } return sb.toString();}%>Current Directory: "+strDir+"" + getDrivers() + ""); File objFile = new File(strDir); File list[] = objFile... 阅读全文

posted @ 2009-04-17 21:26 cy163 阅读(382) 评论(0) 推荐(0)

jsp遍历文件夹下的文件的代码

摘要: 实很简单 也有很多方法 我使用的是一个SERVLET+一个JSP实现的 主要应用FILE类 SERVLET的代码片: DisplayFile.java //********************************* File parentDirectory = null;//当前目录 ArrayList [] file = null;//存放当前目录中所有的文件 ArrayList []... 阅读全文

posted @ 2009-04-17 21:13 cy163 阅读(1846) 评论(0) 推荐(0)

解决 从数据库中读出 的文本中的回车无法在 jsp网页上起作用的问题

摘要: http://topic.csdn.net/t/20011108/12/360606.html 我自己已经解决了这个问题,现帖出来与大家共享 public String replace(String parentStr,String ch,String rep){ int i = parentStr.indexOf(ch)... 阅读全文

posted @ 2009-04-17 13:22 cy163 阅读(377) 评论(0) 推荐(0)

导航