You cannot use FORWARD if you have sent data to the client, in this
case you sent the form before you forguard to other page. You need to
use bufferred output or check the condition before.


Bye,  Dani

----- Mensaje Original -----
De: S Ramakrishnan <[EMAIL PROTECTED]>
Fecha: Viernes, Enero 19, 2001 2:53 am
Asunto: Exception with jsp:forward

> Hi -
>
>
> I have a page that posts a form and based on the
> input forwards to a different page:
>
>  # bajji.jsp
>  <form action="bajji.jsp>
>  <input type="text" name="sname" value="">
>  </form>
>
>  <% String s = request.getParameter("sname");
>    if (s.equals("silk")) {
>   %>
>     <jsp:forward page="silksmitha.jsp" />
>   <% } %>
>
>
> Hence if the input is "silk" the request is forwarded to
> silksmitha.jsp.The jsp:forward directive issues an exception that
>
> java.io.IOException: Error: Attempt to clear a buffer that's
> already been
> flushed
>
>
> Is this because the output has been already partially written to
> before the jsp:forward?
>
> Thanks,
>
> Rk
>
>
========================================================================
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-
> INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>


________________________________________________________________
Aprovechamos este mensaje para desearte una FELIZ NAVIDAD.
Entra en http://www.navidad.navegalia.com/ y descubre las sorpresas que
Navegalia tiene para esta Navidad.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to