SendRedirect and forward are very different beasts, don't confuse them!

SendRedirect will cause an extra roundtrip to get the page (and roundtrips
are evil), whereas forward is effectively a function call to another servlet
within the same server,

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 Deepak Kumar
> Sent: 04 January 2001 06:19
> To: [EMAIL PROTECTED]
> Subject: Re: problem in forward tag
>
>
> Hi,
> You can use the following code
>
> <%@ page language="java" %>
> <% response.sendRedirect("/examples/jsp/dw/HOME.htm");
> %>
>
> Regards
> Deepak Kumar
>
>
> --- prasanjeet <[EMAIL PROTECTED]> wrote:
> > Hello everybody,
> >           I have a strange problem the forward tag
> > command of JSP is not
> > working .
> >
> > ex.
> >         <html>
> > <body>
> > hello
> >
> > <jsp:forward page="/examples/jsp/dw/HOME.htm" />
> >
> > </body>
> > </html>
> >
> > this is showing the 404 error , i have tried all the
> > possible combination of
> > it URI though. I am using Jswdk 1.0.1.
> >
> > Thanks is advance
> > regarsd
> > Prasanjeet
> >
> >
> ==================================================================
> =========
> > 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
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Photos - Share your holiday photos online!
> http://photos.yahoo.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://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".
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