Mohan,
You could do something like this:
RequestDispatcher dispatcher =
getServletContext().getRequestDispatcher("/yourjsp/myframe_header.jsp");
dispatcher.include(req, res);
****************************************************************************
*****
("/yourjsp/myframe_header.jsp")----- being the place where your JSP file
resides.
****************************************************************************
*****
Refer to the following site for additional help
http://java.sun.com/products/servlet/2.1/api/javax.servlet.RequestDispatcher
.html
Rema
-----Original Message-----
From: Mohan Nai [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 05, 2000 10:04 AM
To: [EMAIL PROTECTED]
Subject: RequestDispatcher class
Hi,
I saw a lot of mails regarding RequestDispatcher
class. IF somebody is using it help me out. I have a
problem in it.
I am forwarding a request from a servlet to a Jsp
using requestDispatcher. I am using jswdk1.0.1 .
* Now where should I place my jsp(target) be placed
(url in requestDispatcher forward method should
start with "\").
* Where should I place my servlet. I am placing it in
C:\jswdk-1.0.1\examples\WEB-INF\jsp\beans.
Can anybody help ?
mohan
__________________________________________________
Do You Yahoo!?
Kick off your party with Yahoo! Invites.
http://invites.yahoo.com/
===========================================================================
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