ssm用hadoop展示文件列表,上传文件,下载文件,删除文件前端代码
时间: 2024-05-16 13:14:41 浏览: 16
展示文件列表:
```
<c:forEach items="${files}" var="file">
<tr>
<td>${file.name}</td>
<td>${file.size}</td>
<td>${file.date}</td>
</tr>
</c:forEach>
```
上传文件:
```
<form action="/uploadFile" method="post" enctype="multipart/form-data">
<input type="file" name="file" />
<input type="submit" value="上传" />
</form>
```
下载文件:
```
<a href="/downloadFile?fileName=${file.name}">${file.name}</a>
```
删除文件:
```
<a href="/deleteFile?fileName=${file.name}">删除</a>
```
相关推荐
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)