tags:

views:

28

answers:

1

Guys, is it possible to refresh a part of a page in struts without using ajax. kindly let me know.

A: 

You can add a JavaScript function to the page which loads a string from somewhere and assigns it to innerHtml of some element.

To invoke the function, either use a timer or call it when the user clicks on a button or a link.

If you need a more specific answer, ask a more specific question, please.

Aaron Digulla
@Aaron you soultion is without ajax , i.e. using iframe
Suresh S
thanks Aaron for your comments.
Suresh S
No iframe, just use a `DIV` or any other basic HTML element. Note that the web browser will "hang" while your code is executed (which is the main reason for AJAX).
Aaron Digulla
@Aaron can we refresh a div element from server without refreshing whole page.
Suresh S
Using AJAX, it's possible to change anything inside the <DIV> tag. Without refresh the whole page.
dotNET
But the OP asked **"without using ajax"**
Aaron Digulla