try {
if (!validateInsertUser(uid)) {
// 登録画面を表示
return forward("/manager/regist.jsp");
}
Validators v = getValidator();
v.add(
"uid",
v.required(),
v.maxlength(VALID_MAX_UID),
v.minlength(VALID_MIN_UID));
if (v.validate()) {
Transaction tx= Datastore.beginTransaction();
User user =
service.put(tx, uid, name, mail, phone, zipcode, address);
// ユーザ登録メール送信
if (!sendConfirmationMail(user)) {