hi all i m using RequestDispatcher object in the follwing way: RequestDispatcher disp = req.getRequestDispatcher("path"); disp.include(req, res); but i keep getting 500 "Internal Server Error" what cud b the problem tia malhar
May i know which servlet engine you are using. As far as i know there is no restriction of forward or include. we can forward or include static or dynaimc pages Sridhar
Originally posted by Tony Alicea: Rename *.html to *.jsp and see what happens. I don't think you can forward a POST to an static HTML page. I think you CAN forward a GET to a static HTML page though...
Joined: Aug 17, 2001
dear i m using Apache 1.3.6. its easy fr me to go in response.sendRedirect... cant go fr .jsp as the entire proj has to be done using servlets rgds malhar
Tony is correct, Sridhar. Since forwarded requests use the same request method as the original request, POST requests cannot be forwarded to normal HTML pages. The solution is to rename HTML pages to have a .jsp extension ------------------ Bosun SCJP for the Java� 2 Platform
Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley