Hi friends,
I am new to
JSP I am using response.sendRedirect() in my jsp when a condition becomes true or false it will go to success.jsp. While executing this I am getting "
IllgalStateException and the response is not forwarding to "success.jsp". why this is occuring i need your help .
code snipet is:
<%
if(rs.next()==true)
{
response.sendRedirect("../success.jsp?work=add");
}
else
{
response.sendRedirect("../success.jsp?work=addFailed");
}
%>
I am getting
java.lang.IllegalStateException .
Please help me to resolve this exception..