This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes externalize resources from webapp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "externalize resources from webapp" Watch "externalize resources from webapp" New topic
Author

externalize resources from webapp

Adrian Precub
Greenhorn

Joined: Jan 31, 2008
Posts: 11
Hello,

I have a web app in which the user uploads some images to the server.

Currently the upload is done in the deployed dir of the war file and every time i restart the server i lose all the uploaded pictures.

I understand that JBoss AS has a directory name data in server/default/data in which i can save the pictures and i do that.

My problem is that i don't know how to retrive those pictures and display them in a jsp.

From the servlet i set a bean on the request that contains a name a price and i want it to contain a path to an image in the data folder .

Can you please tell me how i can do that?

Thank you


SCJP 1.5 SCWCD 5
Adrian Precub
Greenhorn

Joined: Jan 31, 2008
Posts: 11
Never mind, i solved the problem
If anyone is interested i found the solution here http://community.jboss.org/wiki/ExternalDirectories
 
Consider Paul's rocket mass heater.
 
subject: externalize resources from webapp
 
Similar Threads
pictures in a jsp
slide show in jsp
SOAP Attachment equivalent in REST
I am close to submit - quetions
How applet talk to another applet