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

Reply via email to