質問編集履歴
5
削除
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,55 +1,5 @@
|
|
1
1
|
```JAVA
|
2
2
|
|
3
|
-
package action;
|
4
|
-
|
5
|
-
import java.util.HashMap;
|
6
|
-
|
7
|
-
import java.util.Map;
|
8
|
-
|
9
|
-
import java.util.Properties;
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
import javax.mail.Message;
|
14
|
-
|
15
|
-
import javax.mail.MessagingException;
|
16
|
-
|
17
|
-
import javax.mail.Session;
|
18
|
-
|
19
|
-
import javax.mail.Transport;
|
20
|
-
|
21
|
-
import javax.mail.internet.InternetAddress;
|
22
|
-
|
23
|
-
import javax.mail.internet.MimeMessage;
|
24
|
-
|
25
|
-
import javax.servlet.http.HttpServletRequest;
|
26
|
-
|
27
|
-
import javax.servlet.http.HttpServletResponse;
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
import org.apache.struts.action.ActionForm;
|
32
|
-
|
33
|
-
import org.apache.struts.action.ActionForward;
|
34
|
-
|
35
|
-
import org.apache.struts.action.ActionMapping;
|
36
|
-
|
37
|
-
import org.apache.struts.action.ActionMessage;
|
38
|
-
|
39
|
-
import org.apache.struts.action.ActionMessages;
|
40
|
-
|
41
|
-
import org.apache.struts.actions.LookupDispatchAction;
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
import action.form.MailForm2;
|
46
|
-
|
47
|
-
import action.form.Mailform;
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
import common.DBchinuki;
|
52
|
-
|
53
3
|
|
54
4
|
|
55
5
|
|
4
追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -298,6 +298,8 @@
|
|
298
298
|
|
299
299
|
Aと同じ
|
300
300
|
|
301
|
+
return mapping.findForward("forget");
|
302
|
+
|
301
303
|
} ← ここでエラー発生 }が足りません
|
302
304
|
|
303
305
|
}← ここに足すとさらにエラーが出ます
|
3
詳細追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -300,6 +300,18 @@
|
|
300
300
|
|
301
301
|
} ← ここでエラー発生 }が足りません
|
302
302
|
|
303
|
+
}← ここに足すとさらにエラーが出ます
|
304
|
+
|
305
|
+
|
306
|
+
|
307
|
+
エラーがあと一つなので 適切な }の位置を見つけたいです
|
308
|
+
|
309
|
+
どこに }をいれたらよいでしょうか
|
310
|
+
|
311
|
+
|
312
|
+
|
313
|
+
|
314
|
+
|
303
315
|
|
304
316
|
|
305
317
|
|
2
変更
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
dispatch action のエラーで困っています
|
test
CHANGED
File without changes
|
1
個人情報削除
test
CHANGED
File without changes
|
test
CHANGED
@@ -178,7 +178,7 @@
|
|
178
178
|
|
179
179
|
|
180
180
|
|
181
|
-
DB
|
181
|
+
DBooo db = new DBoooo();
|
182
182
|
|
183
183
|
db.getDBConnection(url,user,pass);
|
184
184
|
|
@@ -226,7 +226,7 @@
|
|
226
226
|
|
227
227
|
//ToAddressのセット
|
228
228
|
|
229
|
-
InternetAddress toAddress =new InternetAddress("
|
229
|
+
InternetAddress toAddress =new InternetAddress("333.ppp.co.jp","ゲストさん");
|
230
230
|
|
231
231
|
mimeMessage1.setRecipient(Message.RecipientType.TO,toAddress);
|
232
232
|
|
@@ -234,7 +234,7 @@
|
|
234
234
|
|
235
235
|
//FRomAdressnoセット
|
236
236
|
|
237
|
-
InternetAddress fromAddress = new InternetAddress("
|
237
|
+
InternetAddress fromAddress = new InternetAddress("111@ihos.co.jp","管理者");
|
238
238
|
|
239
239
|
mimeMessage1.setFrom(fromAddress);
|
240
240
|
|