回答編集履歴

1

動作検証済みJSPを記載

2016/08/11 11:48

投稿

A-pZ
A-pZ

スコア12011

test CHANGED
@@ -35,3 +35,93 @@
35
35
 
36
36
 
37
37
  ですよね。
38
+
39
+
40
+
41
+ 以下、動作検証済みのJSPを置きますので、参考にしてください。
42
+
43
+
44
+
45
+ ```html
46
+
47
+ <%@ page language="java" contentType="text/html; charset=UTF-8"
48
+
49
+ pageEncoding="UTF-8"%>
50
+
51
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
52
+
53
+ <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
54
+
55
+ <html>
56
+
57
+ <head>
58
+
59
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
60
+
61
+ <title></title>
62
+
63
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jstree/3.2.1/themes/default/style.min.css" type="text/css" />
64
+
65
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.12.1/jquery.min.js"></script>
66
+
67
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/jstree/3.2.1/jstree.min.js"></script>
68
+
69
+ </head>
70
+
71
+ <body>
72
+
73
+ <script type="text/javascript">
74
+
75
+ $(function () {
76
+
77
+ $("#div795").jstree({ 'core' : {
78
+
79
+ "data": jsonData795
80
+
81
+ }});
82
+
83
+ });
84
+
85
+ jsonData795 = [
86
+
87
+ 'Simple root node',
88
+
89
+ {
90
+
91
+ 'text' : 'Root node 2',
92
+
93
+ 'state' : {
94
+
95
+ 'opened' : true,
96
+
97
+ 'selected' : true
98
+
99
+ },
100
+
101
+ 'children' : [
102
+
103
+ {
104
+
105
+ 'text' : 'Child 1'
106
+
107
+ },
108
+
109
+ 'Child 2'
110
+
111
+ ]
112
+
113
+ }
114
+
115
+ ];
116
+
117
+ </script>
118
+
119
+ ツリーサンプル
120
+
121
+ <div id="div795"></div>
122
+
123
+ </body>
124
+
125
+ </html>
126
+
127
+ ```