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
Ïà¹ØÎÊ´ð£º
ÎÒÏë×ö¹»¹ºÎï³µÓÃsession µ«ÊDz»ÖªµÀÔõô»ñÈ¡¹ºÂòÊýÁ¿ ËÓоßÌåµÄ´úÂëÂð Ï£ÍûÄܸîÉá
ÏÂÃæÊǹºÎï³µµÄºËÐÄ´úÂë
ÓÐÁËÕâ¸ö ¾ÍÓ¦¸ÃÄܹ»×ö³öÀ´°É
Java code:
public void doPost(HttpServletRequest reque ......
ÎÊÌâÃèÊö£º
ÀýÈçÎÒÒªÏÔʾµÄÄÚÈÝÈçÏÂËùʾ
Ò»¼¶Ä¿Â¼1
Ò»¼¶Ä¿Â¼1×ÓÀà1
×ÓÀà1
Ò»¼¶Ä¿Â¼1×ÓÀà2
......
ÇëÎʸ÷λ´óÅ££¬¶ÔÓÚÒ»¸ö֪ʶÁ˽âhtmlµÄÈËÀ´Ëµ£¬Ñ§Ï°jspÒª´ïµ½ÈëÃŵÄÒªÇóÒ»°ãÐèÒª¶à³¤Ê±¼äºÍ¿´Ò»Ð©Ò»Ð©Ê²Ã´Êé¼®£¿
3ÖÜ×óÓÒ ¿ÉÒÔµ½ÍøÉÏÕÒЩԴ´úÂë¿´¿´
ÄãÐèҪѧ
java
¹ØÏµÊý¾Ý¿â
javascript
ÓÐÈËѧµÃ¿ì£¬ÓÐÈËÑ ......
jsp¿ª·¢µÄʱºòÄܹ»µ¼³öwordºÍexcel£¬µ«ÊÇÊÇ·ñÄܹ»Ö±½Óµ¼³öΪacess¸ñʽ¡¢dbf¸ñʽµÄÎļþ£¿
¸ßÊÖÖ¸µãÏ£¬×îºÃÄܹ»¸ø¸öÀý×Ó£¬Ð»Ð»£¡£¡£¡
javadbfÕâ¸öjarÒ»ÇÐÎÊÌâ½â¾öÁË¡£
ÏÂÔØµØÖ·Îª£ºhttp://sarovar.org/projects/ ......
ÎÒÔÚmySqlÖÐÓÐÒ»×ֶοɴæhtml±êÇ©£¬±ÈÈç˵ÀïÃæÓÐa±êÇ©
µ«ÊÇÎÒÊäÈë²éѯÌõ¼þaµÄʱºò²¢²»Ïë²é³öÕâÌõ¼Ç¼£¬Ò²¾ÍÊÇ˵²éѯµÄʱºò²»¿¼ÂDZêÇ©,Ö»¿¼ÂÇÄÚÈÝ¡£
ÇëÎÊ´ó¼ÒÔõÑù½â¾ö£¿
¿ÉÒÔÔÙŪһ¸ö×Ö¶ÎÀ´±£´æ¹ýÂ˱êÇ©ºóµÄÄÚÈÝ¡£ ......