[jboss-user] [Beginner's Corner] - Re: How do dynamically load the images in JBoss AS 7
Peter Johnson
do-not-reply at jboss.com
Mon Apr 16 10:50:12 EDT 2012
Peter Johnson [https://community.jboss.org/people/peterj] created the discussion
"Re: How do dynamically load the images in JBoss AS 7"
To view the discussion, visit: https://community.jboss.org/message/730311#730311
--------------------------------------------------------------
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
[https://community.jboss.org/message/730311#730311]
Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120416/fe80b9e1/attachment.html
More information about the jboss-user
mailing list