> -----Original Message----- > From: Samuel Chen [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, August 21, 2002 9:20 PM > To: [EMAIL PROTECTED] > Subject: Re: unable to dispatch to requested page? > > > Well, as is indicated in the error message, it is probably oracle9ias. Ok.From the error could not make out the server. > > I want to know is there any document that compares sendRedirect() and > RequestDispatcher and concluded that the later is much faster? Document, sure i cud give you links of websites, and in books you shall read. Coz requestDispathcher forwards the request object on the client side, while response.... requires a round trip to the server.
Anyways you can check this or read books. http://www.fawcette.com/javapro/2002_03/online/online_eprods/servlets_03_19/ > > Anyway, to the orginal question, I think it is likely that, in the > jsp page itself, you have > <jsp:include page="xxx"/> > This may cause problem when you then try to use sentRedirect(). Yeah sure that could give error, but the error would be different, that OUTPUTSTREAM HAS ALREADY BEEN OBTAINED. This error is coz we are using HTTP protocol and network related problems. If you have worked on tomcat 3.x series this error is commonly displayed when displaying images, .js files. But they have been fixed in the current releases i.e. 4.x > I don't think RequestDispatcher will help here too much. But whats the harm in trying :-). To every problem there is an alternative solution. > > ________________________________ > Do you need a Bug Tracking System? > Try Bugzero: www.websina.com/bugzero/ > > > ----- Original Message ----- > From: "Vikramjit Singh" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, August 21, 2002 8:49 PM > Subject: Re: unable to dispatch to requested page? > > > > > -----Original Message----- > > > From: Ali Chadorbaf [mailto:[EMAIL PROTECTED]] > > > Sent: Wednesday, August 21, 2002 2:37 PM > > > To: [EMAIL PROTECTED] > > > Subject: unable to dispatch to requested page? > > > > > > > > > Hi, > > > In my jsp application i usually used sendRedirect() to > > > forward from one jsp > > > page to another(Some jsp page has database intraction > > > involved). Some times > > > receives following error message( I copied and pasted it from > > > log file) and App > > > server locks. And we must reboot the server and reload the > > > Appserver to > > > coutinue. Any idea would really appreciated. > > > > > Just a few questions: > > Which app server are you using? > > Are you closing the connections, resultset, statements when > doing database > > transactions? > > > > Another alternative is why dont you use RequestDispatcher, > it is much faster > > than response.sendRedirect(); > > > > > > > > > > > 8/21/02 9:30 AM defaultWebApp: JspServlet: unable to dispatch > > > to requested > > > page: com.evermind.server.http.HttpIOException: Connection > > > reset by peer: > > > socket write error > > > at > > > com.evermind.server.http.EvermindHttpServletResponse.commit(Ev > > ermindHttpServletResponse.java:673) > > > > > > at > > > com.evermind.server.http.EvermindHttpServletResponse.commitAnd > > > IgnoreWrites(EvermindHttpServletResponse.java:212) > > > > > > at > > > com.evermind.server.http.EvermindHttpServletResponse.sendRedir > > > ect(EvermindHttpServletResponse.java:1347) > > > > > > at > > > _touchtest1._site1._StartWorkServlet._jspService(_StartWorkSer > > > vlet.java:115) > > > > > > at > > > com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage > > > .java:56) > > > at > oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:180) > > > at > > > > oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:352) > > > at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:303) > > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:336) > > > at > > > com.evermind.server.http.ServletRequestDispatcher.invoke(Servl > > > etRequestDispatcher.java:691) > > > > > > at > > > com.evermind.server.http.ServletRequestDispatcher.forwardInter > > > nal(ServletRequestDispatcher.java:276) > > > > > > at > > > com.evermind.server.http.HttpRequestHandler.processRequest(Htt > > > pRequestHandler.java:737) > > > > > > at > > > com.evermind.server.http.HttpRequestHandler.run(HttpRequestHan > > > dler.java:247) > > > > > > at > com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64) > > > > > > > > > > > > __________________________________________________ > > > Do You Yahoo!? > > > HotJobs - Search Thousands of New Jobs > > > http://www.hotjobs.com > > > > > > ______________________________________________________________ > > > _____________ > > > To unsubscribe, send email to [EMAIL PROTECTED] and > > > include in the body > > > of the message "signoff SERVLET-INTEREST". > > > > > > Archives: > http://archives.java.sun.com/archives/servlet-interest.html > > > Resources: > > > http://java.sun.com/products/servlet/external-resources.html > > > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html > > > > > > > > ______________________________________________________________ > _____________ > > To unsubscribe, send email to [EMAIL PROTECTED] and > include in the body > > of the message "signoff SERVLET-INTEREST". > > > > Archives: > http://archives.java.sun.com/archives/servlet-interest.html > > Resources: > http://java.sun.com/products/servlet/external-resources.html > > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html > > ______________________________________________________________ > _____________ > To unsubscribe, send email to [EMAIL PROTECTED] and > include in the body > of the message "signoff SERVLET-INTEREST". > > Archives: http://archives.java.sun.com/archives/servlet-interest.html > Resources: > http://java.sun.com/products/servlet/external-resources.html > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html > ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html