You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jason Meredith <Ja...@fimat.co.uk> on 2003/06/03 13:48:52 UTC

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


RE: Intelligent Refresh/Reloading

Posted by Navjot Singh <na...@net4india.net>.
hi jason,

try using pushlets. they may look odd in their use but they can solve your
purpose.

-navjot singh

|-----Original Message-----
|From: Jason Meredith [mailto:Jason.Meredith@fimat.co.uk]
|Sent: Tuesday, June 03, 2003 5:19 PM
|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


RE: Intelligent Refresh/Reloading

Posted by Andrew Hill <an...@gridnode.com>.
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