I'm almost positive you can't.  I investigated this quite a bit and all of
the sources I consulted said it couldn't be done.  You can specify a target
in an HREF tag or in a form, but not in a servlet redirect.

-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Alan Goodenough
Sent: Wednesday, March 15, 2000 11:03 AM
To: [EMAIL PROTECTED]
Subject: Re: sendRedirect or forward?


on a similar train of thought, is it possible to sendRedirect to another
window or frame??

alan
----- Original Message -----
From: Shannon Moschetti <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 14, 2000 5:43 PM
Subject: Re: sendRedirect or forward?


> I've been using sendRedirects because I'm not certain how to send
parameter
> information with jsp:forward.  If I wanted to do something like:
> response.sendRedirect("MyJSP.jsp?param1=23") how would I do this with
> forward?  It doesn't seem to work when I do the following: <jsp:forward
> page="MyJSP.jsp?param1=23" />.  When I try to get param1, I get a null.
>
> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Kevin Jones
> Sent: Saturday, March 11, 2000 12:57 PM
> To: [EMAIL PROTECTED]
> Subject: Re: sendRedirect or forward?
>
>
> sendRedirect causes a round-trip to the browser and back, and round-trips
> are evil.
>
> You'll nearly always prefer forwards (or includes) over re-directs.
>
> Kevin Jones
> DevelopMentor
> www.develop.com
>
> > -----Original Message-----
> > From: A mailing list about Java Server Pages specification and reference
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Kevin Duffey
> > Sent: 10 March 2000 07:03
> > To: [EMAIL PROTECTED]
> > Subject: sendRedirect or forward?
> >
> >
> > Hi,
> >
> > I am curious, using JSP and all..is it better to FORWARD to
> > another page, or
> > use the response.sendRedirect(). I notice a strange side effect
> > in using the
> > forward in that the URL of the browser no longer reflects the
> > page returned
> > when using forward. Doesn't seem to be a big deal to me, and I now its
> > faster to return a page, then round-robin to the browser and back
> > again. Is
> > there any way to maybe update the URL of the browser to show the new
page?
> > Or is this the norm when forwarding? I was curious how Model 2 JSP
> > developers handle this situation, as they probably forward to a
> > page rather
> > than redirect.
> >
> > Am I correct in that forwarding is a performance enhancement because it
> > saves the client from hitting the server twice? Also, could this be the
> > reason Netscape sends TWO forms (submits) often, rather than
> > one..or is that
> > a Netscape bug others have seen? Odd that When people submit a form with
> > MSIE, its fine, but Netscape seems to submit the form twice.
> >
> > Thanks.
> >
> > ==================================================================
> > =========
> > 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
>
>
===========================================================================
> 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

===========================================================================
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