易截截图软件、单文件、免安装、纯绿色、仅160KB

jsp怎样获得文件夹?(类似HTML 的file控件)

用什么方式实现都行。。
Java code:

String aa = request.getRealPath("/UserFtp/"+listproduct.get(i));
File MyDir = new File(aa+".");
String filename[] = MyDir.list();



引用
用什么方式实现都行。。


我的意思是类似file控件 选的  html file 只能选择文件名  我现在需要选择文件夹


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>JS实现打开文件夹对话框 </title>
</head>
<script language="javascript">
function chooseFolder(){
var savePath;
var objSrc=new ActiveXObject("Shell.Application").BrowseForFolder(0,'请选择文件目录:',0,'');
if(objSrc!=null){
savePath=objSrc.Items().Path;
document.all.savePath.value=savePath;
}
}
</script>
<body>
<input type="te" size="30" name="savePath"/>
<input type="button" na


相关问答:

关于jsp论坛 - Java / Web 开发

我现在想用ssh整合来做一个论坛,但数据库方面不行,我主要不会涉及数据库,不知道发帖表,和回帖表要如何设计和区分。不知道谁有一个简单的思路,来设计这些表。谢谢了。
发帖和回帖用同一张表 。发帖 id user ......

jsp链接sql2000的疑问?



type Exception report


message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jas ......

jsp页面导出问题?能否导出为DBF和ACCESS格式的文件

jsp开发的时候能够导出word和excel,但是是否能够直接导出为acess格式、dbf格式的文件?
高手指点下,最好能够给个例子,谢谢!!!

javadbf这个jar一切问题解决了。
下载地址为:http://sarovar.org/projects/ ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号