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?
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
Viator - 28 Nov 2005 17:13 GMT
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 :-)