aspose file tools*
The moose likes Servlets and the fly likes Possible solution if image can't be loaded Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Possible solution if image can Watch "Possible solution if image can New topic
Author

Possible solution if image can't be loaded

Timothy Sam
Ranch Hand

Joined: Sep 18, 2005
Posts: 746
Hi, I have a servlet that loads an image. I was wondering... What could be the best solution in case an exception happens(There is no image)? Please advice... Thanks!


SCJP 1.5
http://devpinoy.org/blogs/lamia/ - http://everypesocounts.com/
pawank gupta
Ranch Hand

Joined: Jun 07, 2006
Posts: 34
what actually servlet do its uploaded r downloaded
Timothy Sam
Ranch Hand

Joined: Sep 18, 2005
Posts: 746
Yes, so maybe I could just forward to an image URL then?
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

What do you mean when you say "loads an image"?
What exactly does this servlet do?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Possible solution if image can't be loaded
 
Similar Threads
Getting problem in using <img> tag in jsp
Printing a BufferedImage
how to retreive an image from server location
I want to hide the image location while viewing the source of the page
Code for binary file to bitmap file conversion