BASAR DALDAL wrote:
> Department: Genel M�d�rl�k/Bilgi ��lem
>
> Hi,
> I have a question about JSP invocation.
>
> The following causes the client browser to call MyPage.jsp, am I right?
> response.sendRedirect ("MyPage.jsp");
>
> Is there a method for d�rectly calling the JSP page, I mean, on the server side,
> without sending the temporary redirect response to the client. What I want is to
> execute the JSP page on the server side and just send the result to the client.
>
Use the following code in your calling servlet or JSP page:
RequestDispatcher rd =
getServletContext().getRequestDispatcher("MyPage.jsp");
rd.forward(request, response);
Be sure you do this before you have generated any output from the calling servlet
or page.
>
> Thanks,
>
> Basar
>
Craig McClanahan
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html