I'm using Tomcat which allows you to map your servlets to a name in a
configuration file.  So, you can tell it that /servletA means invoke
/servlets/servletA.  Therefore, you eliminate "servlets" from your url path
which was what I was having problems with.  I'm sure every webserver that
supports servlets has a similar mechanism.

Kent

----- Original Message -----
From: Luong, Dat <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 01, 2000 9:22 AM
Subject: RE: RequestDispatcher forward


> Hi Kent
>
> I'm very interested in your solution to the problem but I'm not quite
> understand what you said. Could you please, give me some example.
>
> Thanks
>
> -----Original Message-----
> From: Kent Symanzik [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 28, 2000 10:39 AM
> To: [EMAIL PROTECTED]
> Subject: Re: RequestDispatcher forward
>
>
> I found a solution to this problem in case anyone is interested.  The
> problem is resolved if I define aliases for my servlets so that /servlet
is
> not in the path.
>
> Kent
>
> ----- Original Message -----
> From: Kent Symanzik <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, April 27, 2000 3:38 PM
> Subject: RequestDispatcher forward
>
>
> > Hi,
> >
> > I have servlet that does the following forward in doGet:
> >         ServletContext sc = getServletContext();
> >         RequestDispatcher rd = sc.getRequestDispatcher("/Main.html");
> >         rd.forward(request, response);
> >
> > The problem I am having is that I'm trying to redisplay the main page
> which
> > has several frames in it.  The frames become relative to the servlet
path:
> >
> > /root/servlet/Login.jsp  it should be  /root/Login.jsp
> >
> > which causes them not to be found.  I realize that this is probably
> because
> > I am get the request dispatcher from the servlet context but I don't
know
> > how else to do it.
> >
> > Can someone point me in the right direction?
> >
> > Thanks
> >
> > Kent
> >
> >
>
===========================================================================
> > 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
>
>

===========================================================================
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

Reply via email to