Thanks, but nope, wasn't doing any redirects either.

Actually, I've been using the JRUN Studio 3.0 beta from Allaire over the
last week, and, though I still don't know why, it does show via color-coding
schemes that the <jsp:forward> tag just ain't right in certain places in the
code.  The <jsp:> tags which are between the %> and %< tags (not in Java
code) are displayed in red, while the Java code is in black and blue (which
is what some of us look like after a lot of JSP tinkering.)  The
<jsp:forward> tag shows in red when above or within the <HEAD> tag, but not
when within the <BODY>.  I haven't read an explanation for this anywhere,
but at list this tool is telling me it WON'T be interpreted correctly, even
if it doesn't tell me WHY.

FYI

-----Original Message-----
From: Bip Thelin [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 09, 2000 11:50 AM
To: [EMAIL PROTECTED]
Subject: Re: jsp:forward and UNIX Problems


> > As a general rule, though, the forward tag seems to work much
> > better when it is used early on (before the <HTML> tag) in the JSP.
>
> Yes, this is true. And it seems to be the same with
response.sendRedirect()
> as well.
>
> Very strange indeed. Or does any of you have a good explanation?

If you've outputed a header to the client you can't redirect
_after_ that, that is you can't redirect when a header i.e
Content-type: text/html has been written to the client, unless
you've buffered your output. Since a response.sendRedirect()
sends a header stating the client to redirect(ASIS).

        ..bip

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
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

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
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