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.
>
Your understanding is correct, and this is also true if you use <jsp:forward>.
However, you can set the size of the buffer in the <%@ page %> directive so that
this does not cause you a problem.
>
> -David
>
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