struts-user mailing list archives

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

Jason, 

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 [mailto:andrew.david.hill@gridnode.com] 
Sent: Tuesday, June 03, 2003 8:27 PM
To: Struts Users Mailing List
Subject: RE: Intelligent Refresh/Reloading

No.

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

Struts doesnt provide anything to help with this.

Some attempted solutions Ive seen include the good old polling method
(js
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
lines
of javascript to the connection occasionally causing the client to do
stuff.
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 [mailto:Jason.Meredith@fimat.co.uk]
Sent: Tuesday, 3 June 2003 19:49
To: Struts Users Mailing List
Subject: Intelligent Refresh/Reloading



Chaps

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
new
record is loaded into the dB and then using Struts reload that page when
a
new record is added?

Regards

Jason



*******************************************************************
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
of
UK Business and is entered in the Financial Services Authority's
register
(Register Number 183415), access to which can be gained via the
following
link: www.fsa.gov.uk/register/

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
LSE.
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
accuracy,
completeness or correctness.

This document is not an offer to sell or a solicitation to acquire or
dispose
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: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message