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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T09:37:51+00:00 2026-06-02T09:37:51+00:00

I am developing a web project in which i call one Java class which

  • 0

I am developing a web project in which i call one Java class which updates the XML file and then i redirect the request to a JSP which displays the contents of that updated XML file. But the updated XML values are not being displayed until i manually refresh the folder which contains that XML file.

Template of my code is..

protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    // TODO Auto-generated method stub
    String instanceName=request.getParameter("instanceName");
    int no_of_days=Integer.parseInt(request.getParameter("days"));

               CopyOfUpdateXmlLicenses obj2=new CopyOfUpdateXmlLicenses(instanceName,     new_free_lic);
    obj2.updateXML_Licesnes();
               long time=new Date().getTime();
    response.sendRedirect("Licenses.jsp?ms="+time); 
}
  • 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-02T09:37:52+00:00Added an answer on June 2, 2026 at 9:37 am

    Thank you all for spending your time on my question.
    I found the root cause for the above mentioned problem.

    There’s no problem with the code, rather with the Eclipse IDE.
    The IDE takes some time to refresh the contents of the workspace. So in the mean time, if our program tries to read the contents of a file which is in the workspace, the changes may not get reflected immediately.
    So try to check the web application by deploying it onto tomcat.

    If you want to execute it in the Eclipse IDE, then go to window-> preferences->general->workspace and select the option “refresh automatically.“

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

Sidebar

Related Questions

I'm developing web page which has main file index.php as follows: include('UserClass.php'); include('html/top.php'); $user
I have a project (Web Application) which I have been developing in C#/ASP.NET, and
I'm developing java enterprise web application using EJB 3.1 and I wonder which technology
Which pattern could be used in web projects? I am developing a wiki project
Which IoC to consider while developing ASP.NET Web application project and what are the
Our team is developing a rather big ASP.NET web project which initially started in
i want to embed maps in a project which includes developing a web portal
I am in the early stages of developing an Azure web project which will
I am developing a JSP project in Eclipse and have chosen File -> New
currently I'm developing in eclipse 3.5 in different project web applications for tomcat 6.0.24.

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.