servlets thread: Redirecting........
the send redirect just works by sending a redirect message to the browser, I
cant remember the HTTP code for that. If you want to explicitly stop
executing you should call return() or something similar, as the servlet will
continue to execute.
chanoch
-----Original Message-----
From: Balachandar [mailto:zenithbala@h...]
Sent: 11 May 2001 12:22
To: Servlets
Subject: [servlets] Redirecting........
How is the HttpServletResponse.sendRedirect(URL) implemented internally?
I use supporting classes in a Servlet(for UI Generation and DB
Interaction) and
suppose i want to redirect from those classes how do i do that?
I tried passing the HttpServletResponse object to the supporting class and
invoking the sendRedirect() method, it redirects, but doesn't stops there,
it continues executing the rest of the code, that's is after the re-
direct, which should not happen.
any solutions?