Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dynamic display

Status
Not open for further replies.

satellite03

IS-IT--Management
Dec 26, 2003
248
IN
i have a java program which generates output mesages one by one with some interval . i want to display those messages on the webpage one by one (with newline )dynamically.how can i do it ? is it possible in DHTML ?
 
Where is the Java program running? Is is an application or a servlet running on the server? Or is it an applet running in the browser?

Never be afraid to share your dreams with the world.
There's nothing the world loves more than the taste of really sweet dreams.
 
Where is the servlet currently outputting the messages?

A servlet should already be writing back to the browser, so it shouldn't be too hard to write the messages back out. Your best bet is really the Java forum.

Never be afraid to share your dreams with the world.
There's nothing the world loves more than the taste of really sweet dreams.
 
servlet is outputting message to a jsp page. but i want dynamicness.i can rename my html with .jsp extension. can u suggest how can i do it in html ?
 
in fact i am using struts framework. its complex.but i need from you ...i need a dynamic html which will display messages line by line .can u help me how could i do it ?

rest of the thing i would try to manage....
 
actually my program will be sending data one by one and i also want to display them one by one in the page as soon as they will be coming...i dont know how can i achieve that or what technology to use ? can't it be done in dhtml ?
 
You could try a static web page, with an embedded applet. The applet connects to the servlet and displays the lines as they come. Depending on how the original servlet is coded, it may need updating (but of course, you've followed MVC best practice, right?!)

Web pages aren't designed to be real-time dynamic; using DHTML might be more trouble than it's worth. For me, an applet seems the simplest approach.

<marc> i wonder what will happen if i press this...[ul][li]please tell us if our suggestion has helped[/li][li]need some help? faq581-3339[/li][/ul]
 
The only other option would be an IE only solution. To use the MSXML framework's HTTP request object to connect to the servlet and write out the responses to a div tag... but that limits you to windowz/IE only.

Never be afraid to share your dreams with the world.
There's nothing the world loves more than the taste of really sweet dreams.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top