jsp - "Sending a redirect is forbidden after the response has been committed" in sendRedirect -


if(insertlen==6)       {           nextpag="&whichpage=/jsp/dealer/callcentre/careprocess.jsp"           redirectpath += actionpath+nextpag;                            response.sendredirect(redirectpath);           return;       }       else       {           nextpag="&whichpage=/jsp/dealer/callcentre/complaintfeedback.jsp";           response.sendredirect(redirectpath);       }      

here when execute above, got following error :

sending redirect forbidden after response has been committed 

may know why happening?


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -