File: multitest.jsp

package info (click to toggle)
libbsf-java 1%3A2.3.0%2Bcvs20050308a-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,460 kB
  • ctags: 1,264
  • sloc: java: 7,643; cpp: 2,514; xml: 1,773; jsp: 463; ansic: 182; makefile: 61; python: 45; sh: 29
file content (66 lines) | stat: -rw-r--r-- 1,420 bytes parent folder | download | duplicates (2)
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>