File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Image preview with upload Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Image preview with upload" Watch "Image preview with upload" New topic

Image preview with upload

amit lkumar

Joined: Mar 06, 2009
Posts: 4
Hi I am JSP, Servlet along with the jquery to upload an image and preview it. I am stuck at a point and unable to getit.

My JSP code looks like:

My Servlet code looks like:

Can anyone please help me out. The control flows from jsp to servlet but then it does not move back to jsp.
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965

} catch(Exception ex) {

If you're trying to track down a problem, then what's with the empty catch blocks? How will you know which problems there are?
I agree. Here's the link:
subject: Image preview with upload
jQuery in Action, 3rd edition