This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes uploading of files from html to server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "uploading of files from html to server" Watch "uploading of files from html to server" New topic

uploading of files from html to server

Debashish Bhattacharjee

Joined: Aug 04, 2008
Posts: 1
Hi all.I am making a small application where in a user can upload his/her file into the server.The pages generated in this are from servlets(dont scold :-).I have got 2 servelts in the application.I am pasting my code.Please suggest if anyone can help...
First Servlet

Code for Second Servlet

Everthing is working except that..the file selected from the html doesn't seem to reach the servlet.Pleaseeeeeeee help....

web xml code..(not taking any chances...)

[ August 04, 2008: Message edited by: Bear Bibeault ]
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60732

There is a FAQ entry in the JSP FAQ on this subject. See the top of the JSP forum for a link.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
It is sorta covered in the JavaRanch Style Guide.
subject: uploading of files from html to server
Similar Threads
really simple servlets,but why second one not work
Tomcat problem
Http 404 Error
Can't get RequestDispatcher forward() method or response.sendRedirect() to work
Starting out on Servlets - from Head First Servlets and JSP