• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

externalize resources from webapp

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Adrian Precub
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Never mind, i solved the problem
If anyone is interested i found the solution here http://community.jboss.org/wiki/ExternalDirectories
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic