Struts ActionForm
来源:百度知道 编辑:UC知道 时间:2024/05/14 17:00:12
Exception creating bean of class com.ourpro.form.dealingzone.CommentInfoFormForm:
也不知道甚么原因,也没改甚么的似乎,过段时间又可以正常运行了。不晓得有谁能告诉我怎么回事么?期待大家的回答,万分感谢!
import java.awt.*;
import java.awt.event.*;
import java.applet.*;
public class Counter1 extends Applet {
private int count = 0;
private Button
onOff = new Button("on_of"),
start = new Button("Start");
private TextField t = new TextField(10);
private boolean runFlag = true;
public void init() {
add(t);
start.addActionListener(new StartL());
add(start);
onOff.addActionListener(new OnOffL());
add(onOff);
}
public void go(){new Thread(){
public void run(){
try {
Thread.currentThread().sleep(1000);
} catch (InterruptedException e){}
if(runFlag)
t.setText(Integer.toString(count++));
}
}.start();
}
class StartL implements ActionListener {
public void actionPerformed(ActionEvent e) {
go();
}
}
class OnOffL implements ActionListener {
public void actionP