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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T16:16:13+00:00 2026-06-12T16:16:13+00:00

I need to display the multiple images onload which are stored in the server

  • 0

I need to display the multiple images onload which are stored in the server , the database contains the filepath and filename .the servlet would query the sql server to get the filenames.

i need to do that on home.jsp .

when i use the below code browser shows onLoadDisplayImages as url , i want to use it using ajax and should stay in home.jsp . please help.

<script language="javascript">
function OnStartup(){
    var url = "onLoadDisplayImages";
    document.location.href='onLoadDisplayImages';
}
window.onload = OnStartup;
</script>

onLoadDisplayImages is servlet which just returns the filename .

below is the code

String imageUrl = "images/siguptop.JPG";
response.setContentType("text/plain");
response.getWriter().write(imageUrl);
  • 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-12T16:16:14+00:00Added an answer on June 12, 2026 at 4:16 pm

    Use Ajax to load your images. http://api.jquery.com/jQuery.get/

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

Sidebar

Related Questions

I need to display multiple images from a database table and bind it to
I have a project in which I need to display multiple UITableView instances inside
I need to display some images which can be scrolled horizontally. Only one image
I need to display multiple images for a a car from a separate linked
I need some help finding a jQuery solution to display multiple images in a
i need to get multiple circle images when i click button. and i done
i´m trying to display multiple divs with the images of a repeater field (ACF
i need to display images and play corresponding audio files one after the other.
I need to display thumbnails of images in a gridview in 4 columns like
I have a php page. This has multiple images which looks like tabs. With

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.