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

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

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

Real time data display in a struts based application.

2007-02-28 Thread Maya menon
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

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

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:

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

2007-02-28 Thread Jose Maria Alvarez Rodriguez
-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

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

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 ?

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

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.

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