my dog learned polymorphism
The moose likes Applets and the fly likes Applet running on tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Applet running on tomcat" Watch "Applet running on tomcat" New topic

Applet running on tomcat

Atul Mishra
Ranch Hand

Joined: Jun 08, 2006
Posts: 140

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

Joined: Jul 08, 2003
Posts: 24199

In the "Java Console" of your web browser. Details on how to display this vary depending on your browser and JVM implementation.

[Jess in Action][AskingGoodQuestions]
Atul Mishra
Ranch Hand

Joined: Jun 08, 2006
Posts: 140
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.

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
That's what the PARAM element inside of the APPLET tag is for. See here for details.
Atul Mishra
Ranch Hand

Joined: Jun 08, 2006
Posts: 140
Thanks ..
Worked well.
I agree. Here's the link:
subject: Applet running on tomcat
It's not a secret anymore!