首页 > 学院 > 开发设计 > 正文

《Java极限编程》(Java Tool for Extreme Programming)读书笔记 (2)

2019-11-18 11:00:30
字体:
来源:转载
供稿:网友

第二章 J2EE部署其实这一章所讲的作为一个java开发人员,尤其是J2EE开发人员,是几乎可以跳过的,因为这是基本常识,都应该懂。不过有点满有意思的:

原来只知道这样:<applet code="XPtoolkit.applet.HelloWorldApplet"         archive="helloapplet.jar" width=200 height=200></applet>

没想到还能这样:<object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"         codebase="http://java.sun.com/PRodUCts/plugin/1.2.2/jinstall-1_2_2-win.cab#Version=1,2,2,0"         height="200" width="200" align="center"><param name="java_code" value="xptoolkit.applet.HelloWorldApplet"><param name="java_archive" value="helloapplet.jar"><param name="type" value="application/x-java-applet"><comment><embed type="application/x-java-applet"       codebase="http://java.sun.com/products/plugin/"       height="200" width="200" align="center"       java_code="xptoolkit.applet.HelloWorldApplet"       java_archive="helloapplet.jar"><noembed></comment>  <p> Java is cool. Get a browser that supports the plugin.    </ br>  </p></noembed></embed></object>

甚至于jsp简化成这样:<JSP:plugin type="applet"            code="xptoolkit.applet.HelloWorldApplet"            archive="helloapplet.jar"            height="200"            width="200"            align="center">  <JSP:fallback><!-- This fallback message will display if the plugin does not work. /-->    <p> Java is cool. Get a browser that supports the plugin. </ br>      Or we will hunt you down and melt your computer!    </p>  </JSP:fallback></JSP:plugin>

不过也正常实际工作中基本没用到applet,自然也不会知道。不过中间那段代码满有意思,是分别利用了IE和NN所支持的tag,能想出这么用确实智商非常高啊。佩服~:)不过据做页面和JS的朋友介绍,这在他们那个领域里也是常识,而且是很老的常识,:(被嘲笑了一把。

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表