It seem request dispatchers just don't work.. if I take the .forward off I don't get into the loop.. but the page still isn't reloading the new page.
I'm at a complete loss :( anyone got any ideas? aNt > -----Original Message----- > From: [email protected] [mailto:[EMAIL PROTECTED] > Sent: 01 November 2005 16:49 > To: [email protected] > Subject: [magnolia-user] forwarding to page- a simple one > > Hello again :) > > Just another little one that seems to be keeping me up all night... > > public void redirect(HttpServletRequest req, HttpServletResponse resp, > String page) { > > try { > req.getRequestDispatcher(page).forward(req, resp); > } catch (IOException ex) { > System.out.println("IOException: " + ex); > } catch (ServletException ex) { > System.out.println("ServletException: " + ex); > } > } > > > This is in my little Bean that forwards me to other pages when stuff > happens. Just it doesn't do it. It returns to this page in a super loop, > until the stream is closed. I pass in data to this call like this: > > redirect(req, resp, "/home/page1.html"); > > as being that's the page I want this one to jump to. But its just not > happening. :( > > anyone tell me where ive been a muppet? > > Ta > > aNt > > > ---------------------------------------------------------------- > for list details see > http://www.magnolia.info/en/magnolia/developer.html > ---------------------------------------------------------------- ---------------------------------------------------------------- for list details see http://www.magnolia.info/en/magnolia/developer.html ----------------------------------------------------------------
