• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applet running on tomcat

 
Atul Mishra
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have an applet running from an html file in tomcat.
I use eclipse+tomcat and have the applet's class in webcontent folder of eclipse's project workspace.

My question is, where are the system.out.println() statement's outputs from applet gets printed out ?
how do i see the o/p messages ?

i put some SOP statements in applet's init method. Applet gets initiated but I want to see the SOP statements getting displayed and producing outputs. Where in eclipse can I see those outputs ?
Please help
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the "Java Console" of your web browser. Details on how to display this vary depending on your browser and JVM implementation.
 
Atul Mishra
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ernest. Found it.

Also, my applet needs an argument while running. Like it needs a -D parameter value.
I can set it if I use appletviewer to run the applet. Now if I run the applet from html and using tomcat, how do I set the run time argument. This is a question off the topic. Dont know whether it requires a different post.

Thanks
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's what the PARAM element inside of the APPLET tag is for. See here for details.
 
Atul Mishra
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks ..
Worked well.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic