Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

" Page cannot be displayed " error is displayed when response from servelet takes time.

 
Prateek Sinha
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I have a web based application deployed on tomcat5 on RHEL 5.2 machine.
There is a functionality of this application that takes more than an hour to complete. after the completion of this process a response is generated by the servlet.

Sice the responce from the servlet takes a lot of time the browser displays a "page can not be displayed" error.

Can i configure my browser or tomcat server for the above scenario ? so that the browser waits until the respose is sent from the server and does not display "the page cannot be displayed" error .

Or

There is some flaw in the application that needs to be handled ?
 
Vijitha Kumara
Bartender
Posts: 3953
21
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Prateek Sinha wrote:There is a functionality of this application that takes more than an hour to complete.


Can't you do something with this ? Normally, web applications should not wait like this.
 
Prateek Sinha
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
actually we cant reduce the time taken by the functionality . The process takes around 1 hour to complete at the server side.

I just want to know .. can i configure tomcat5 server or the browser (IE6) for longer response time.

we do not want to get into code changes rite now , thus we are loking for some workaround.
 
Ankit Garg
Sheriff
Posts: 9591
34
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well if it takes 1 hour to complete, then the user might get restless. The best thing to do is that the servlet sends the user a progress bar page and you periodically check the server (using AJAX) to see how much work is left and update the progress bar accordingly...
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Prateek Sinha wrote:The process takes around 1 hour to complete at the server side.


Hmmm. what is the process ? is it web application ?

 
Prateek Sinha
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi ashish,
I think showing the process bar is a good option. Can us just giude me how can i proceed with that.

Currently I have a servlet that takes around 1 hour to complete and after that it generate the response.
If i use ajax do i need to change this servlet into a jsp or i can use the servlet itself .

Please send me the links related to process bar. How can to create that..etc.

Thnks for the answer.

 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65535
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See the Long Running Process example here.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!