aspose file tools*
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
Author

Applet running on tomcat

Atul Mishra
Ranch Hand

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

Joined: Jul 08, 2003
Posts: 24187
    
  34

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.

Thanks
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42600
    
  65
That's what the PARAM element inside of the APPLET tag is for. See here for details.


Ping & DNS - my free Android networking tools app
Atul Mishra
Ranch Hand

Joined: Jun 08, 2006
Posts: 140
Thanks ..
Worked well.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Applet running on tomcat