loading images on remote system in jsp

In my current requirment i will upload a image to remote system .

example:

////xyz/testapp/ - remote system

current application in tomcat

webapps\testapp

If i upload 123.gif to "////xyz/testapp/ " path.later If i want to show this image in jsp file.

What are possiable solutions to achive this requirment.

Regards,

Raghu

[382 byte] By [raghuveer_vellankia] at [2007-11-27 11:17:35]
# 1

The Apache Commons FileUpload API is nice.

http://jakarta.apache.org/commons/fileupload/

BalusCa at 2007-7-29 14:25:50 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

i am already using commons for upload to remote syste.

My requirment is to display the uploaded images on remote system in jsp page.

In each jsp page there can be 10 images to be displayed one after the other.

raghuveer_vellankia at 2007-7-29 14:25:50 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

Just show them using <img src> ?<img src="/webapp/images/foo.gif">

If the images are uploaded to a path outside the webcontainer, then you need to create kind of an ImageServlet.

Here you can find an example: http://balusc.xs4all.nl/srv/dev-jep-img.html

BalusCa at 2007-7-29 14:25:50 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...