Nic Ferrier wrote:

> >>> Rakesh Rajendran <[EMAIL PROTECTED]> 14-Jun-00 8:51:07 PM >>>
>
> >I am not able to obtain the RequestDispatcher object from
> >my servlet.
> >The code is as follows :
> >String targetURL = "../LogonPage.jsp";
>
> >My servlet is in the servlets directory and my LogonPage.jsp is
> >in the html/public_html directory in the IAS appserver.
> >Any pointers as to where i am going wron would be greatly
> >apreciated.
>
> How does the servlet engine know what you mean by "../"?
>
> You should re-organise things so that you specify the path more
> precisely.
>

In particular, the Javadoc documentation for getRequestDispatcher() will tell
you that you need to use a context-relative URL that starts with "/".  If your
logon page is in the document root directory, the path would be
"/LogonPage.jsp".

>
> Nic Ferrier
>

Craig McClanahan

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to