Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how can i check if stop() method is called in applet ..

 
sarim raza
Ranch Hand
Posts: 232
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
System.out.println() cannot work i guess since, this is an applet embedded in a jsp page .., if i try to write a message to a textarea in the applet, when the stop() method is called how can i see it, since the page would have already changed ?
will other browsers be able to see the change affected by the first one ?
simply how can i check if the stop method of applet is being called when user leaves the page ?
thanks
 
Heath Lilley
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Both IE and Netscape allow you to enable a java console that (among other things) captures stdout.
If you put System.out.println("FOO"); in the stop() method you should see the FOO in the java console.
I'm not sure how to turn the console on in Netscape but in IE its under Tools->Internet Options-> advanced->Microsoft VM-> Java Console Enabled (Requires Restart)
To view the java console in IE once the page that has the applet is loaded in the System tray of Windows double click on the JAVA Icon (Its either Duke or the Coffee Cup picture).
Hope this helps.
[ August 05, 2002: Message edited by: Heath Lilley ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic