public class VC extends JApplet implements ActionListener {
private JButton save = null;
public void init() {
//Ìí¼Ó°´Å¥
save = new JButton(" ÅÄ ÕÕ ");
//Ôö¼Óʼþ
save.addActionListener(this);
//Ìí¼ÓÃæ°å
Panel panel1 = new Panel(new FlowLayout());
panel1.add(save, BorderLayout.SOUTH);
add(panel1, BorderLayout.CENTER);
}
/**
*
* µã»÷ÅÄÕÕ
*/
public void actionPerformed(ActionEvent e) {
System.out.println("ÏìӦʼþ");
}
}
Õâ¶Î³ÌÐòΪʲôǩµ½jspÖоͲ»ºÃÓÃÁËÄØ?Çó¸ßÈËÖ¸µã
ʼþ´¦ÀíµÄ·½·¨Êǵ¥»÷°´Å¥±£´æÍ¼Æ¬µÄ.ÓÃmainÔËÐкÃÓÃ. Ç©µ½Ò³ÃæÎÞЧÁË.
public void actionPerformed(ActionEvent e) {
FrameGrabbingControl fgc = (FrameGrabbingControl) player.getControl("javax.media.control.FrameGrabbingControl");
buf = fgc.grabFrame();
btoi = new BufferToImage((VideoFormat) buf.getFormat());
img = btoi.createImage(buf);
BufferedImage bi = new BufferedImage(img.getWidth(null), img.getHeight(null), BufferedImage.TYPE_INT_RGB);
Graphics2D g2 = bi.createGraphics();
g2.drawImage(img, null, null);
//Óÿͻ§µÄsessionµÄid½¨Á¢Ò»¸öÁÙʱÎļþ£º
//String tempFileName=(String)session.getId();
String tempFileName = (String)session.getId();
//out.println(& ......
ÎÒÔÚjspÒ³Ãæ²éѯµ½Êý¾Ý¿âÖеÄÒ»±ÊÊý¾Ý£¬²¢ÒÔtableÑ»·µÄÐÎʽÏÔʾ£¬µ«ÐèÒªÏÂÔØ±£´æ³Éhtml¸ñʽ£¬ÇëÎÊÓ¦¸Ã´¦Àí£¿´úÂëÓÐûÓÐÌØÊâÒªÇó£¿ÊDz»ÊÇÐèÒªÌØ±ðµÄjar°ü£¿
ÄãÕâÊǰѱ¨±í±£´æÎªHTML¸ñʽ£¬²»ÖªÓÐʲôÓô¦£¬
ÒªÊÇ ......
×î½üÓöµ½Ò»Ð© jspÒ³ÃæµÄȡֵ¡£Ã»Óмû¹ý¡£Ò²²»ÖªµÀʲôÒâ˼¡£ÄÄλ´óÏÀ¸øÎÒ˵˵ ȡֵµÄÖÖÀàºÍ·½·¨°¡
request.getParameter£¬»òÕßÓÃbean£¬¼´ÔÚjspÒ³ÃæÖÐÉùÃ÷jsp:usebeanÖ®ºó¿ÉÒÔÖ±½Ósetproperty »òÕßgetproperty¡£Ò ......