hi i developed a servlet using resin and the servlet worked well. but when i tried to run it in tomcat, a "Document Moved" error occurred then displays a hyperlink to the correct page and the page is correctly displayed. is there a workaround here? thanks.
posted 16 years ago
hi folks, got the solution... i just placed
out.close(); return; i discovered that after send.Redirect(url) displays the url, it still performs the operation after the statement. although out.close() is enough to solve the "Document Moved" problem i still opted to include the return statement so the servlet will stop executing the rest of the statements after send.Redirect. hope this will also help others.
Won't you please? Please won't you be my neighbor? - Fred Rogers. Tiny ad: