File: java2.jsp

package info (click to toggle)
gnujsp 1.0.0-6
  • links: PTS
  • area: contrib
  • in suites: woody
  • size: 2,292 kB
  • ctags: 781
  • sloc: jsp: 4,932; java: 4,052; makefile: 173; sh: 61
file content (17 lines) | stat: -rw-r--r-- 500 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<html>
  <head> <title>Java Test</title> </head>
<%! class Java1Test {
        public Java1Test() {}
        public String getValue() { return "not-set"; }
    }
    class Java1TestSub extends Java1Test{
        public Java1TestSub() {}
        public String getValue() { return "value1"; }
    }
%>
  <body>
    <h1>Java Test</h1>
    This JSP-Page tests use of a local derived class.<br>
Value: <% Java1Test jt = (Java1Test) new Java1TestSub(); out.println(jt.getValue()); %>
      </body>
</html>