Hi Simon
Thx for the action n reply.

Please excuse for the inconveniences causes.
As I have to be away for 2 weeks will only try out the propose solution once

I am back.
Thx all once again.
Choo Yew Beng



Kitching Simon wrote:

> Hi,
>
> I really can't see what you are trying to achieve here.
> What you have here appears to me to be infinite
> recursion.
>
> Maybe you need to look at the definition of what
> jsp:forward does (see the sun jsp/servlet specs).
>
> Maybe you really meant to use jsp:include??
> or you just are trying to set the URL that a
> form gets submitted to (output the appropriate
> url in the <form action=someurl> tag)??
>
> If you still can't figure this out, then I suggest
> you send an email describing what you are
> trying to do with this code...
>
> Regards,
>
> Simon
> > -----Original Message-----
> > From: Wyn Easton [SMTP:[EMAIL PROTECTED]]
> > Sent: Friday, November 10, 2000 12:37 PM
> > To:   [EMAIL PROTECTED]; [EMAIL PROTECTED]
> > Subject:      Re: <jsp:forward
> >
> > Looks like when you forward to a JSP that you have not been to,
> > the JSP engine knows how to handle the "out" stream, but when you
> > go back to the same JSP the class is probably being reused and "out"
> > already exists and you get the error. Just a guess.
> > I'm pretty sure you should not close "out" until you exit the last
> > JSP. You do not need to close "out" actually, it is done for you.
> >
> > Maybe your problem is like the old saying "You can never go home" :->
> >
> > --- Choo Yew Beng <[EMAIL PROTECTED]> wrote:
> > > Hi Gurus In Jakarta Project,
> > > I had the following question:
> > > 1.jsp
> > > <form name="1a" action="1.jsp">
> > >   .... .... ....
> > >   .... .... ....
> > >   .... .... ....
> > >  <jsp:forward page="2.jsp" flush="true" />
> > > </form>
> > > 2.jsp
> > > <form name="2a" action="2.jsp">
> > >   .... .... ....
> > >   .... .... ....
> > >   .... .... ....
> > >  <jsp:forward page="3.jsp" flush="true" />
> > > </form>
> > > 3.jsp
> > > <form name="3a" action="3.jsp">
> > >   .... .... ....
> > >   .... .... ....
> > >   .... .... ....
> > >  <jsp:forward page="1.jsp" flush="true" />
> > > </form>
> > > When I tried to get back to 1.jsp, response error occur.
> > > Writer or outputstream has been committed blah blah blah.
> > >
> > > I tried response.getWriter().close() and
> > > response.getOutputStream().close().
> > > I even tried out.close but none work.
> > > Can someone please advice on the above and how to go about resolving
> > > the
> > > problems?
> > > Thx n look forward to a favorable reply if any?
> > > Choo Yew Beng
> > >
> >
> >
> > =====
> > Wyn Easton
> > [EMAIL PROTECTED]
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Thousands of Stores.  Millions of Products.  All in one Place.
> > http://shopping.yahoo.com/

Reply via email to