struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcos Oliva" <>
Subject RE: Intelligent Refresh/Reloading
Date Wed, 04 Jun 2003 16:53:28 GMT


I did this with Jboss - MDB (message driver beans) -- applet/javascript 

The applet is a non-displayable applet that sits on the client web page
and listens to the publisher (MDB bean) and whenever new info hits the
server then the MDB publish a message, the servlet receives it and by
means of javascript reloads the page(the reload can be also dhtml).

I did this for a messaging project that I was working, tracking down
jboss JMS capabilities, and displaying the messages on the HTML page.

The applet does not have to display and it is a tiny applet, its only
function is to listen for updates.

My two cents

Marcos oliva

-----Original Message-----
From: Andrew Hill [] 
Sent: Tuesday, June 03, 2003 8:27 PM
To: Struts Users Mailing List
Subject: RE: Intelligent Refresh/Reloading


The webserver has no way of notifying the client that it needs to load
page again.

Struts doesnt provide anything to help with this.

Some attempted solutions Ive seen include the good old polling method
causes the page to reaload every minute or so) which is inefficient and
inelegant, and 'pushlets' which are an evil hack where the server doesnt
close the connection to the client (tying up a socket), and can write
of javascript to the connection occasionally causing the client to do
Neither are very robust.

One might also consider the idea of an applet that maintains its own
connection with the server but Ive not implemented such a thing myself.

-----Original Message-----
From: Jason Meredith []
Sent: Tuesday, 3 June 2003 19:49
To: Struts Users Mailing List
Subject: Intelligent Refresh/Reloading


I have a list of records that are displayed on a web page, the database
receives new records periodically, is there a way to determine when a
record is loaded into the dB and then using Struts reload that page when
new record is added?



The e-mail and any attachments are confidential. They may contain
privileged information and are intended for the named addressee(s)
only. If you are not the intended recipient, please notify us
immediately and do not disclose, distribute, or retain this e-mail
or any part of it.

Unless expressly stated, opinions in this e-mail are those of the
individual sender and not of the FIMAT Group. We believe but do not
warrant that this e-mail and any attachments are virus free.
You must therefore take full responsibility for virus checking.
The FIMAT Group reserve the right to monitor e-mail communications
through its networks.

Where this communication constitutes a financial promotion it is issued
and approved by Fimat International Banque S.A. (UK Branch) and is
only intended for persons of a kind described in article 19(5) of the
Financial Services and Markets Act 2000 (Financial Promotion) Order
2001.  This information is not intended to be distributed to UK "Private
Customers" (as defined by the Financial Services Authority).

Fimat International Banque S.A. (UK Branch) whose registered branch
in England is at SG House, 41 Tower Hill, London EC3N 4SG is authorised
by the Commission Bancaire in France and by the UK Financial Services
Authority; regulated by the Financial Services Authority for the conduct
UK Business and is entered in the Financial Services Authority's
(Register Number 183415), access to which can be gained via the

Member and a SETS Participant of the London Stock Exchange ("LSE").
Where this communication is confirming an "on exchange" transaction
(as defined by the LSE),the transaction is subject to the rules of the
Any information, opinions, estimates and forecasts contained in this
document have been arrived at or obtained from public sources believed
to be reliable and in good faith which has not been independently
verified and no warranty, express or implied, is made as to their
completeness or correctness.

This document is not an offer to sell or a solicitation to acquire or
of an interest in financial instruments.

If you have received this transmission in error, please telephone
+44 020 7676 8999 immediately so that we can arrange for its return.

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message