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.
我的法典有缩影。
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);
}