I shall? Why? I don't have any problems with redirects... :)
>From: Elango Palani <[EMAIL PROTECTED]> >Reply-To: A mailing list about Java Server Pages specification and >reference <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: Re: sendRedirect() from within a <jsp:include>? >Date: Mon, 20 May 2002 19:12:19 +0530 > >Hai Joseph Ottinger, > >You shall try with ><jsp:forward> syntax. Hope this will solve your issue. > >.--------------------------------------------------------------------------- >---------------------------------------------------------------------------- >-------------------------. > > (),,,() > ( (. .) .-''''''''''-. > ( o ) ) ( 'o' ) >=(,,)=(,,)=(,,)==(,,)= > >Achievement don't have any boundaries ....... Even sky is not the limit, >there are many more things even beyond the sky. > >Keep going on ..............................Keep Smiling too........ also >Make others to Smile............. > >Regards > >Elango Palani. >----- Original Message ----- >From: Joseph Ottinger <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Sent: Monday, May 20, 2002 4:19 PM >Subject: Re: sendRedirect() from within a <jsp:include>? > > > > Gah! The problem is that sendRedirects have to take place before any >output > > is spooled to the client. It's a HEADER. One would hope your container >would > > massage the output and cache the body content until it needs to send it >down > > the line, but apparently it's not doing that. > > > > Thus, the <html> is the problem. > > > > > > >From: Bhushan_Bhangale <[EMAIL PROTECTED]> > > >Reply-To: A mailing list about Java Server Pages specification and > > >reference <[EMAIL PROTECTED]> > > >To: [EMAIL PROTECTED] > > >Subject: Re: sendRedirect() from within a <jsp:include>? > > >Date: Mon, 20 May 2002 15:40:23 +0530 > > > > > >Before the forward call you should not write anything to the response > > >object. If you will write anything to response object and then you will > > >forward to some other URL then you will always get the error. > > > > > >-----Original Message----- > > >From: Jay Burgess [mailto:[EMAIL PROTECTED]] > > >Sent: Friday, May 17, 2002 9:57 PM > > >To: [EMAIL PROTECTED] > > >Subject: sendRedirect() from within a <jsp:include>? > > > > > > > > >Obviously I'm missing some important detail about the mechanics of >using > > ><jsp:include>. > > > > > >I've got a JSP with nothing in it but a > > >"<html><jsp:include>,,,</jsp:include></html>". The "page" for the > > ><jsp:include> is a direct call to my servlet. The only thing my >servlet > > >does is a sendRedirect() to another page. > > > > > >When I request my JSP, I get back just "<html></html>", which means the > > >redirect failed, the <jsp:include> did nothing, and I didn't get any > > >exceptions (like an IllegalStateException showing the response was >already > > >committed). > > > > > >What am I missing about trying to do things this way? BTW, I'm using > > >Tomcat 4.0.3. > > > > > >Jay > > > > > > >=========================================================================== > > >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://archives.java.sun.com/jsp-interest.html > > > http://java.sun.com/products/jsp/faq.html > > > http://www.esperanto.org.nz/jsp/jspfaq.jsp > > > http://www.jguru.com/faq/index.jsp > > > http://www.jspinsider.com > > > > > > >==========================================================================T >o > > >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://archives.java.sun.com/jsp-interest.html > > > http://java.sun.com/products/jsp/faq.html > > > http://www.esperanto.org.nz/jsp/jspfaq.jsp > > > http://www.jguru.com/faq/index.jsp > > > http://www.jspinsider.com > > > > > > > > > > ----------------------------------------------- > > Joseph B. Ottinger [EMAIL PROTECTED] > > http://enigmastation.com IT Consultant > > > > > > _________________________________________________________________ > > Chat with friends online, try MSN Messenger: http://messenger.msn.com > > > > >=========================================================================== > > 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://archives.java.sun.com/jsp-interest.html > > http://java.sun.com/products/jsp/faq.html > > http://www.esperanto.org.nz/jsp/jspfaq.jsp > > http://www.jguru.com/faq/index.jsp > > http://www.jspinsider.com > > > >=========================================================================== >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://archives.java.sun.com/jsp-interest.html > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.jsp > http://www.jguru.com/faq/index.jsp > http://www.jspinsider.com _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com =========================================================================== 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://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
