Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4604568
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T00:18:51+00:00 2026-05-22T00:18:51+00:00

I am relatively new at Java EE and have just gotten familiar with the

  • 0

I am relatively new at Java EE and have just gotten familiar with the traditional application directory structure (which includes the BUILD, DIST, NBPROJECT, SRC, and WEB folders). I was wondering: if my application requires to use some resources/assets (such as images or pdfs) on the server, in which of the 5 folders listed above should I place those resources? I think I can technically place them anywhere, as long as I reference the files correctly, but not sure what the common best practice is for this.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T00:18:52+00:00Added an answer on May 22, 2026 at 12:18 am

    You would usually include static content e.g. images or PDFs which need to be read by http requests in WebContent e.g. if my-web is your WAR project:

    my-web/WebContent/images
    my-web/WebContent/scripts
    my-web/WebContent/misc
    

    This means you can access using for example:

    /my-web/images/bob.jpg
    /my-web/scripts/bob.js
    /my-web/misc/bob.pdf
    

    Storing the files here allows public access. I will quote this from the Eclipse help pages:

    The Web content folder represents the
    contents of the WAR file that will be
    deployed to the server. Any files not
    under the Web content folder are
    considered development-time resources
    (for example, .java files, .sql files,
    and .mif files), and are not deployed
    when the project is unit tested or
    published.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm relatively new to java (specifically swing) and have recently been making some fairly
I'm relatively new to Java, so I have little to no idea where to
I'm a relatively new Java programmer coming from C++/STL, and am looking for a
I mostly use Java and generics are relatively new. I keep reading that Java
I'm relatively new to Threading in Java and I've noticed that everytime I use
I'm relatively new to C++. In Java, it's easy for me to instantiate and
Note: I'm relatively new to Objective-C and am coming from Java and PHP. Could
I have written a C++ application, which I built using g++. For the purposes
I am new to Java programming / Android development - but I have been
I am relatively new Java developer that's been thrown in the deep end, my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.