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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T00:30:53+00:00 2026-06-01T00:30:53+00:00

I have a Java servlet from which I need to send few notifications to

  • 0

I have a Java servlet from which I need to send few notifications to the HTML page before I send the final response (which is a PDF file).

Basically I need to keep the user updating on steps I am performing while generating the PDF for them.

I guess, one way could be set various attributes using HttpSession and have them printed using JS. But I don’t know how to do that dynamically without loading the page again.

Any idea on how can this be done? I am kind of new to JSP and servlets.

  • 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-01T00:30:54+00:00Added an answer on June 1, 2026 at 12:30 am

    There are two ways:

    • AJAX polling – you send ajax requests periodically, and the server responds. The page does not get refreshed. Check jQuery for an easy way to make ajax calls

    • Comet – that’s an umbrella term for what you are trying to do. Usually it means keeping an open channel with the server. There are many ways to implement comet (including the option above), but in Java, on the server side, there are two things to check:

      • Servlet 3.0 asynchronous support
      • Atmoshphere – chooses the best underlying mechanism provided by the container, which includes the async support above
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this java servlet that grabs information from a form, I need to
I have index.jsp from which I get the parameters to servlet LoginServlet.java The servlet
I have a Java servlet which generates XML, translates it with an XSLT stylesheet,
I need to build Android application using Java which is able to send request
I have the following problem. I programmed a java servlet, which responses to ajax
Unix gurus! I have a Java program which passes some parameters to a Servlet
I have a servlet S which handles callbacks from a 3rd party site. The
I have a Java servlet which calls another software (say S) over a TCP
I have a web app built on Java Servlet technology. I am thinking of
I have many years of experience in Java including Swing, Servlet and JDBC, but

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.