-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlist.jsp
More file actions
133 lines (118 loc) · 2.85 KB
/
Copy pathlist.jsp
File metadata and controls
133 lines (118 loc) · 2.85 KB
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<%@ page language="java" contentType="text/html; charset=EUC-KR"
pageEncoding="EUC-KR"%>
<%@ page import="java.util.*, java.io.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">
<title>Debate</title>
<style>
.cssZoom{
border:1px solid #ccc;
padding:1px;
margin-top:1px;
width:640px;
height:480px;
overflow:hidden;
}
.cssZoom iframe{
-ms-zoom: 0.9;
-moz-transform: scale(0.9);
-moz-transform-origin: 0 0;
-o-transform: scale(0.9);
-o-transform-origin: 0 0;
-webkit-transform: scale(0.9);
-webkit-transform-origin: 0 0;
transform: scale(1);
transform-origin: 0 0;
border:1px solid #ccc;
border:1px solid #ccc;
top:0px;
left:0px;
width:100%;
height:100%;
}
.cssZoom2{
border:1px solid #ccc;
padding:1px;
margin-top:1px;
width:203px;
height:144px;
overflow:hidden;
}
.cssZoom2 iframe{
-ms-zoom: 0.5;
-moz-transform: scale(0.5);
-moz-transform-origin: 0 0;
-o-transform: scale(0.5);
-o-transform-origin: 0 0;
-webkit-transform: scale(0.5);
-webkit-transform-origin: 0 0;
transform: scale(0.3);
transform-origin: 5 0;
border:0px solid #ccc;
border:0px solid #ccc;
top:0px;
left:0px;
width:320%;
height:336%;
}
</style>
</head>
<script type="text/javascript">
setTimeout("history.go(0);",10000);
</script>
<body onload="">
<%
ArrayList<String> iplist = new ArrayList<String>();
BufferedReader fb;
BufferedReader fb2;
try {
fb = new BufferedReader(new FileReader("C:\\Users\\Playdata\\Desktop\\workspace\\Mini Project\\WebContent\\iplist.txt"));
fb2 = new BufferedReader(new FileReader("C:\\Users\\Playdata\\Desktop\\workspace\\Mini Project\\WebContent\\speakerip.txt"));
String ips = null;
while (fb.read()!=-1){
ips = fb.readLine();
System.out.println("iplist:"+ips);
}
String speakerIp = fb2.readLine();
System.out.println("speakerip:"+speakerIp);
fb.close();
fb2.close();
String[] tmp = {""};
if(ips != null)
tmp = ips.split("/");
%>
<table border="1" width="100" height="150">
<tr><th>발언자</th><th>참여자들</th></tr>
<tr><td rowspan="3">
<div class="cssZoom">
<iframe frameborder="0" src="http://<%=speakerIp%>:8091/javascript_simple.html" scrolling="no"></iframe>
</div>
</td>
<%
//테이블2: 나머지 클라이언트
System.out.println("check1");
for(int i=0;i<tmp.length;i++){
System.out.println(i+":"+tmp[i]);
if(i!=0){ %>
<tr>
<%} %>
<td><div class="cssZoom2">
<iframe src="http://<%=tmp[i]%>:8091/javascript_simple.html" scrolling="no"></iframe></div></td>
</tr>
<%
System.out.println("check2");
}
} catch (FileNotFoundException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
%>
</table>
</body>
</html>