Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
em
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ichikawa
em
Commits
944e22af
Commit
944e22af
authored
Feb 15, 2024
by
Kim Gyeongeun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ポイント利用し、住所が未入力の場合、エラーメッセージをまとめて表示するように修正
parent
8fb7a80c
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
53 additions
and
80 deletions
+53
-80
src/main/java/jp/agentec/sinaburocast/action/user/MyPageAction.java
+5
-4
src/main/java/jp/agentec/sinaburocast/action/user/UserEditAction.java
+38
-69
src/main/webapp/WEB-INF/view/mb/user/regist/regist.html
+2
-2
src/main/webapp/WEB-INF/view/mb/user/userEdit/uEdit.html
+2
-2
src/main/webapp/WEB-INF/view/sp/user/regist/regist.html
+2
-1
src/main/webapp/WEB-INF/view/user/regist/regist.html
+2
-1
src/main/webapp/WEB-INF/view/user/userEdit/uEdit.html
+2
-1
No files found.
src/main/java/jp/agentec/sinaburocast/action/user/MyPageAction.java
View file @
944e22af
...
@@ -7,6 +7,10 @@ import java.util.Calendar;
...
@@ -7,6 +7,10 @@ import java.util.Calendar;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
import
org.apache.log4j.Logger
;
import
org.seasar.struts.annotation.ActionForm
;
import
org.seasar.struts.annotation.Execute
;
import
jp.agentec.sinaburocast.action.AbstractAction
;
import
jp.agentec.sinaburocast.action.AbstractAction
;
import
jp.agentec.sinaburocast.common.SinaburoConstant
;
import
jp.agentec.sinaburocast.common.SinaburoConstant
;
import
jp.agentec.sinaburocast.common.util.SinaburoUtil
;
import
jp.agentec.sinaburocast.common.util.SinaburoUtil
;
...
@@ -22,10 +26,6 @@ import jp.agentec.sinaburocast.service.MessageService;
...
@@ -22,10 +26,6 @@ import jp.agentec.sinaburocast.service.MessageService;
import
jp.agentec.sinaburocast.service.PointGetService
;
import
jp.agentec.sinaburocast.service.PointGetService
;
import
jp.agentec.sinaburocast.service.PointPeriodService
;
import
jp.agentec.sinaburocast.service.PointPeriodService
;
import
org.apache.log4j.Logger
;
import
org.seasar.struts.annotation.ActionForm
;
import
org.seasar.struts.annotation.Execute
;
/**
/**
* マイページ
* マイページ
*
*
...
@@ -153,6 +153,7 @@ public class MyPageAction extends AbstractAction {
...
@@ -153,6 +153,7 @@ public class MyPageAction extends AbstractAction {
session
.
setAttribute
(
"newsList"
,
messageNewsList
);
session
.
setAttribute
(
"newsList"
,
messageNewsList
);
session
.
setAttribute
(
"donationList"
,
enq1perlist
);
session
.
setAttribute
(
"donationList"
,
enq1perlist
);
session
.
setAttribute
(
"enqueteList"
,
enqlist
);
session
.
setAttribute
(
"enqueteList"
,
enqlist
);
session
.
setAttribute
(
"pointCheckFlg"
,
false
);
}
else
{
}
else
{
return
"/user/login/login.html"
;
return
"/user/login/login.html"
;
...
...
src/main/java/jp/agentec/sinaburocast/action/user/UserEditAction.java
View file @
944e22af
...
@@ -299,113 +299,82 @@ public class UserEditAction extends AbstractAction {
...
@@ -299,113 +299,82 @@ public class UserEditAction extends AbstractAction {
Boolean
flg
=
(
Boolean
)
session
.
getAttribute
(
"pointCheckFlg"
);
Boolean
flg
=
(
Boolean
)
session
.
getAttribute
(
"pointCheckFlg"
);
flg
=
flg
==
null
?
false
:
flg
;
flg
=
flg
==
null
?
false
:
flg
;
if
(
flg
)
{
if
(
flg
)
{
//住所関連エラーメッセージはまとめて表示する
ActionMessages
addressErrorMsg
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
if
(
StringUtil
.
isBlank
(
userEditForm
.
zipCode
))
{
if
(
StringUtil
.
isBlank
(
userEditForm
.
zipCode
))
{
ActionMessages
messages
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
if
(
addressErrorMsg
==
null
)
{
if
(
messages
==
null
)
{
addressErrorMsg
=
new
ActionMessages
();
messages
=
new
ActionMessages
();
}
}
messages
.
add
(
"zipCode"
,
new
ActionMessage
(
SinaburoViewUtil
.
getMessage
(
"errors.required"
,
SinaburoViewUtil
.
getMessage
(
"labels.zipCode"
))));
addressErrorMsg
.
add
(
"zipCode"
,
new
ActionMessage
(
SinaburoViewUtil
.
getMessage
(
"errors.required"
,
SinaburoViewUtil
.
getMessage
(
"labels.zipCode"
))));
request
.
setAttribute
(
Globals
.
ERROR_KEY
,
messages
);
return
"/user/userEdit/uEdit.html"
;
}
}
if
(
StringUtil
.
isBlank
(
userEditForm
.
prefectureId
))
{
if
(
StringUtil
.
isBlank
(
userEditForm
.
prefectureId
))
{
ActionMessages
messages
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
if
(
addressErrorMsg
==
null
)
{
if
(
messages
==
null
)
{
addressErrorMsg
=
new
ActionMessages
();
messages
=
new
ActionMessages
();
}
}
messages
.
add
(
"prefectureId"
,
new
ActionMessage
(
SinaburoViewUtil
.
getMessage
(
"errors.required"
,
SinaburoViewUtil
.
getMessage
(
"labels.prefectureId"
))));
addressErrorMsg
.
add
(
"prefectureId"
,
new
ActionMessage
(
SinaburoViewUtil
.
getMessage
(
"errors.required"
,
SinaburoViewUtil
.
getMessage
(
"labels.prefectureId"
))));
request
.
setAttribute
(
Globals
.
ERROR_KEY
,
messages
);
return
"/user/userEdit/uEdit.html"
;
}
}
if
(
StringUtil
.
isBlank
(
userEditForm
.
cityName
))
{
if
(
StringUtil
.
isBlank
(
userEditForm
.
cityName
))
{
ActionMessages
messages
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
if
(
addressErrorMsg
==
null
)
{
if
(
messages
==
null
)
{
addressErrorMsg
=
new
ActionMessages
();
messages
=
new
ActionMessages
();
}
}
messages
.
add
(
"cityName"
,
new
ActionMessage
(
SinaburoViewUtil
.
getMessage
(
"errors.required"
,
SinaburoViewUtil
.
getMessage
(
"labels.cityName"
))));
addressErrorMsg
.
add
(
"cityName"
,
new
ActionMessage
(
SinaburoViewUtil
.
getMessage
(
"errors.required"
,
SinaburoViewUtil
.
getMessage
(
"labels.cityName"
))));
request
.
setAttribute
(
Globals
.
ERROR_KEY
,
messages
);
return
"/user/userEdit/uEdit.html"
;
}
}
if
(
StringUtil
.
isBlank
(
userEditForm
.
areaName
))
{
if
(
StringUtil
.
isBlank
(
userEditForm
.
areaName
))
{
ActionMessages
messages
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
if
(
addressErrorMsg
==
null
)
{
if
(
messages
==
null
)
{
addressErrorMsg
=
new
ActionMessages
();
messages
=
new
ActionMessages
();
}
}
messages
.
add
(
"areaName"
,
new
ActionMessage
(
SinaburoViewUtil
.
getMessage
(
"errors.required"
,
SinaburoViewUtil
.
getMessage
(
"labels.areaName"
))));
addressErrorMsg
.
add
(
"areaName"
,
new
ActionMessage
(
SinaburoViewUtil
.
getMessage
(
"errors.required"
,
SinaburoViewUtil
.
getMessage
(
"labels.areaName"
))));
request
.
setAttribute
(
Globals
.
ERROR_KEY
,
messages
);
return
"/user/userEdit/uEdit.html"
;
}
}
if
(
StringUtil
.
isBlank
(
userEditForm
.
telNo
))
{
if
(
StringUtil
.
isBlank
(
userEditForm
.
telNo
))
{
ActionMessages
messages
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
if
(
addressErrorMsg
==
null
)
{
if
(
messages
==
null
)
{
addressErrorMsg
=
new
ActionMessages
();
messages
=
new
ActionMessages
();
}
}
messages
.
add
(
"telNo"
,
new
ActionMessage
(
SinaburoViewUtil
.
getMessage
(
"errors.required"
,
SinaburoViewUtil
.
getMessage
(
"labels.telNo"
))));
addressErrorMsg
.
add
(
"telNo"
,
new
ActionMessage
(
SinaburoViewUtil
.
getMessage
(
"errors.required"
,
SinaburoViewUtil
.
getMessage
(
"labels.telNo"
))));
request
.
setAttribute
(
Globals
.
ERROR_KEY
,
messages
);
return
"/user/userEdit/uEdit.html"
;
}
}
if
(
StringUtil
.
isBlank
(
userEditForm
.
firstName
))
{
if
(
StringUtil
.
isBlank
(
userEditForm
.
firstName
))
{
ActionMessages
messages
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
if
(
addressErrorMsg
==
null
)
{
if
(
messages
==
null
)
{
addressErrorMsg
=
new
ActionMessages
();
messages
=
new
ActionMessages
();
}
}
messages
.
add
(
"firstName"
,
new
ActionMessage
(
SinaburoViewUtil
.
getMessage
(
"errors.required"
,
SinaburoViewUtil
.
getMessage
(
"labels.firstName"
))));
addressErrorMsg
.
add
(
"firstName"
,
new
ActionMessage
(
SinaburoViewUtil
.
getMessage
(
"errors.required"
,
SinaburoViewUtil
.
getMessage
(
"labels.firstName"
))));
request
.
setAttribute
(
Globals
.
ERROR_KEY
,
messages
);
return
"/user/userEdit/uEdit.html"
;
}
}
if
(
StringUtil
.
isBlank
(
userEditForm
.
lastName
))
{
if
(
StringUtil
.
isBlank
(
userEditForm
.
lastName
))
{
ActionMessages
messages
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
if
(
addressErrorMsg
==
null
)
{
if
(
messages
==
null
)
{
addressErrorMsg
=
new
ActionMessages
();
messages
=
new
ActionMessages
();
}
}
messages
.
add
(
"firstName"
,
new
ActionMessage
(
SinaburoViewUtil
.
getMessage
(
"errors.required"
,
SinaburoViewUtil
.
getMessage
(
"labels.lastName"
))));
addressErrorMsg
.
add
(
"firstName"
,
new
ActionMessage
(
SinaburoViewUtil
.
getMessage
(
"errors.required"
,
SinaburoViewUtil
.
getMessage
(
"labels.lastName"
))));
request
.
setAttribute
(
Globals
.
ERROR_KEY
,
messages
);
return
"/user/userEdit/uEdit.html"
;
}
}
if
(
StringUtil
.
isBlank
(
userEditForm
.
firstNameKana
))
{
if
(
StringUtil
.
isBlank
(
userEditForm
.
firstNameKana
))
{
ActionMessages
messages
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
if
(
addressErrorMsg
==
null
)
{
if
(
messages
==
null
)
{
addressErrorMsg
=
new
ActionMessages
();
messages
=
new
ActionMessages
();
}
}
messages
.
add
(
"firstNameKana"
,
new
ActionMessage
(
SinaburoViewUtil
.
getMessage
(
"errors.required"
,
SinaburoViewUtil
.
getMessage
(
"labels.firstKana"
))));
addressErrorMsg
.
add
(
"firstNameKana"
,
new
ActionMessage
(
SinaburoViewUtil
.
getMessage
(
"errors.required"
,
SinaburoViewUtil
.
getMessage
(
"labels.firstKana"
))));
request
.
setAttribute
(
Globals
.
ERROR_KEY
,
messages
);
return
"/user/userEdit/uEdit.html"
;
}
}
if
(
StringUtil
.
isBlank
(
userEditForm
.
lastNameKana
))
{
if
(
StringUtil
.
isBlank
(
userEditForm
.
lastNameKana
))
{
ActionMessages
messages
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
if
(
addressErrorMsg
==
null
)
{
if
(
messages
==
null
)
{
addressErrorMsg
=
new
ActionMessages
();
messages
=
new
ActionMessages
();
}
}
messages
.
add
(
"firstNameKana"
,
new
ActionMessage
(
SinaburoViewUtil
.
getMessage
(
"errors.required"
,
SinaburoViewUtil
.
getMessage
(
"labels.lastKana"
))));
addressErrorMsg
.
add
(
"firstNameKana"
,
new
ActionMessage
(
SinaburoViewUtil
.
getMessage
(
"errors.required"
,
SinaburoViewUtil
.
getMessage
(
"labels.lastKana"
))));
request
.
setAttribute
(
Globals
.
ERROR_KEY
,
messages
);
return
"/user/userEdit/uEdit.html"
;
}
}
if
(
StringUtil
.
isBlank
(
userEditForm
.
genderCd
))
{
if
(
StringUtil
.
isBlank
(
userEditForm
.
genderCd
))
{
ActionMessages
messages
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
if
(
addressErrorMsg
==
null
)
{
if
(
messages
==
null
)
{
addressErrorMsg
=
new
ActionMessages
();
messages
=
new
ActionMessages
();
}
}
messages
.
add
(
"genderCd"
,
new
ActionMessage
(
SinaburoViewUtil
.
getMessage
(
"errors.required"
,
SinaburoViewUtil
.
getMessage
(
"labels.genderCd"
))));
addressErrorMsg
.
add
(
"genderCd"
,
new
ActionMessage
(
SinaburoViewUtil
.
getMessage
(
"errors.required"
,
SinaburoViewUtil
.
getMessage
(
"labels.genderCd"
))));
request
.
setAttribute
(
Globals
.
ERROR_KEY
,
messages
);
return
"/user/userEdit/uEdit.html"
;
}
}
if
(
StringUtil
.
isBlank
(
userEditForm
.
birthdayY
)
||
StringUtil
.
isBlank
(
userEditForm
.
birthdayM
)
||
StringUtil
.
isBlank
(
userEditForm
.
birthdayD
))
{
if
(
StringUtil
.
isBlank
(
userEditForm
.
birthdayY
)
||
StringUtil
.
isBlank
(
userEditForm
.
birthdayM
)
||
StringUtil
.
isBlank
(
userEditForm
.
birthdayD
))
{
ActionMessages
messages
=
(
ActionMessages
)
request
.
getAttribute
(
Globals
.
ERROR_KEY
);
if
(
addressErrorMsg
==
null
)
{
if
(
messages
==
null
)
{
addressErrorMsg
=
new
ActionMessages
();
messages
=
new
ActionMessages
();
}
}
messages
.
add
(
"birthdayY"
,
new
ActionMessage
(
SinaburoViewUtil
.
getMessage
(
"errors.required"
,
SinaburoViewUtil
.
getMessage
(
"labels.birthDay"
))));
addressErrorMsg
.
add
(
"birthdayY"
,
new
ActionMessage
(
SinaburoViewUtil
.
getMessage
(
"errors.required"
,
SinaburoViewUtil
.
getMessage
(
"labels.birthDay"
))));
request
.
setAttribute
(
Globals
.
ERROR_KEY
,
messages
);
}
if
(
addressErrorMsg
!=
null
&&
!
addressErrorMsg
.
isEmpty
())
{
request
.
setAttribute
(
Globals
.
ERROR_KEY
,
addressErrorMsg
);
return
"/user/userEdit/uEdit.html"
;
return
"/user/userEdit/uEdit.html"
;
}
}
}
}
// トークン発行
// トークン発行
TokenProcessor
.
getInstance
().
saveToken
(
request
);
TokenProcessor
.
getInstance
().
saveToken
(
request
);
session
.
setAttribute
(
"userEditFormInfo"
,
userEditForm
);
session
.
setAttribute
(
"userEditFormInfo"
,
userEditForm
);
session
.
setAttribute
(
"pointCheckFlg"
,
false
);
return
"/user/userEdit/uEditConfirm.html"
;
return
"/user/userEdit/uEditConfirm.html"
;
}
}
...
...
src/main/webapp/WEB-INF/view/mb/user/regist/regist.html
View file @
944e22af
...
@@ -12,8 +12,8 @@
...
@@ -12,8 +12,8 @@
<hr
size=
"1"
>
<hr
size=
"1"
>
【ご登録にあたっての注意】
<br>
【ご登録にあたっての注意】
<br>
下記のモニター登録情報を正確にご入力ください。
<br>
下記のモニター登録情報を正確にご入力ください。
<br>
「
<font
color=
"#ff0000"
>
*
</font>
」印
の項目は必ず登録してください。
<br>
「
<font
color=
"#ff0000"
>
*
</font>
」印
は登録時の必須項目です。
(※半角カナは使用しないでください)
<br><br>
<br>
(※半角カナは使用しないでください)
<br><br>
■基本情報
<br>
■基本情報
<br>
$!tools.getMsgs()
$!tools.getMsgs()
...
...
src/main/webapp/WEB-INF/view/mb/user/userEdit/uEdit.html
View file @
944e22af
...
@@ -10,8 +10,8 @@
...
@@ -10,8 +10,8 @@
<form
action=
"$!confirm-url"
method=
"post"
>
<form
action=
"$!confirm-url"
method=
"post"
>
会員更新ページ
会員更新ページ
<hr
size=
"1"
>
<hr
size=
"1"
>
「
<font
color=
"#ff0000"
>
*
</font>
」印
の項目は必ず登録してください。
<br>
「
<font
color=
"#ff0000"
>
*
</font>
」印
は登録時の必須項目です。ポイント利用の際はすべての項目について登録してください。
(※半角カナは使用しないでください)
<br><br>
<br>
(※半角カナは使用しないでください)
<br><br>
$!tools.getMsg("pointUse")
$!tools.getMsg("pointUse")
■基本情報
<br>
■基本情報
<br>
...
...
src/main/webapp/WEB-INF/view/sp/user/regist/regist.html
View file @
944e22af
...
@@ -13,7 +13,8 @@
...
@@ -13,7 +13,8 @@
<h2>
会員情報入力
</h2>
<h2>
会員情報入力
</h2>
<h4>
ご登録にあたっての注意
</h4>
<h4>
ご登録にあたっての注意
</h4>
<p>
ご登録いただけるのはお1人様1IDとなっています。「*」印の項目は必ず登録してください。
<br/>
(※半角カナは使用しないでください)
</p>
<p>
ご登録いただけるのはお1人様1IDとなっています。「*」印は登録時の必須項目です。
<br>
(※半角カナは使用しないでください)
</p>
<div
class=
"bg_blue"
>
<div
class=
"bg_blue"
>
$!tools.getMsgs()
$!tools.getMsgs()
...
...
src/main/webapp/WEB-INF/view/user/regist/regist.html
View file @
944e22af
...
@@ -59,7 +59,8 @@
...
@@ -59,7 +59,8 @@
<tr>
<tr>
<td
background=
"/em/images/cts_cmt02_bg.gif"
><img
src=
"/em/images/spacer.gif"
width=
"5"
height=
"5"
border=
"0"
></td>
<td
background=
"/em/images/cts_cmt02_bg.gif"
><img
src=
"/em/images/spacer.gif"
width=
"5"
height=
"5"
border=
"0"
></td>
<td
align=
"left"
>
ご登録いただけるのはお1人様1IDとなっています。
<br>
<td
align=
"left"
>
ご登録いただけるのはお1人様1IDとなっています。
<br>
「
<font
class=
"listpoint"
>
*
</font>
」印の項目は必ず登録してください。(※半角カナは使用しないでください)
「
<font
color=
"#ff0000"
>
*
</font>
」印は登録時の必須項目です。
<br>
(※半角カナは使用しないでください)
</td>
</td>
<td
background=
"/em/images/cts_cmt03_bg.gif"
><img
src=
"/em/images/spacer.gif"
width=
"5"
height=
"5"
border=
"0"
></td>
<td
background=
"/em/images/cts_cmt03_bg.gif"
><img
src=
"/em/images/spacer.gif"
width=
"5"
height=
"5"
border=
"0"
></td>
...
...
src/main/webapp/WEB-INF/view/user/userEdit/uEdit.html
View file @
944e22af
...
@@ -66,7 +66,8 @@
...
@@ -66,7 +66,8 @@
</tr>
</tr>
<tr>
<tr>
<td
background=
"/em/images/cts_cmt02_bg.gif"
><img
src=
"/em/images/spacer.gif"
width=
"5"
height=
"5"
border=
"0"
></td>
<td
background=
"/em/images/cts_cmt02_bg.gif"
><img
src=
"/em/images/spacer.gif"
width=
"5"
height=
"5"
border=
"0"
></td>
<td
align=
"left"
>
「
<font
class=
"listpoint"
>
*
</font>
」印の項目は必ず登録してください。(※半角カナは使用しないでください)
<td
align=
"left"
>
「
<font
color=
"#ff0000"
>
*
</font>
」印は登録時の必須項目です。ポイント利用の際はすべての項目について登録してください。
<br>
(※半角カナは使用しないでください)
</td>
</td>
<td
background=
"/em/images/cts_cmt03_bg.gif"
><img
src=
"/em/images/spacer.gif"
width=
"5"
height=
"5"
border=
"0"
></td>
<td
background=
"/em/images/cts_cmt03_bg.gif"
><img
src=
"/em/images/spacer.gif"
width=
"5"
height=
"5"
border=
"0"
></td>
</tr>
</tr>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment