Actually i got sql exception in jdbc code now i want to handle or rethrow it to servlet class and show some user defined msg in the web-IE.
catch (Exception e)
{
e.printStackTrace();
}
getServletContext().getRequestDispatcher("/newconfig.jsp?error=1&message=Error%20either%20Source%or%20Target%20Config%20Details%20worng!").forward(request,response);