"Marjon v.d. Broek" wrote:
>
> Thanks, it works but it doesn't solve my problem. I need the host and port
> to invoke a servlet but it seems that the servlet is invoked before the
> init() method is invoked. So I still don't have the applet URL when I invoke
> the servlet.
> How and when does a browser invoke the init() method of an applet.
The standard lifetime routine is
Constructor
init()
start()
stop()
destroy()
The constructor and init one ever get called once - when the application
is first run. Then, once the page is ready to load, start() is called.
Each time the page your applet is run is shown (forward/back buttons
etc) the start() method is called. That is init() is only ever called
once but start() many times. From readin between the lines of your post
I think you'd be looking for start().
--
Justin Couch Author, Java Hacker
Software Architect [EMAIL PROTECTED]
rbuzz.net http://www.vlc.com.au/~justin/
Java3D FAQ http://www.j3d.org/faq/
-------------------------------------------------------------------
"Look through the lens, and the light breaks down into many lights.
Turn it or move it, and a new set of arrangements appears... is it
a single light or many lights, lights that one must know how to
distinguish, recognise and appreciate? Is it one light with many
frames or one frame for many lights?" -Subcomandante Marcos
-------------------------------------------------------------------
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".