Re: Need help in the method of sendRedirect()
vishwa <[email protected]>
| Newsgroups | gmane.comp.java.sun.servlet |
|---|---|
| Message-ID | <001401c31094$2730a710$9645a8c0@vishwa> |
The method elucidated won't work. When u use sendError() method the response is supposed to be comitted and call to sendRedirect() will throw IllegalStateException. Instead, u can use setStatus(200) method which will send this status code to the browser, which is displayed as per the browser settings. And after this u may use getServletContext().getRequestDispatcher(the path to the resource).forward() to display the results. regards, Vishwa Ranjan ----- Original Message ----- From: Madhu Vadlapudi <[email protected]> To: <[email protected]> Sent: Friday, May 02, 2003 2:47 PM Subject: Need help in the method of sendRedirect() > Hello, > > I am doing a web application, in which I am getting the data using JDBC . But > the data generation process may take more than 60 sec, in that case client side > page will show the time out option. For that i am planning to use sendError > (200, "Wait processing is going on"); after some time i may get the results in > a file, then i want to use sendRedirect() method to show the results. Is this > method will work? or any other suggestions. > > Regarding the technical aspects: > > Database: oracle8i, using jdk1.2 and jsdk2.0. Using OracleDriver to connect to > the database. OS is Tru64 Unix ( formarly Digital unix). > > Thanks in advance. > -- > V Madhu, > > ___________________________________________________________________________ > 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