how to print from an applet to console
843807Dec 29 2004 — edited Dec 30 2004Hi,
I'm passing my applet a parameter then I'm trying to print it using System.out.println but I don't see any output. My web app is deployed in weblogic 7. From the html page I pass in applet param but I don't see any out put in weblogic console.How can I see the output. here is what I have in my html page.
<APPLET codebase="classes" code="taqDingHILoNew.class" width=550 height=420
archive="../../../lib/EspressAPI.jar">
<PARAM name="cabbase" value="../../../lib/EspressAPI.cab">
<PARAM NAME=FontName VALUE="Arial" >
</APPLET>
And here is code for my applet. Any help would be greatly appreciated.
public class taqDingHILoNew extends Applet implements ActionListener{
TextField tf;
public static void main(String argv[]){
taqDingHILoNew chartFrame = new taqDingHILoNew();
Frame frame = new Frame();
frame.setLayout(new BorderLayout());
frame.add("Center", chartFrame.createComponent2(null));
frame.pack();
frame.show();
}
public void init() {
setLayout(new BorderLayout());
String param = this.getParameter("FontName");
System.out.println("GOT APPLET PARAM " + param);
add("Center", createComponent2(this));
}
Component createComponent2(Applet applet) {
QbChart.setChartServerUsed(false);
setLayout(new BorderLayout());
// primary axis value column 3
// secondary axis value column 2
// ColInfo(series, category, sumby, primary_value, secondary_value)
QbChart chart;
String param = this.getParameter("FontName");
System.out.println("GOT APPLET PARAM " + param);