最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
jsp中的import函数的使用方法
时间:2011-06-05 编辑:简简单单 来源:一聚教程网
jsp教程中的import函数的使用方法
<%@ page import="java.io.*" %>
Index of Files
Index of Files
Click a file to open/download it...
<%
String file = application.getRealPath("/");File file1 = new File(file);
String [] fileNames = file1.list();
File [] fileObjects= file1.listFiles();
%>
<%
for (int i = 0; i < fileObjects.length; i++) {
if(!fileObjects[i].isDirectory()){
%>
<%= fileNames[i] %>
(<%= Long.toString(fileObjects[i].length()) %> bytes long)
<%
}
}
%>
-
上一个: jsp include两种调用形式详细
-
下一个: jsp if else语句使用方法
相关文章
- JS回调函数基本定义与用法 05-25
- d3.js中冷门却实用的内置函数总结 03-13
- js中非常强大的光标位置工具函数 09-29
- JS函数object is not a function的bug 06-14
- JS常用的对象函数总结归纳 03-30
- 浅析js随机函数Math.random() 03-29