How will the images be accessed by the user? Will the web page contain links directly to the images, or will the web page contain a link to a servlet that will then access and return the image?
If the former, then you should deploy an expanded ear file (as a directory) with an expanded war file (as a directory), and create a directory within the war directory and place the images there. For example, you might place an image at ./server/xxx/deploy/myapp.ear/mysite.war/images/picture.gif. Then the URL to access it would be /images/picture.gif. Your code can locate this directory by using the jboss.server.home.dir system property, with the string ?/deploy/myapp.ear/mysite.war/images/? appended. If the later, you could create a subdirectory under ./server/xxx/data and place images there. Your code can use the jboss.server.data.dir system property to locate the data directory and then append the subdirectory name to that. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3950199#3950199 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3950199 _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
