I have a cancel button which used to just refresh values. Now I have converted them to refresh or reload the page and move to Read-Only page. So changed cancel button to call a function like this,
function chkArea(){
var url='<c:out value="${model.contextPath}"/>/abcHandler.do?operation=view;
document.forms[0].action=url;
document.forms[0].submit();
}
Now when I submit cancel, I get the following message in the UI,
java.lang.IllegalStateException: Response has already been committed at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.EvermindHttpServletResponse.resetBuffer(EvermindHttpServletResponse.java:1892) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:249) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:51) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.4.0) ].server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193) at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:284)........
and the console shows the following error:
javax.servlet.ServletException: The "url" attribute illegally evaluated to "null" or "" in <import>
at com.evermind.server.http.EvermindPageContext.handlePageThrowable(EvermindPageContext.java:899)
at com.evermind.server.http.EvermindPageContext.handlePageException(EvermindPageContext.java:816)
I don't see any error in the JS or JSP. What seems to be wrong? any suggestions?