IntelliJ Java IDE
The moose likes JSP and the fly likes change file name Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "change file name" Watch "change file name" New topic
Author

change file name

ramu av
Greenhorn

Joined: Feb 25, 2003
Posts: 28
hello,
please see the following code.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<%@ page import="com.oreilly.servlet.MultipartRequest" %>
<%@ page import="java.util.*" %>
<%@ page import="java.io.File.*" %>
<html>
<head>
<title>upload file test JSP</title>
</head>
<body>
uploaded <br>
<%
MultipartRequest mr = new
MultipartRequest(request,"c:/upload/",10000,?);

%>

</body>
</html>

the text book says:
public MultipartRequest(javax.servlet.http.HttpServletRequest request,
java.lang.String saveDirectory,
int maxPostSize,
FileRenamePolicy policy)
throws java.io.IOException
please teel me hoe to upload the clients file with a different filename.
thanx in advance
 
 
subject: change file name
 
Threads others viewed
servlets-urgent pl reply
send a file to the server/ multipart request
How to upload a file using servlets to a webserver
upload file not working !!
problem in uploading URGENT!! pls help
IntelliJ Java IDE