質問編集履歴
1
該当のソースコードの追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -46,6 +46,31 @@
|
|
46
46
|
```
|
47
47
|
|
48
48
|
```JavaServlet
|
49
|
+
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
|
50
|
+
|
51
|
+
try {
|
52
|
+
|
53
|
+
String script = request.getParameter("script");
|
54
|
+
|
55
|
+
CompileLogic bo = new CompileLogic();
|
56
|
+
String result = bo.execute(script_f);
|
57
|
+
|
58
|
+
PrintWriter pw = response.getWriter();
|
59
|
+
|
60
|
+
pw.print(result);
|
61
|
+
|
62
|
+
pw.close();
|
63
|
+
|
64
|
+
} catch(Exception e) {
|
65
|
+
e.printStackTrace();
|
66
|
+
}
|
67
|
+
|
68
|
+
}
|
69
|
+
|
70
|
+
}
|
71
|
+
```
|
72
|
+
|
73
|
+
```Java
|
49
74
|
package model;
|
50
75
|
|
51
76
|
import java.io.BufferedReader;
|