Can any one solve the following error asap.
When I obtained RequestDispatcher object with following code I get following exception
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
java.lang.IllegalArgumentException: Path does not start with a "/" character
com.Production.sdc.servStyleSample.service(servStyleSample.java:352)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
note The full stack trace of the root cause is available in the
Tomcat logs.
Code written :
ServletContext sc = getServletContext();
RequestDispatcher rd = sc.getRequestDispatcher("/exists.jsp?formnm=create_stylesample.jsp&chksts=Exists"); // this line generate error
rd.include(req, res);
Thanks & Regards,
Mandar Velankar