JBoss Community

Re: How do dynamically load the images in JBoss AS 7

created by Peter Johnson in Beginner's Corner - View the full discussion

I would do this by defining a system property which you can use to define the directory containing the images. I would write a servlet that uses the directory location and image file name, opens the image file and writes it to the repsonse output. The servlet will also have to change the response mime type to correspond to the image type.

Search the net for "return image from servlet", there are lots of examples.

Reply to this message by going to Community

Start a new discussion in Beginner's Corner at Community