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

  • SEARCH
  • Home
  • 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 7161305
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T13:32:42+00:00 2026-05-28T13:32:42+00:00

Here i am sending you my code for simple navigation page…! I am not

  • 0

Here i am sending you my code for simple navigation page…!
I am not putting it into code segment as its executed as HTML code…!

Can anyone tell me the way to get my image in this page along with Text and where i need to put it inside my netbeans project ??

I have created images folder inside /WEB-INF folder…!

/WEB-INF/Images/Forward.jpg Is it correct ??

Code from file nevigation.jsp

<%@page import="java.net.URL"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title> </title>
</head>
<body>
<div style="position: fixed ;bottom:550px;left:600px">
<p>Nevigation Bar </p>
<img src=" ??? " />
</div>
</body>
</html>

I have tried all possiblities….

  1. /images/Forward.jpg

  2. /WEB-INF/images/Forward.jpg

  3. /localhost:8081/Car_Dynamic_Demo/images/Forward.jpg

  4. D:\study\ADVANCE_JAVA\PrOgRaMs\WEB_APPS\Car_Dynamic_Demo\web\WEB-INF\images\Forward.jpg

BUT NOTHING IS WORKING FOR ME…!

IS IT PROBLEM OF MOZILLA FIREFOX ??? OR DYNAMICALLY GENERATED PAGES are faulty somewhere???

Hoping for best and quick solution….!

Thanks….!

  • 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-28T13:32:43+00:00Added an answer on May 28, 2026 at 1:32 pm

    The WEB-INF folder is inaccessible from the outside of the webapp. So, anything that must be downloaded by the browser must NOT be put in this folder.

    The root of the webapp is the folder containing WEB-INF. Put anything in this folder or any subfolder, and it will be downloadable from the browser.

    So, if your JSP and your image are in the same folder, and you invoke the JSP from the browser, the JSP can use a relative path for the image:

    <img src="Forward.jpg"/>
    

    If the JSP is at the root, and the image is inside an images folder (which is at the root), the URL is

    <img src="images/Forward.jpg"/>
    

    If you want to be able to refer to the absolute path of the image , regardless of the URL used to invoke your JSP, you’ll have to use an abolute path. An absolute path must start with a /, and contain the context path of the web app:

    <img src="${pageContext.request.contextPath}/images/Forward.jpg"/>
    

    or, if you use the JSTL (which you should do):

    <img src="<c:url value='/images/Forward.jpg'/>" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I got some sample code from the net here: http://www.javadb.com/sending-a-post-request-with-parameters-from-a-java-class That works fine. It
Using the obsolete System.Web.Mail sending email works fine, here's the code snippet: Public Shared
i'm trying to write simple C openssl client and server. Here is client's code:
**Here is a simple code of chat between two peers. According to me, the
i have a simple Jquery code which is for sending $.ajax request and passing
i'm trying to write simple tcp\ip client-server. here is server code: internal class Program
From My Previous question sending request to apple - from iphone custom application Here,
I was having trouble sending up a url containing accent characters using IE. Here's
Here's a problem I ran into recently. I have attributes strings of the form
Here is my code, which takes two version identifiers in the form 1, 5,

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.