I have an index.jsp page which uploads an image. On submit it goes to a servlet Upload.java. In the servlet I am checking if the extension in of image(\"jpg\",\"png\",etc) and forwards to new jsp page
This method throws java.lang.IllegalStateException: Cannot forward after response has been committed and I am unable to spot the problem. Any help?