Raj:
Try setting the url to the html files directory and save it in say a variable
called htmlFilesDir. (something like
"htmlFilesDir=http://java2.cmpco.com/~gr5678/LPFP/,jsps/")
Then you could try:
servletContext.getRequestDispatcher(htmlFilesDir + "test.jsp");
If you only want to redirect to an html page, you dont really need to forward
the request on. So you may simply want to say:
resp.sendRedirect(htmlFilesDir + "test.html");
Geeta
Raj Kumar Jha wrote:
> Hi,
>
> I am using NES 3.5.1 and JRUN 2.3.3 . I have my servlet in the
> c:/jrun/servlets directory which I am accessing through my NES server. The
> servlet uses the RequestDispatcher object to send a static html file to the
> user e.g.
>
> ServletContext servletContext = getServletContext();
> RequestDispatcher requestDispatcher =
> servletContext.getRequestDispatcher("/test1.html");
> requestDispatcher.forward(req,res);
>
> This generates an error in the stdout.log file in jrun saying "No Mappings
> found for '/test1.html'" . When tested using
> JSDK2.1 the code works perfectly. I have placed the file 'test1.html' in
> the servlets directory, the docroot of Jrun as well as NES but nothing
> works. Can anyone help me on this....
>
> Thanks and Regards,
> Raj
>
> ___________________________________________________________________________
> 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
___________________________________________________________________________
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