Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2005

Tip: Looking for answers? Try searching our database.

Automatic Refresh

Thread view: 
raavi - 24 Nov 2005 09:23 GMT
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.
Viator - 25 Nov 2005 04:07 GMT
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 :-)
raavi - 26 Nov 2005 06:16 GMT
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?
raavi - 26 Nov 2005 08:26 GMT
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 :-)


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.