I use weblogic 4.5.1 and I have similar problems with request dispatcher and
forward.
 In my case I do get a request disptacher.
 I get a servletcontext using getServletContext().
I get a request disptacher using servletcontext
.getRequestDispatcher("filename");
and requestdisptacher.forward(request,response) this works fine on a pc version
of netscape 4.72 and doesnt work on unix version of netscape 4.72
Sri




"Danny Trieu" <[EMAIL PROTECTED]> on 06/12/2000 01:44:27 PM

Please respond to "A mailing list about Java Server Pages specification and
      reference" <[EMAIL PROTECTED]>



 To:      [EMAIL PROTECTED]

 cc:      (bcc: SRI N. ATTILI/EMPL/MD/Bell-Atl)



 Subject: Re: Problem in jsp:forward.......URGENT






sendRedirect() gonna cost you a round trip to the clien and then back to the
destination page, but it works and it does the job fine.  However, as for
forward,
I have bad experiences with weblogic(4.51sp8).  It sometime doesn't works
correctly.  When I request a requestDispatcher, it sometime return null, and I
don't have a clue why it was doing this.  And sometime it return me a
RequestDispatcher for the same page.  Anyway if someone have any idea please let
me
know and thanks ...........

Geert Van Damme wrote:

> This is the correct behavior for <jsp:forward>
> it's the server side request that's handed over to the new location and the
> client doesn't (shouldn't) see this. (it's a feature ;-)
>
> What you want to do isn't a forward but a redirect.
> try
> <%response.sendRedirect("../folder2/page2.jsp")%>
> instead.
>
> Geert 'Darling' Van Damme
>
> > -----Original Message-----
> > From: A mailing list about Java Server Pages specification and reference
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Tamanna Kher
> > Sent: donderdag 8 juni 2000 16:17
> > To: [EMAIL PROTECTED]
> > Subject: Problem in jsp:forward.......URGENT
> >
> >
> > Can somebody please suggest a solution for the following scenario:
> >
> > 1. Client browser requests for a page Page1.jsp from Web server as
> > http://localhost/folder1/Page1.jsp
> >
> > 2. Page1.jsp is in turn doing a forward to Page2.jsp lying in adifferent
> > folder as :
> >      <jsp:forward page="../folder2/page2.jsp"/>
> > 3. The output from Page2.jsp gets sent to the browser.
> > 4. However, the location URL of  browser still shows the old location as :
> > http://localhost/folder1/Page1.jsp
> >    whereas the page that is currently loaded in browser is Page2.jsp from
> > folder2.
> >
> > How do we make  the location URL  to point to the same place as the
> > destination page (in this case, Page2.jsp)
> > whenever a request forward is done internally ?
> >
> > ThankX in advance
> > -Tamanna Kher
> >
> >
> >
> >
> > _____________________________________________________________
> >
> > Visit http://www.PalmGreetings.com The first & only Mobile greeting site.
> > * You can send & receive e-cards using your Palm Pilot
> > * View animated cards on your Palm
> > * Draw your very own cards
> >
> > ==================================================================
> > =========
> > 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