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.

Reply via email to