- 博客(6)
- 收藏
- 关注
原创 文件上传与下载
一、表单文件上传至本地依赖jar包:comments-fileupload.jar comments-io.jar1、form表单<form action="uploadServlet" enctype="multipart/form-data" method="post"> 文件编号:<input type="text" name="fno"/> 文件:<input type="file" name="file"/></form>
2021-12-15 11:04:24
1526
原创 表单中,动态改变action时的404----路径错误
①一般的 WEB-INF外的前目录为webapp主目录的:Servlet中 @WebServlet(“/xxxServlet”) JSP中 action("xxxServlet");②jsp在WEB-INF外,但在主目录webapp子目录中的: 如: webapp/login/login.jsp则, @WebServlet(“/xxxServlet”) JSP中 action("../xxxServlet");或者 @WebServlet(“/login/xxxServlet”)JSP中 a
2021-12-06 00:26:20
259
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人