In my firstServlet Iam writing the FileInputstream into response object and forwarding it.
In my SecondServlet Iam writing the Inputstream into FileOutputStream object.
but Iam unable to forward the request from first servlet using RequestDispatcher's forward(req,res) method (getting exception as response is already commited before forwarding)