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 8718167
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T06:28:32+00:00 2026-06-13T06:28:32+00:00

I have a dynamic web project named Report that utilizes the default generation strategy

  • 0

I have a dynamic web project named Report that utilizes the default generation strategy employed by Eclipse. I have added a page hello.jsp underneath the WEB-INF directory and have deployed the the J2EE preview server. When the page launches in my browser I am directed to the following URL:
http://localhost:8080/Report

this page has two hyperlinks:

META-INF
WEB-INF

both with sizes of zero (0) bytes. My question is why am I unable to access /Report/hello.jsp? It results in a not found similarly /Report/WEB-INF/hello.jsp also results in a not found exception.

  • 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-06-13T06:28:35+00:00Added an answer on June 13, 2026 at 6:28 am

    Files in /WEB-INF and /META-INF folders are intented for MVC view files, template files, include files, tag files, configuration files, etc, not for public web resources which are intented to be directly accessed by URL.

    Put your hello.jsp outside /WEB-INF folder and access it by /Report/hello.jsp instead.

    WebContent
     |-- META-INF
     |-- WEB-INF
     |    `-- web.xml
     `-- hello.jsp
    

    If you really need to have your JSP in /WEB-INF folder (in order to act as a MVC view), then you need to create a front controller servlet which serves it up by RequestDispatcher#forward(). See also our servlets wiki page for a kickoff example.

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

Sidebar

Related Questions

I have a dynamic web project (JSP) on Eclipse that runs on a tomcat
I have created a dynamic web project in Eclipse, but when I set up
I have created a Dynamic Web Project in my Eclipse workspace. It is also
I have created simple Java Dynamic Web project in Eclipse. I host my project
I have a modular Dynamic Web Project in Eclipse. When I try to publish
I have set up a dynamic web project in Eclipse with a Tomcat 5.5
I've created a Dynamic Web Project in Eclipse. I have 2 beans, 1 @Entity
I created in Eclipse dynamic web project, I have index.html in WEB-INF folder. I
In Eclipse I have my Dynamic Web Project configured with Maven taking care automatically
I have a Eclipse Dynamic Web Project which host a simple servlet and runs

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.