-
java code for file uploading
hello,
i want to upload a file(basically a image file of any type) from a jsp page which may reside anywhere(client or server, etc...). then that file will be saved in a specified directory(in server) through the lan. can anybody help me by sending me the java file. i want to use that as class file or a bean in my jsp. then the file name(in server) will be passed as a parameter.
-
What you want to do is a form based file upload. My prefered way to do that is with the Struts support for that functionality. You can also find the O'reilly multipart handler from Hunter's Java Servlets book and use that. (The license for the latter is that you have to purchase a copy of the book; the former is totally free but you have to build your app using the Struts framework, a good idea in the first place.)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks