When I try to use sendRedirect() in a jsp file, I found content in my original jsp's out.write() is replaced by the new jsp file's. Is there anyway not allowing this replacement? Or could we use other method to avoid the replacement when we want a jsp to call another?
SCJA, SCJP5.0, SCBCD, SCWCD
posted 10 years ago
You need to use RequestDispatcher.include(req,res) for this