I'm trying to pass arguments to a new page by placing the url in the sendRedirect method. It doesn't throw an error but just stops. What do you think could be wrong? The url is correct but it doesn't even get to the doGet()! The url works if I type it into the browser manually. Thanks for any help!
I was talking about the output stream. i was using it to print out debug statements. Once it is at the browser(printing the debug statements), you can't redirect. By connection object, i meant a custom made-connection object, and I meant take the debug statements out -- sorry to confuse
When you use sendRedirect in Servlet your response and Request are not carried forward to next page . Use RequestDispatcher .. ServletContext sc = getServletContext(); RequestDispatcher rd = sc.getRequestDispatche("URL"); rd.forward(req,res);