In "MyServlet.java" 's doGet method, I called another class's method which utilizes the following codes
FileInputStream file = new FileInputStream("inputFile"); Properties p = System.getProperties();
p.load(file);
System.setProperties(p);
String var = System.getProperty("VAR");
...
....
Notice the above codes are in ANOTHER class's method and "MyServlet.java" just called it, but I found immediately after it calls this method, the HttpServletResponse object is no longer functioning properly. For example,
response.sendRedirect("URL");
has not ANY effect at all.
By the way, i found the "var" does get the correct results. So the "System.getProperty()" does get right result.
Do you know what's the reason for the response object's lost ?
Thanks lot,
Ian