Howdy, Read their JavaDoc carefully: their base for name resolution is different. When you use just finyear.jsp without a leading / or another path indicator, you're looking relatively.
Yoav Shapira Millennium ChemInformatics >-----Original Message----- >From: N.B.Bopanna [mailto:[EMAIL PROTECTED] >Sent: Monday, January 26, 2004 7:36 AM >To: [EMAIL PROTECTED] >Subject: Off Topic - RequestDispatcher > >Hi all , >i want to forward the control from a servlet to a jsp file using >RequestDispatcher. > >the following code works:- > >RequestDispatcher rd=request.getRequestDispatcher("finyear.jsp"); >rd.forward(request,response); > >and this does not work:- > >RequestDispatcher rd=getServletConfig().getServletContext >().getRequestDispatcher("finyear.jsp"); >rd.forward(request,response); > >can any one please tell me why? >Thanks in advance >Bopanna > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
