facebook

image file directory – where to place?

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #232238 Reply

    pir8ped
    Member

    Hi,

    I have an app that allows users to upload images to a the server.

    Where should I place the images directory? If I use a directory outside of the webapps directory , I can’t use relative urls to show the images in jsp pages. If I use a directory under the webapps directory, it is destroyed with each rebuild of the app.

    Maybe I could prevent the images folder being deleted during rebuilds? But how?

    Thanks,

    John Pedersen

    #232251 Reply

    Scott Anderson
    Participant

    John,

    Maybe I could prevent the images folder being deleted during rebuilds? But how?

    The deployer will always deploy the entire application, as is in your development environment. There isn’t a facility to merge with what’s already on the server, if that’s what you’re asking. About the only workaround I see creating your image directory as another simple webapp on the same server and then using a full redirect to that directory, rather than a project relative URL.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: image file directory – where to place?

You must be logged in to post in the forum log in