When Iam calling a
servlet from my
jsp page Iam getting the following error:
com.ibm.servlet. engine. webapp NoTargetFor URIException: No target servlet configured for uri: /comnServlet.
Iam calling the servlet from my jsp page as follows:
<FORM id="w_Testwindow1" METHOD="POST" ACTION="http://ss0247/FIM/servlet/comnServlet" >
public void forwardToJsp(
String toJsp, HttpServletRequest req, HttpServletResponse res)
{
System.out.println("***inside forwardtojsp ");
RequestDispatcher rd1;
rd1 = getServletContext().getRequestDispatcher("/"+toJsp);
System.out.println("***After request dispatcher ");
try{
//forward the req to jsp page to be displayed
//// System.out.println("back to wrapper2");
System.out.println("***sing-- b4 forward ");
rd1.forward(req,res);
System.out.println("***sing-- after forward ");
}
catch(Exception e)
{
////log("CATCHING EXCEPTION on FORWARD POINT 1" + e);
System.out.println("The error in forward jsp is due to"+e);
e.printStackTrace();
}
}
After the control goes to the common servlet it fails at rd1.forward(req,res); and it throws the following exception.
com. ibm.servlet. engine.webapp. NoTargetForURIException: No target servlet configured for uri: /comnServlet.
Please get back to me and tell me what am I to do ......