Hi all SB> Hello all,
SB> I have a JSP, that processes a form and is attempting to create a record in my database via CMP EJB (Person). After my form has been processed and the PersonHome.create() methods has succeeded SB> (record has been created), the page tries to redirect to another JSP. But this doesn't work; instead i receive an exception: SB> java.lang.IllegalStateException: Response has already been committed, be sure not to write to the OutputStream or to trigger a commit due to any other action before calling this method. SB> at com.evermind[Orion/1.5.2 (build 10460)].server.http.EvermindHttpServletResponse.sendRedirect(Unknown Source) SB> at /department.jsp._jspService(/department.jsp.java:54) (JSP page line 19) SB> at com.orionserver[Orion/1.5.2 (build 10460)].http.OrionHttpJspPage.service(Unknown Source) SB> at com.evermind[Orion/1.5.2 (build 10460)]._ah._rad(Unknown Source) SB> at com.evermind[Orion/1.5.2 (build 10460)].server.http.JSPServlet.service(Unknown Source) SB> at com.evermind[Orion/1.5.2 (build 10460)]._cxb._abe(Unknown Source) SB> at com.evermind[Orion/1.5.2 (build 10460)]._cxb._uec(Unknown Source) SB> at com.evermind[Orion/1.5.2 (build 10460)]._io._twc(Unknown Source) SB> at com.evermind[Orion/1.5.2 (build 10460)]._io._gc(Unknown Source) SB> at com.evermind[Orion/1.5.2 (build 10460)]._if.run(Unknown Source) SB> without PersonHome.create() or response.sendRedirect() everything works fine (it works fine with either, but not with both). SB> What is going on? What am I doing wrong? Usual cause this error is happened is when you try to redirect to the other page while you already write to response some data and it was flushed (or you flush it). Can you send me your JSP page, I'll try to help you. -- Sergey G. Aslanov CBOSS Group, Web-technologies department mailto:[EMAIL PROTECTED] tel: +7 095 7555655
