David,
I kinna understand what you meant, because I experienced this myself. However, I
didn't
under stand why. So, can you explain clearly what 'too late' is, in detail?
Thanks,
David Mankin wrote:
> >
> > > > -----Original Message-----
> > > > From: Jeff Brown [SMTP:[EMAIL PROTECTED]]
> > > > Subject: Redirect w/ JSP
> > > >
> > > > Does anyone know what the equivalent of:
> > > >
> > > > <% Response.Redirect("somepage.html") %>
> > > >
> > > > is in JSP?
> > > >
>
> >"Williams, Wes" wrote:
> > >
> > > Jeff,
> > >
> > > I was just going to post your exact question today. Would any who answer
> > > Jeff also please cc: me as well? I am new to the list and am unsure if this
> > > has been discussed before.
> > >
>
> Craig R. McClanahan wrote:
> >
> >The direct replacement for <% Response.Redirect("somepage.html") %> would be:
> >
> > <% response.sendRedirect("somepage.html"); %>
>
> If you are going to use this technique there is one thing you have to
> watch out for: if your page has outputted any data to the browser,
> then it is Too Late to redirect. If you have no page buffering
> turned on, this means that ANY output is sent to the browser, so if
> your file doesn't start with a "<%" it'll be too late. If you have
> page buffering, it's too late as soon as you fill up the buffer.
>
> Or at least that's the way I believe it all works.
>
> -David
>
> >
> >However, you ought to also investigate using <jsp:forward> instead.
> >It bypasses the extra round trip to the client browser and displays
> >the "somepage.html" content directly. See the JSP tutorials at the
> >JavaSoft web site, and the tutorials included with JSWDK, for more
> >information.
> >
> >Craig McClanahan
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> FAQs on JSP can be found at:
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html