Re: Real time data display in a struts based application.

2007-03-02 Thread Maya menon
Musachy,
   
  Yes, we use  struts 1.x, and I really dont think we can download any of these 
external libraries. 
   
  So said so, I have to write javascript etc to achive these AJAX timed 
events..
  Any one has done it to achieve it ?
   
  I believe javascript,XML etc are needed.. any examples.

Musachy Barroso [EMAIL PROTECTED] wrote:
  Oops...I can't help it, I always assume we are talking about S2. If you are
using S1, pick an ajax framework, most of them have a Div tag like the one
on S2. See Frank's email for details on one of them.

musachy

On 2/28/07, Maya menon wrote:

 Thanks Musachy for your response.
 We use Struts 1.x right now.. Guess we have to update..
 Please send me if yu have any examples/links..


 Musachy Barroso wrote:
 You can refresh the page, but that would probably be annoying to the
 user,
 not to mention that data entered on fields will most likely be lost. Using
 a
 div you can update just the part of the page that is important. Using the
 div tag in struts:



 theme=ajax
 href=%{ajaxTest}
 updateFreq=3000/

 that will make your div reload the content from AjaxTest.action every
 3000
 milliseconds. There are many frameworks available, so you can pick one
 that
 fits your needs. For simple scenarios, the div tag will do.

 musachy

 On 2/28/07, Maya menon wrote:
 
  Thank you both for your responses.
 
  So AJAX is the technique I should refer. Anyone know of any examples /
  somethings.
 
  Also, my colleague asked me this question when I talked to him about a
  timed AJAX event. Why cant we simply refresh the jsp page ? Why should
 we
  use AJAX ? so, whats the real advantage of using an AJAX timed event to
 a
  normal JSP/HTML refresh ?
 
  Maya
 
  Musachy Barroso wrote:
  The div tag when used on the ajax theme, has a timer that will make it
  refresh its content from the url specified in the href attribute,
  examples
  available in showcase and here:
 
  http://struts.apache.org/2.x/docs/ajax-tags.html
 
  musachy
 
  On 2/28/07, Frank W. Zammetti wrote:
  
   Well, if you can live with not literally pushing to the client, this
  is
   the sort of application AJAX was made for. Have a timed event, every
 few
   seconds maybe, whatever your tolerable definition of real time is,
  that
   makes and AJAX request to check for new data and display it when
 found.
   Pretty easy.
  
   Have a peak at the AjaxParts Taglib (APT) in Java Web Parts (JWP):
  
   http://javawebparts.sourceforge.net
  
  
 
 http://javawebparts.sourceforge.net/javadocs/javawebparts/ajaxparts/taglib/package-summary.html
  
   The benefit is that it will allow you to do this, since it has a timed
   AJAX event function, and will save you from having to write any
  Javascript
   yourself (most likely).
  
   Whether you go with APT or not, AJAX is probably the first thing you
  want
   to look at.
  
   Frank
  
  
   --
   Frank W. Zammetti
   Founder and Chief Software Architect
   Omnytex Technologies
   http://www.omnytex.com
   AIM/Yahoo: fzammetti
   MSN: [EMAIL PROTECTED]
   Author of Practical Ajax Projects With Java Technology
   (2006, Apress, ISBN 1-59059-695-1)
   Java Web Parts - http://javawebparts.sourceforge.net
   Supplying the wheel, so you don't have to reinvent it!
  
   On Wed, February 28, 2007 3:54 pm, Maya menon wrote:
All,
   
Have a design issue here. We have a web based application and have
   2000
concurrent users. The requirement is: when new data comes on Oracle
database for users this data has to be sent to the online users on a
real time basis. Someway, the real time data needs to be pushed to
 the
users without the client doing a reload/refresh etc.
   
What technologies can be used here ? Can anyone provide me some
suggestions ?
   
The users login to the application using a web page, this is a web
   based
J2ee application using struts, Oracle database.
   
Thanks,
Maya
   
   
-
Any questions? Get answers on any topic at Yahoo! Answers. Try it
 now.
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
  --
  Hey you! Would you help me to carry the stone? Pink Floyd
 
 
 
  -
  Never Miss an Email
  Stay connected with Yahoo! Mail on your mobile. Get started!




 --
 Hey you! Would you help me to carry the stone? Pink Floyd



 -
 Never miss an email again!
 Yahoo! Toolbar alerts you the instant new Mail arrives. Check it out.




-- 
Hey you! Would you help me to carry the stone? Pink Floyd


 
-
Now that's room service! Choose from over 150,000 hotels 
in 45,000 destinations on Yahoo! Travel to find your fit.

Re: Real time data display in a struts based application.

2007-03-02 Thread Dave Newton
--- Maya menon [EMAIL PROTECTED] wrote:
 I really dont think we can download any of these 
 external libraries. 

I would highly recommend using a library.

If nothing else you'll want Prototype (or a variant,
like prototype-lite etc.) for writing the Javascript
if for no other reason than to avoid writing
cross-browser Javascript, which is just no fun.

d.



 

Don't get soaked.  Take a quick peak at the forecast
with the Yahoo! Search weather shortcut.
http://tools.search.yahoo.com/shortcuts/#loc_weather

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Real time data display in a struts based application.

2007-03-01 Thread Maya menon
Ok, got the difference.
   
  Now being a new bie to AJAX, what are the best techiques that should be used 
to design a well designed web app ?
   
  Again, my page has to show the new data thats being added to database.
   
  Frank told about creating a timed AJAX event. Where can I get more details 
regarding that ? Again will it be possible /scalable for 2000 concurrent users ?
   
  Thanks

Adam Ruggles [EMAIL PROTECTED] wrote:
  The difference between using AJAX and just refreshing a page is a well 
designed AJAX application sends over just the information that is 
needed. For a JSP/HTML page refresh you're sending more data over the 
line. The key here is a well designed AJAX application.

Maya menon wrote:
 Thank you both for your responses.
 
 So AJAX is the technique I should refer. Anyone know of any examples / 
 somethings.
 
 Also, my colleague asked me this question when I talked to him about a timed 
 AJAX event. Why cant we simply refresh the jsp page ? Why should we use AJAX 
 ? so, whats the real advantage of using an AJAX timed event to a normal 
 JSP/HTML refresh ?
 
 Maya

 Musachy Barroso wrote:
 The div tag when used on the ajax theme, has a timer that will make it
 refresh its content from the url specified in the href attribute, examples
 available in showcase and here:

 http://struts.apache.org/2.x/docs/ajax-tags.html

 musachy

 On 2/28/07, Frank W. Zammetti wrote:
 
 Well, if you can live with not literally pushing to the client, this is
 the sort of application AJAX was made for. Have a timed event, every few
 seconds maybe, whatever your tolerable definition of real time is, that
 makes and AJAX request to check for new data and display it when found.
 Pretty easy.

 Have a peak at the AjaxParts Taglib (APT) in Java Web Parts (JWP):

 http://javawebparts.sourceforge.net

 http://javawebparts.sourceforge.net/javadocs/javawebparts/ajaxparts/taglib/package-summary.html

 The benefit is that it will allow you to do this, since it has a timed
 AJAX event function, and will save you from having to write any Javascript
 yourself (most likely).

 Whether you go with APT or not, AJAX is probably the first thing you want
 to look at.

 Frank


 --
 Frank W. Zammetti
 Founder and Chief Software Architect
 Omnytex Technologies
 http://www.omnytex.com
 AIM/Yahoo: fzammetti
 MSN: [EMAIL PROTECTED]
 Author of Practical Ajax Projects With Java Technology
 (2006, Apress, ISBN 1-59059-695-1)
 Java Web Parts - http://javawebparts.sourceforge.net
 Supplying the wheel, so you don't have to reinvent it!

 On Wed, February 28, 2007 3:54 pm, Maya menon wrote:
 
 All,

 Have a design issue here. We have a web based application and have
 
 2000
 
 concurrent users. The requirement is: when new data comes on Oracle
 database for users this data has to be sent to the online users on a
 real time basis. Someway, the real time data needs to be pushed to the
 users without the client doing a reload/refresh etc.

 What technologies can be used here ? Can anyone provide me some
 suggestions ?

 The users login to the application using a web page, this is a web
 
 based
 
 J2ee application using struts, Oracle database.

 Thanks,
 Maya


 -
 Any questions? Get answers on any topic at Yahoo! Answers. Try it now.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 


 



 
-
Looking for earth-friendly autos? 
 Browse Top Cars by Green Rating at Yahoo! Autos' Green Center.  

Re: Real time data display in a struts based application.

2007-02-28 Thread Frank W. Zammetti
Well, if you can live with not literally pushing to the client, this is
the sort of application AJAX was made for.  Have a timed event, every few
seconds maybe, whatever your tolerable definition of real time is, that
makes and AJAX request to check for new data and display it when found. 
Pretty easy.

Have a peak at the AjaxParts Taglib (APT) in Java Web Parts (JWP):

http://javawebparts.sourceforge.net
http://javawebparts.sourceforge.net/javadocs/javawebparts/ajaxparts/taglib/package-summary.html

The benefit is that it will allow you to do this, since it has a timed
AJAX event function, and will save you from having to write any Javascript
yourself (most likely).

Whether you go with APT or not, AJAX is probably the first thing you want
to look at.

Frank


-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM/Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Author of Practical Ajax Projects With Java Technology
 (2006, Apress, ISBN 1-59059-695-1)
Java Web Parts - http://javawebparts.sourceforge.net
 Supplying the wheel, so you don't have to reinvent it!

On Wed, February 28, 2007 3:54 pm, Maya menon wrote:
 All,

   Have a design issue here. We have a web based application and have 2000
 concurrent users. The requirement is: when new data comes on Oracle
 database for users this data has to be sent to the online users on a
 real time basis. Someway, the real time data needs to be pushed to the
 users without the client doing a reload/refresh etc.

   What technologies can be used here ? Can anyone provide me some
 suggestions ?

   The users login to the application using a web page, this is a web based
 J2ee application using struts, Oracle database.

   Thanks,
   Maya


 -
 Any questions?  Get answers on any topic at Yahoo! Answers. Try it now.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Real time data display in a struts based application.

2007-02-28 Thread Musachy Barroso

The div tag when used on the ajax theme, has a timer that will make it
refresh its content from the url specified in the href attribute, examples
available in showcase and here:

http://struts.apache.org/2.x/docs/ajax-tags.html

musachy

On 2/28/07, Frank W. Zammetti [EMAIL PROTECTED] wrote:


Well, if you can live with not literally pushing to the client, this is
the sort of application AJAX was made for.  Have a timed event, every few
seconds maybe, whatever your tolerable definition of real time is, that
makes and AJAX request to check for new data and display it when found.
Pretty easy.

Have a peak at the AjaxParts Taglib (APT) in Java Web Parts (JWP):

http://javawebparts.sourceforge.net

http://javawebparts.sourceforge.net/javadocs/javawebparts/ajaxparts/taglib/package-summary.html

The benefit is that it will allow you to do this, since it has a timed
AJAX event function, and will save you from having to write any Javascript
yourself (most likely).

Whether you go with APT or not, AJAX is probably the first thing you want
to look at.

Frank


--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM/Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Author of Practical Ajax Projects With Java Technology
(2006, Apress, ISBN 1-59059-695-1)
Java Web Parts - http://javawebparts.sourceforge.net
Supplying the wheel, so you don't have to reinvent it!

On Wed, February 28, 2007 3:54 pm, Maya menon wrote:
 All,

   Have a design issue here. We have a web based application and have
2000
 concurrent users. The requirement is: when new data comes on Oracle
 database for users this data has to be sent to the online users on a
 real time basis. Someway, the real time data needs to be pushed to the
 users without the client doing a reload/refresh etc.

   What technologies can be used here ? Can anyone provide me some
 suggestions ?

   The users login to the application using a web page, this is a web
based
 J2ee application using struts, Oracle database.

   Thanks,
   Maya


 -
 Any questions?  Get answers on any topic at Yahoo! Answers. Try it now.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Hey you! Would you help me to carry the stone? Pink Floyd


RE: Real time data display in a struts based application.

2007-02-28 Thread Jose Maria Alvarez Rodriguez
Hi!
 Well, I think that the your technical design requirement can be developed 
using Ajax technologies. In J2EE we have e.g. DWR, http://getahead.ltd.uk/dwr/, 
to use Ajax inside web applications, but the problem could be the comunication 
server-client because the request to update data in client tier is thrown from 
server, this issue causes the need of a listener to attend server requests, in 
http://ajaxpatterns.org/Patterns#Browser-Server_Dialogue you can find 
information about dialogue patterns between client and server, also Ajax 
Patterns web site is a good way to start with ajax tecnologies.

That`s all¡ 

Regards, Ch.

--
Jose María Alvarez Rodriguez
Departamento de I+D+I  -  Fundación CTIC
-Centro Tecnológico de la Información y la Comunicación-
E-mail: [EMAIL PROTECTED]
Tfno:+34 984 29 12 12
Parque Científico Tecnológico Gijón-Asturias-Spain
www.fundacionctic.org



-Mensaje original-
De: Maya menon [mailto:[EMAIL PROTECTED]
Enviado el: mié 28/02/2007 21:54
Para: Struts Users Mailing List
Asunto: Real time data display in a struts based application. 
 
All,
   
  Have a design issue here. We have a web based application and have 2000 
concurrent users. The requirement is: when new data comes on Oracle database 
for users this data has to be sent to the online users on a real time basis. 
Someway, the real time data needs to be pushed to the users without the client 
doing a reload/refresh etc. 
   
  What technologies can be used here ? Can anyone provide me some suggestions ? 
   
  The users login to the application using a web page, this is a web based J2ee 
application using struts, Oracle database. 
   
  Thanks,
  Maya

 
-
Any questions?  Get answers on any topic at Yahoo! Answers. Try it now.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Real time data display in a struts based application.

2007-02-28 Thread Musachy Barroso

You can refresh the page, but that would probably be annoying to the user,
not to mention that data entered on fields will most likely be lost. Using a
div you can update just the part of the page that is important. Using the
div tag in struts:

s:url id=ajaxTest value=/AjaxTest.action /

s:div
 theme=ajax
 href=%{ajaxTest}
 updateFreq=3000/

that will make your div reload the content from AjaxTest.action every 3000
milliseconds. There are many frameworks available, so you can pick one that
fits your needs. For simple scenarios, the div tag will do.

musachy

On 2/28/07, Maya menon [EMAIL PROTECTED] wrote:


Thank you both for your responses.

  So AJAX is the technique I should refer. Anyone know of any examples /
somethings.

  Also, my colleague asked me this question when I talked to him about a
timed AJAX event. Why cant we simply refresh the jsp page ? Why should we
use AJAX ? so, whats the real advantage of using an AJAX timed event to a
normal JSP/HTML refresh ?

  Maya

Musachy Barroso [EMAIL PROTECTED] wrote:
  The div tag when used on the ajax theme, has a timer that will make it
refresh its content from the url specified in the href attribute,
examples
available in showcase and here:

http://struts.apache.org/2.x/docs/ajax-tags.html

musachy

On 2/28/07, Frank W. Zammetti wrote:

 Well, if you can live with not literally pushing to the client, this
is
 the sort of application AJAX was made for. Have a timed event, every few
 seconds maybe, whatever your tolerable definition of real time is,
that
 makes and AJAX request to check for new data and display it when found.
 Pretty easy.

 Have a peak at the AjaxParts Taglib (APT) in Java Web Parts (JWP):

 http://javawebparts.sourceforge.net


http://javawebparts.sourceforge.net/javadocs/javawebparts/ajaxparts/taglib/package-summary.html

 The benefit is that it will allow you to do this, since it has a timed
 AJAX event function, and will save you from having to write any
Javascript
 yourself (most likely).

 Whether you go with APT or not, AJAX is probably the first thing you
want
 to look at.

 Frank


 --
 Frank W. Zammetti
 Founder and Chief Software Architect
 Omnytex Technologies
 http://www.omnytex.com
 AIM/Yahoo: fzammetti
 MSN: [EMAIL PROTECTED]
 Author of Practical Ajax Projects With Java Technology
 (2006, Apress, ISBN 1-59059-695-1)
 Java Web Parts - http://javawebparts.sourceforge.net
 Supplying the wheel, so you don't have to reinvent it!

 On Wed, February 28, 2007 3:54 pm, Maya menon wrote:
  All,
 
  Have a design issue here. We have a web based application and have
 2000
  concurrent users. The requirement is: when new data comes on Oracle
  database for users this data has to be sent to the online users on a
  real time basis. Someway, the real time data needs to be pushed to the
  users without the client doing a reload/refresh etc.
 
  What technologies can be used here ? Can anyone provide me some
  suggestions ?
 
  The users login to the application using a web page, this is a web
 based
  J2ee application using struts, Oracle database.
 
  Thanks,
  Maya
 
 
  -
  Any questions? Get answers on any topic at Yahoo! Answers. Try it now.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




--
Hey you! Would you help me to carry the stone? Pink Floyd



-
Never Miss an Email
Stay connected with Yahoo! Mail on your mobile. Get started!





--
Hey you! Would you help me to carry the stone? Pink Floyd


Re: Real time data display in a struts based application.

2007-02-28 Thread Michael Jouravlev

On 2/28/07, Maya menon [EMAIL PROTECTED] wrote:

  Also, my colleague asked me this question when I talked to him about a timed AJAX 
event. Why cant we simply refresh the jsp page ? Why should we use AJAX ? so, whats 
the real advantage of using an AJAX timed event to a normal JSP/HTML refresh ?


You can. Ajax makes UI smoother and more user-friendly. Not to say
that less data is transferred.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Real time data display in a struts based application.

2007-02-28 Thread Maya menon
Thanks Musachy for your response.
  We use Struts 1.x right now.. Guess we have to update..
  Please send me if yu have any examples/links..
  

Musachy Barroso [EMAIL PROTECTED] wrote:
  You can refresh the page, but that would probably be annoying to the user,
not to mention that data entered on fields will most likely be lost. Using a
div you can update just the part of the page that is important. Using the
div tag in struts:



theme=ajax
href=%{ajaxTest}
updateFreq=3000/

that will make your div reload the content from AjaxTest.action every 3000
milliseconds. There are many frameworks available, so you can pick one that
fits your needs. For simple scenarios, the div tag will do.

musachy

On 2/28/07, Maya menon wrote:

 Thank you both for your responses.

 So AJAX is the technique I should refer. Anyone know of any examples /
 somethings.

 Also, my colleague asked me this question when I talked to him about a
 timed AJAX event. Why cant we simply refresh the jsp page ? Why should we
 use AJAX ? so, whats the real advantage of using an AJAX timed event to a
 normal JSP/HTML refresh ?

 Maya

 Musachy Barroso wrote:
 The div tag when used on the ajax theme, has a timer that will make it
 refresh its content from the url specified in the href attribute,
 examples
 available in showcase and here:

 http://struts.apache.org/2.x/docs/ajax-tags.html

 musachy

 On 2/28/07, Frank W. Zammetti wrote:
 
  Well, if you can live with not literally pushing to the client, this
 is
  the sort of application AJAX was made for. Have a timed event, every few
  seconds maybe, whatever your tolerable definition of real time is,
 that
  makes and AJAX request to check for new data and display it when found.
  Pretty easy.
 
  Have a peak at the AjaxParts Taglib (APT) in Java Web Parts (JWP):
 
  http://javawebparts.sourceforge.net
 
 
 http://javawebparts.sourceforge.net/javadocs/javawebparts/ajaxparts/taglib/package-summary.html
 
  The benefit is that it will allow you to do this, since it has a timed
  AJAX event function, and will save you from having to write any
 Javascript
  yourself (most likely).
 
  Whether you go with APT or not, AJAX is probably the first thing you
 want
  to look at.
 
  Frank
 
 
  --
  Frank W. Zammetti
  Founder and Chief Software Architect
  Omnytex Technologies
  http://www.omnytex.com
  AIM/Yahoo: fzammetti
  MSN: [EMAIL PROTECTED]
  Author of Practical Ajax Projects With Java Technology
  (2006, Apress, ISBN 1-59059-695-1)
  Java Web Parts - http://javawebparts.sourceforge.net
  Supplying the wheel, so you don't have to reinvent it!
 
  On Wed, February 28, 2007 3:54 pm, Maya menon wrote:
   All,
  
   Have a design issue here. We have a web based application and have
  2000
   concurrent users. The requirement is: when new data comes on Oracle
   database for users this data has to be sent to the online users on a
   real time basis. Someway, the real time data needs to be pushed to the
   users without the client doing a reload/refresh etc.
  
   What technologies can be used here ? Can anyone provide me some
   suggestions ?
  
   The users login to the application using a web page, this is a web
  based
   J2ee application using struts, Oracle database.
  
   Thanks,
   Maya
  
  
   -
   Any questions? Get answers on any topic at Yahoo! Answers. Try it now.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 Hey you! Would you help me to carry the stone? Pink Floyd



 -
 Never Miss an Email
 Stay connected with Yahoo! Mail on your mobile. Get started!




-- 
Hey you! Would you help me to carry the stone? Pink Floyd


 
-
Never miss an email again!
Yahoo! Toolbar alerts you the instant new Mail arrives. Check it out.

Re: Real time data display in a struts based application.

2007-02-28 Thread Musachy Barroso

Oops...I can't help it, I always assume we are talking about S2. If you are
using S1, pick an ajax framework, most of them have a Div tag like the one
on S2. See Frank's email for details on one of them.

musachy

On 2/28/07, Maya menon [EMAIL PROTECTED] wrote:


Thanks Musachy for your response.
  We use Struts 1.x right now.. Guess we have to update..
  Please send me if yu have any examples/links..


Musachy Barroso [EMAIL PROTECTED] wrote:
  You can refresh the page, but that would probably be annoying to the
user,
not to mention that data entered on fields will most likely be lost. Using
a
div you can update just the part of the page that is important. Using the
div tag in struts:



theme=ajax
href=%{ajaxTest}
updateFreq=3000/

that will make your div reload the content from AjaxTest.action every
3000
milliseconds. There are many frameworks available, so you can pick one
that
fits your needs. For simple scenarios, the div tag will do.

musachy

On 2/28/07, Maya menon wrote:

 Thank you both for your responses.

 So AJAX is the technique I should refer. Anyone know of any examples /
 somethings.

 Also, my colleague asked me this question when I talked to him about a
 timed AJAX event. Why cant we simply refresh the jsp page ? Why should
we
 use AJAX ? so, whats the real advantage of using an AJAX timed event to
a
 normal JSP/HTML refresh ?

 Maya

 Musachy Barroso wrote:
 The div tag when used on the ajax theme, has a timer that will make it
 refresh its content from the url specified in the href attribute,
 examples
 available in showcase and here:

 http://struts.apache.org/2.x/docs/ajax-tags.html

 musachy

 On 2/28/07, Frank W. Zammetti wrote:
 
  Well, if you can live with not literally pushing to the client, this
 is
  the sort of application AJAX was made for. Have a timed event, every
few
  seconds maybe, whatever your tolerable definition of real time is,
 that
  makes and AJAX request to check for new data and display it when
found.
  Pretty easy.
 
  Have a peak at the AjaxParts Taglib (APT) in Java Web Parts (JWP):
 
  http://javawebparts.sourceforge.net
 
 

http://javawebparts.sourceforge.net/javadocs/javawebparts/ajaxparts/taglib/package-summary.html
 
  The benefit is that it will allow you to do this, since it has a timed
  AJAX event function, and will save you from having to write any
 Javascript
  yourself (most likely).
 
  Whether you go with APT or not, AJAX is probably the first thing you
 want
  to look at.
 
  Frank
 
 
  --
  Frank W. Zammetti
  Founder and Chief Software Architect
  Omnytex Technologies
  http://www.omnytex.com
  AIM/Yahoo: fzammetti
  MSN: [EMAIL PROTECTED]
  Author of Practical Ajax Projects With Java Technology
  (2006, Apress, ISBN 1-59059-695-1)
  Java Web Parts - http://javawebparts.sourceforge.net
  Supplying the wheel, so you don't have to reinvent it!
 
  On Wed, February 28, 2007 3:54 pm, Maya menon wrote:
   All,
  
   Have a design issue here. We have a web based application and have
  2000
   concurrent users. The requirement is: when new data comes on Oracle
   database for users this data has to be sent to the online users on a
   real time basis. Someway, the real time data needs to be pushed to
the
   users without the client doing a reload/refresh etc.
  
   What technologies can be used here ? Can anyone provide me some
   suggestions ?
  
   The users login to the application using a web page, this is a web
  based
   J2ee application using struts, Oracle database.
  
   Thanks,
   Maya
  
  
   -
   Any questions? Get answers on any topic at Yahoo! Answers. Try it
now.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 Hey you! Would you help me to carry the stone? Pink Floyd



 -
 Never Miss an Email
 Stay connected with Yahoo! Mail on your mobile. Get started!




--
Hey you! Would you help me to carry the stone? Pink Floyd



-
Never miss an email again!
Yahoo! Toolbar alerts you the instant new Mail arrives. Check it out.





--
Hey you! Would you help me to carry the stone? Pink Floyd


Re: Real time data display in a struts based application.

2007-02-28 Thread Adam Ruggles
The difference between using AJAX and just refreshing a page is a well 
designed AJAX application sends over just the information that is 
needed.  For a JSP/HTML page refresh you're sending more data over the 
line.  The key here is a well designed AJAX application.


Maya menon wrote:

Thank you both for your responses.
   
  So AJAX is the technique I should refer. Anyone know of any examples / somethings.
   
  Also, my colleague asked me this question when I talked to him about a timed AJAX event. Why cant we simply refresh the jsp page ? Why should we use AJAX ? so, whats the real advantage of using an AJAX timed event to a normal JSP/HTML refresh ?
   
  Maya


Musachy Barroso [EMAIL PROTECTED] wrote:
  The div tag when used on the ajax theme, has a timer that will make it
refresh its content from the url specified in the href attribute, examples
available in showcase and here:

http://struts.apache.org/2.x/docs/ajax-tags.html

musachy

On 2/28/07, Frank W. Zammetti wrote:
  

Well, if you can live with not literally pushing to the client, this is
the sort of application AJAX was made for. Have a timed event, every few
seconds maybe, whatever your tolerable definition of real time is, that
makes and AJAX request to check for new data and display it when found.
Pretty easy.

Have a peak at the AjaxParts Taglib (APT) in Java Web Parts (JWP):

http://javawebparts.sourceforge.net

http://javawebparts.sourceforge.net/javadocs/javawebparts/ajaxparts/taglib/package-summary.html

The benefit is that it will allow you to do this, since it has a timed
AJAX event function, and will save you from having to write any Javascript
yourself (most likely).

Whether you go with APT or not, AJAX is probably the first thing you want
to look at.

Frank


--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM/Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Author of Practical Ajax Projects With Java Technology
(2006, Apress, ISBN 1-59059-695-1)
Java Web Parts - http://javawebparts.sourceforge.net
Supplying the wheel, so you don't have to reinvent it!

On Wed, February 28, 2007 3:54 pm, Maya menon wrote:


All,

Have a design issue here. We have a web based application and have
  

2000


concurrent users. The requirement is: when new data comes on Oracle
database for users this data has to be sent to the online users on a
real time basis. Someway, the real time data needs to be pushed to the
users without the client doing a reload/refresh etc.

What technologies can be used here ? Can anyone provide me some
suggestions ?

The users login to the application using a web page, this is a web
  

based


J2ee application using struts, Oracle database.

Thanks,
Maya


-
Any questions? Get answers on any topic at Yahoo! Answers. Try it now.
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]