How display a Image on Servlet from File Upload

Posted 13 December 2008 - 01:14 PM

Dear Sir,
My requirement is I want to display a Image on Servlet from File Upload.
But It not display on servlet,Its appear a downloaded form and downloaded on disk when click on save button.Other thing is that It not a .jpg form.that mean It does not open by photo gallery.that message show file format not supported by Photo Gallary.
I also install I the Live HTTP headers 0.14 from Google in Firefox.
I run the weblogic on Firefox and run that progarm but same issue persist.
I also used Internet Browser,but problem are not solved.
I already download comman-file upload-1.2.1.jar and comman-io-1.4 in lib folder and set this on classpath.
I try to solve that problem from a long time But Issue are not resolved.
Can you help me Please..
Here my files:
Home.html: