Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

refresh JSP webpage when jms message is received or Apache DB database

Status
Not open for further replies.

albertkao

Programmer
Feb 3, 2010
5
CA
How to refresh JSP web page when a jms message is received or the Apache DB database is changed?
How to do that with javascript?
Is there any sample code?
 
Do you want to do a simple refresh, or are you looking to use AJAX to dynamically refresh the page?
 
I like to refresh the page by javascript only, i.e. without any human being clicking the refresh button on the browser.
Is this mean using AJAX to dynamically refresh the page?
 
Assuming you already have the mechanism in place to recognise when you would like the refresh to happen, this will do the actual refresh:

Code:
location.reload(true);

Hope this helps,
Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

Dan's Page [blue]@[/blue] Code Couch:
Code Couch Tech Snippets & Info:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top