I am a fresh developer with the Web application and java.My purpose as below: 1. List the directories and files that on the server by a java web application.
2. Create a tree of the dir and files on the web page.
3. Once click on the one of the file in the tree, it will use flash player to paly the file.(actually, all the files are flash file *.swf).Any suggestion is helpful. thanks.
2. Create a tree of the dir and files on the web page.
3. Once click on the one of the file in the tree, it will use flash player to paly the file.(actually, all the files are flash file *.swf).Any suggestion is helpful. thanks.
However,using flash player to play the file,I have no idea.
谢谢你的快速回复。基本思路我还是知道,用File类我也知道,就是不知道下面两点:
1. 怎么把file类取出来的文件列表用一个Tree的形式放在web页面上去
2. 当用户点击某个文件时怎么把具体flash文件的地址传给flashplayer.因为我是web新手,所以很多html(jsp)方面的不懂。
因为在stackoverflow上发过这个问题,我就直接copy过来了,懒得翻译请见谅。