File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes upload file not working !! Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "upload file not working !!" Watch "upload file not working !!" New topic
Author

upload file not working !!

ramu av
Greenhorn

Joined: Feb 25, 2003
Posts: 28
i have written two programs to upload files through JSP. but it is not working. please see if u could help
cliet prog:
<html>
<head>
<title>New Page 1</title>
</head>
<body>
<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>
</form>
</body>
</html>

server prog:
<%@ page import="com.oreilly.servlet.MultipartRequest" %>
<%@ page import="java.util.*" %>
<%@ page import="java.io.File.*" %>
<html><body>
<%
MultipartRequest mreq = new MultipartRequest(request,"c:/upload/ ");
out.println("rrr");
%>
</body></head>
thanx in advance.
 
 
subject: upload file not working !!
 
Threads others viewed
jsp:include needs to have "flush=true"
file upload from servlet
How to upload a file using servlets to a webserver
Receives null value
problem in uploading URGENT!! pls help
IntelliJ Java IDE