This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
    Bookmark Topic Watch Topic
  • New Topic

problem in uploading URGENT!! pls help  RSS feed

 
ramu av
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • 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:
<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.
 
Jason Menard
Sheriff
Posts: 6450
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not post the same message in more than one forum. As you have also posted this in the more appropriate JSP forum, I am going to close this one.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!