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

The Archive Base Latest Questions

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

I have a jsp/servlet based web app. I have a button Clean Up which

  • 0

I have a jsp/servlet based web app.

I have a button “Clean Up” which calls a servlet and the request goes till DAO class.DAO class performs different DB activities like, moving data from Master table to backup table, then deleting data from master table etc.

As of now this activity is Synchronous and user needs to wait until a response is sent.

I want to implement the same scenario as an Asynch task with user just getting a message as
” Clean Up Activities Triggered”

What could be the best/easiest way to perform this task. I cannot use scheduler.

My Container is TomCat.

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

    Simplest but a different solution for this could be to use some AJAX behavior in the client side. There are lot of simple/powerful frameworks(JS files) to help you achieve AJAX in your page. Using AJAX, you just submit the request asynchronously and display the client side message “Clean Up Activities Triggered”, while request is being processed in the server side. If user wait, server process will return and display a “success” message otherwise user is free to navigate other pages or perform other actions.

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

Sidebar

Related Questions

I have been developing a plain JSP/Servlet web application, which focuses mainly in collecting
I have a servlet which takes us to an existing jsp, say home.jsp. This
I have a view resolver: <bean id=jspViewResolver class=org.springframework.web.servlet.view.InternalResourceViewResolver> <property name=viewClass value=org.springframework.web.servlet.view.JstlView/> <property name=prefix value=/WEB-INF/jsp//>
I have simple web application based on JSP. Root of application looks like this:
I have developed a web application using using servlet and JSP. I am not
I have two jsp pages and one servlet. When user clicks submit button then
I'm working on a Java based web app which will consist of a couple
I have a website ( based on JSP/Servlets, using the MVC pattern), and I
I have a simple jsp/servlet application and I want to add AJAX feature to
Begining with JSP and servlet development, I have some problems with a bodyless custom

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.