>>> Albert Yip <[EMAIL PROTECTED]> 25-Apr-01 3:57:00 AM >>>
>I am trying to use the forward method inside
>RequestDispatcher. It didn't give me any exceptions
>but it's giving me blank (I tried to forward it both
>servlets and html pages that exist). Would someone
>give a clue on this?
Looks ok at first glance.
>1. Does it has something to do with the "target" I am
> trying to call? What is it supposed to be in? a URL?
> Absolute path on the server?
It's supposed to be a path relative to the context root. The path
must always begin with a "/" because context roots don't end with a
"/".
So if you have:
/context
/index.html
your code should work.
>2. Is there any settings on the server I need to fix?
Yes. In order to forward to an html you need something to be serving
the html file, often the default servlet is doing that. If you haven't
got a default servlet (something mapped to "/" within the webapp) then
you're doing something wrong.
Your nomrally get a default servlet (on Tomcat) by ensuring that
Tomcat's ROOT.war gets loaded as the default war file which your war
file overrides.
Check the logs to ensure that the default servlet is being loaded.
Nic Ferrier
___________________________________________________________________________
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