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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T17:38:16+00:00 2026-06-16T17:38:16+00:00

I am currently working on a file conversion program, once the file has been

  • 0

I am currently working on a file conversion program, once the file has been uploaded it will convert the file to different file formats(ppt,pdf) this will usually take long depending on the file size. Since the file conversion is happening on the back end, I want the user to see the progress of the file conversion( something like progress bar eg “52% file being converted”) is there anyway I can display to the user the current progress of the file conversion(that’s happening on the back end)? During file conversion I am only able to show the status(in numbers(provided by the API I am using))

I have no idea where to start can someone provide some insight or approach?

  • 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-16T17:38:17+00:00Added an answer on June 16, 2026 at 5:38 pm

    If you are using Struts2 take a look at Execute and Wait Interceptor. It creates new thread with your task which will be executed in the background while you can show some progress to the user.

    In struts.xml file add execAndWait interceptor to your long running action and define two results wait and success.

    <action name="longRunningAction" class="...">
      <interceptor-ref name="defaultStack"/>
      <interceptor-ref name="execAndWait"/>
      <result name="wait">longRunningAction-wait.jsp</result>
      <result name="success">longRunningAction-success.jsp</result>
    </action>
    

    You still need to poll this action in your JSP via AJAX or simple page refresh.

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

Sidebar

Related Questions

hi as im currently working with conversion of PHP file to PDF file. i
I'm currently working with a lot of different file types (txt, binary, office, etc).
I'm currently working on a console application that will pass a vcxproj file and
I had been doing some file IO in a project i am currently working
I'm currently working on a project which will support multiple file writing specifications (imagine
I am currently working with a file name and I need to get the
I am currently working on a html file that prompts you to enter a
I am currently working on a script which processes a csv file, and corrects
PHP CLI has suddently stopped working on the server. When running any php file
I am very new in node.js. I am currently working on a file upload

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.