Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

upload file not working !!  RSS feed

Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have written two programs to upload files through JSP. but it is not working. please see if u could help
cliet prog:
<title>New Page 1</title>
<form method="POST" ENCTYPE="multipart/form-data" action="upload.jsp">
<p><input type="file"><input type="submit" value="upload" name="B1">
<input type="reset" value="Reset" name="B2"></p>

server prog:
<%@ page import="com.oreilly.servlet.MultipartRequest" %>
<%@ page import="java.util.*" %>
<%@ page import="*" %>
MultipartRequest mreq = new MultipartRequest(request,"c:/upload/ ");
thanx in advance.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!