Automatic Refresh

R

raavi

Hi
i am now engaged in softwaredevelopment which is now using struts
framework. i want to refresh a JSP page. i want to use ajax...if anyone
has any idea pls do tell me.
Thanx in advance.
 
V

Viator

Can you tell you problem in a bit of detail.Why do you want to refresh
a page? Hwo will initiate the refresh client or the server? Is the
refresh time bound or event driven. If event driven then where the even
occurs on the client or the server?

Amit :)
 
R

raavi

Hi
here in a jsp page i am writing the results which are setters of
property values in a bean.i want to refresh that page..its redirect is
set to true.the client pgm on invoking the server will get results
which change on each second depending on the trap sent....got the pbm?
 
R

raavi

Hi
the project application i am doing consists of 3 actionclasses,3
action forms and 3 jsp pages and a properties file.the first jsp file
is the input page where username and password are entered the first
action will validate the username and password and then forward to the
second action where some socket connections are made and the connection
is made to the server and a linked list is the result obtained...and
forwarded to the second jsp page where it is displayed.actually the
whole string is to be displayed as such ,so it is forwarded to the
third action where same execution method is carried out..and result is
displayed as a string... on manual refresh i think the same action will
be called and refresh occurs..but it does not take place...so what is
to be done? redirect of jsp page is given as true...also pls tell me
how to refresh a page automatically...thanks in advance
 
V

Viator

To automatically refresh a page you can use META refresh="...." tags.
See any HTTP/HTML reference for the same on Internet. For manual
refresh if your page is not showing current data add these lines to the
JSP page

response.setHeader("Pragma","no-cache");
response.setHeader("Cache-Control","no-cache");
response.setDateHeader("Expires",0);

Amit :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top