• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

jsp page refreshing containing thread

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello All
I have trouble refreshing a JSP page which waits for a thread to complete.
In the mean time till the thread is not completed, it displays a message recurringly.
I have used setTimeout(location="MyJsp.jsp",1000);
By using this whole window including the status bar is also getting refreshed or rather re-loaded, which is not what i want.
I want only the message to be recurred for which i have the logic in a function written using javascript for displaying it recurringly till the thread is running.
Thank you in advance
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Same thing as this person basically wants here:
https://coderanch.com/t/117238/HTML-JavaScript/autorefresh-jsp-page

Read my 3rd response there.

Eric
 
gk anand
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I could not get to the correct solution, if possible kindly explain it here itself. I have visited your blog but could not get to the solution Eric.

I would brief out the required logic:
I am using setTimeout("location='MyPage.jsp'",1000);
which is refreshing the whole of the window, but without doing that my thread status is not being updated so kindly let me know the solution, it is very much required
Thank you in advance
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic