| |
第二章 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的朋友介绍,这在他们那个领域里也是常识,而且是很老的常识,:(被嘲笑了一把。
|
|