1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
|
<html>
<jsp:directive.page language="javascript"/>
<body bgcolor="white">
<ul>
<li>
<jsp:scriptlet>
out.println("Hello from JavaScript");
</jsp:scriptlet>
</li>
<li><% out.println ("Hello from Java<br/>"); %></li>
<li>
<jsp:scriptlet language="java">out.println("Hey. (from Java)");</jsp:scriptlet>
</li>
<li>
<jsp:scriptlet language="bml">
<call-method target="out" name="println">
<bean class="java.lang.StringBuffer">
<args>
<string value="Java Version: "/>
</args>
<call-method name="append">
<call-method target="class:java.lang.System" name="getProperty">
<string value="java.version"/>
</call-method>
</call-method>
<call-method name="append">
<string value=" (from BML)"/>
</call-method>
</bean>
</call-method>
</jsp:scriptlet>
</li>
<li>
<jsp:scriptlet language="bml">
<call-method target="out" name="println">
<bean class="java.lang.StringBuffer">
<args>
<string value="Java Home: "/>
</args>
<call-method name="append">
<call-method target="class:java.lang.System" name="getProperty">
<string value="java.home"/>
</call-method>
</call-method>
<call-method name="append">
<string value=" (from BML, again)"/>
</call-method>
</bean>
</call-method>
</jsp:scriptlet>
</li>
</ul>
</body>
</html>
|