Hi,

The JSP specification clearly states that the url to which you want to forward
should be in the same servlet context. Hence, it will not be possible to use
forward() method in your case. The only method, that can be used is
response.sendRedirect().

-ShriKant

"Shahata, Ashraf" wrote:

> Hi all,
> does anyone know of a way to call a jsp page from a servlet, where the
> servlet is based in a separate servlet eng? I'm trying to forward from a
> servlet to a jsp page for front end input...
> Could the getRequestDispatcher method do a forward to a jsp page on a
> separate app server, for eg:
>        getRequestDispatcher("/jsp/jsptoserv/hello.jsp").forward(request,
> response);
>
> I cant use the sendRedirect as it will display the full url of the jsp page.
>
> Thanks
> Ash
>
> ===========================================================================
> 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

Reply via email to