質問編集履歴
1
該当のソースコードの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -94,6 +94,56 @@
|
|
94
94
|
|
95
95
|
```JavaServlet
|
96
96
|
|
97
|
+
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
try {
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
String script = request.getParameter("script");
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
CompileLogic bo = new CompileLogic();
|
110
|
+
|
111
|
+
String result = bo.execute(script_f);
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
PrintWriter pw = response.getWriter();
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
pw.print(result);
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
pw.close();
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
} catch(Exception e) {
|
128
|
+
|
129
|
+
e.printStackTrace();
|
130
|
+
|
131
|
+
}
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
}
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
}
|
140
|
+
|
141
|
+
```
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
```Java
|
146
|
+
|
97
147
|
package model;
|
98
148
|
|
99
149
|
|