This content has been marked as final. Show 4 replies
so "def.html" does not start with a "/". Heck... I have no idea what one could do about that. :p
Heck... I have no idea what one could do about that.Some error messages are just too terrifying to consider, Rene!
The ServletContext.getRequestDispatcher method takes a String argument describing a path within the scope of the ServletContext. This path must be relative to the root of the ServletContext and begin with a */*The method uses the path to look up a servlet, using the servlet path matching rules, wraps it with a RequestDispatcher object, and returns the resulting object. If no servlet can be resolved based on the given path, a RequestDispatcher is provided that returns the content for that path.
so use */* with your jsp name
hope it helps ..
Edited by: Ashish.Syntel on Apr 16, 2008 6:08 PM
so use */* with your jsp nameExcellent advice. The path is to an HTML page rather than JSP, just in case the OP gets confused.