易截截图软件、单文件、免安装、纯绿色、仅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中上传图片的相关问题 - Web 开发 / 其他

//用客户的session的id建立一个临时文件:
//String tempFileName=(String)session.getId();
String tempFileName = (String)session.getId();
//out.println(& ......

在jsp中用session怎么实现购买功能 - Java / Web 开发

我想做够购物车用session 但是不知道怎么获取购买数量 谁有具体的代码吗 希望能割舍

下面是购物车的核心代码 
有了这个 就应该能够做出来吧
Java code:

public void doPost(HttpServletRequest reque ......

js在jsp中不能调用问题。

我的程序如下:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv=&q ......

jsp页面中字体变色问题 - Java / Web 开发

<html><head><title>[@title]</title>
<meta http-equiv=Content-Type content="text/html; charset=gb2312">
<script language='javascript'>
function diyCheck ......

JSP中引用.oxc控件....请教!!

top.jsp里面引用控件<object id="ocx" classid ="clsid:......"></object>
  试问我怎么才能在main.jsp页面中获取该控件???
  top.jsp、main.jsp是框架页 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号