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 / First Aid / August 2006

Tip: Looking for answers? Try searching our database.

What happens during a page refresh?

Thread view: 
Redbeard - 25 Aug 2006 15:13 GMT
Just so it is clear, I am NOT trying to refresh the HTML page via Java.
I searched the group archives and found a ton of threads dealing with
that, so I realize that it a common question.  But that is NOT what I'm
trying to do.

Instead, I am trying to figure out what happens to a java applet when
the HTML page it is embedded in gets refreshed. Does it go through
init() again?  start()?

I have an applet that includes an array. When I refresh the page a few
times, I start getting an OutOfBounds exception. I'm certain that the
error must be related to the refresh action, as  I cannot see any way
this exception could occur normally. Which means I can't really fix the
problem unless I know how refreshing the page affects the applet.

Granted, this is a higly unlikely set of events - why would someone
normally hit refresh over and over - but I'd like to fix the problem
anyway.
Oliver Wong - 25 Aug 2006 15:20 GMT
> Just so it is clear, I am NOT trying to refresh the HTML page via Java.
> I searched the group archives and found a ton of threads dealing with
[quoted text clipped - 14 lines]
> normally hit refresh over and over - but I'd like to fix the problem
> anyway.

   See
http://java.sun.com/docs/books/tutorial/deployment/applet/lifeCycle.html

   Ideally init() only gets called once, and start() is called multiple
times, but some browsers don't implement this correctly.

   - Oliver
Redbeard - 25 Aug 2006 16:59 GMT
> > Just so it is clear, I am NOT trying to refresh the HTML page via Java.
> > I searched the group archives and found a ton of threads dealing with
[quoted text clipped - 22 lines]
>
>     - Oliver
That is what I thought.  I don't have any code outside of the init()
method that could explain the OutOfBounds exception.  Maybe a kludge is
going to be necessary. :(


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



©2008 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.