Calling a html page deployed in weblogic server using RequestDispatcher
Hi All,
I want to call a HTML page from a java page using requestdispatcher. The whole application is deployed in Weblogic server.I have used the below syntax to call the page from any machine..
ServletContext sc = getServletContext();
RequestDispatcher rd = sc.getRequestDispatcher("http://172.25.40.148:7001/Filecomparetool/Result3.html");
rd.forward(req, res);
Im getting Null pointer exception...Plz help..Thanks in advance!
Please use the CODE tags (see the CODE button above, or the [url=http://forum.java.sun.com/help.jspa?sec=formatting]formatting tips[/url] page, and not the BOLD button.
Post the stack trace.
Either getServletContext or getRequestDispatcher is returning null. Find out which, read the API to find out why.
mlka at 2007-7-14 21:01:19 >

hi friend,Im able to call the required html page by using the request object as below..everything worked fine..Thanks for your tips..RequestDispatcher rd = req.getRequestDispatcher("/Result3.html"); rd.forward(req, res);