{"action":"created","comment":{"url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/pulls/comments/40504397","id":40504397,"diff_hunk":"@@ -14,26 +22,118 @@\n public class SignUpServlet extends HttpServlet {\n \tprivate static final long serialVersionUID = 1L;\n        \n-    /**\n-     * @see HttpServlet#HttpServlet()\n-     */\n-    public SignUpServlet() {\n-        super();\n-        // TODO Auto-generated constructor stub\n-    }\n-\n-\t/**\n-\t * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)\n-\t */\n-\tprotected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n-\t\t// TODO Auto-generated method stub\n-\t}\n+ \tprotected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n+\t\t//変数の宣言\n+\t\tString mailAddress = \"\";\n+\t\tString pass = \"\";\n+\t\tString url = \"\";\n+\t\tString message = \"\";\n+\t\tboolean errFlg = false;\n+\t\t\n+\t\tString user_name;\n+\t\tString user_pass; //パスワード\n+\t\tString com_name; //会社名\n+\t\tString com_department; //部署名\n+\t\tint user_tel;\n+\t\tString s_user_tel;\n+\t\tint user_fax;\n+\t\tString s_user_fax;\n+\t\tString user_address; //住所*/\n+\n+\t\t//データ・アクセスクラスを作る\n+\t\tDao d ;\t\n+\t\tCmnFnc c;\n+\t\tArrayList<Object> user = new ArrayList<>();\n+\t\t\n+\t\ttry{\n+\t\t\tuser_name = request.getParameter(\"user_name\");\n+\t\t\tuser_pass = request.getParameter(\"user_pass\");\n+\t\t\tcom_name = request.getParameter(\"com_name\");\n+\t\t\tcom_department = request.getParameter(\"com_department\");\n+\t\t\ts_user_tel = request.getParameter(\"user_tel\");\n+\t\t\ts_user_fax = request.getParameter(\"user_fax\");\n+\t\t\tuser_address = request.getParameter(\"user_address\");\n+\t\t\t\n+\t\t\t//エラーチェック\n+\t\t\t//null、空白\n+\t\t\terrFlg = CmnFnc.isPrmErr(user_name);\n+\t\t\terrFlg = CmnFnc.isPrmErr(user_pass);\n+\t\t\terrFlg = CmnFnc.isPrmErr(com_name);\n+\t\t\terrFlg = CmnFnc.isPrmErr(com_department);\n+\t\t\terrFlg = CmnFnc.isPrmErr(s_user_tel);\n+\t\t\terrFlg = CmnFnc.isPrmErr(s_user_fax);\n+\t\t\terrFlg = CmnFnc.isPrmErr(user_address);\n+\t\t\t\n+\t\t\tif(errFlg){\n+\t\t\t\tmessage = \"未入力の欄があります。\";\n+\t\t\t\turl = CmnVal.errURL;\n+\t\t\t}\n+\t\t\telse{\n+\t\t\t\t\n+\t\t\t\t//文字数\n+\t\t\t\terrFlg = user_name.length() > 200;\n+\t\t\t\terrFlg = user_pass.length() > 40;\n+\t\t\t\terrFlg = com_name.length() > 30;\n+\t\t\t\terrFlg = com_department.length() > 30;\n+\t\t\t\terrFlg = s_user_tel.length() > 11;\n+\t\t\t\terrFlg = s_user_fax.length() > 11;\n+\t\t\t\terrFlg = user_address.length() > 200;\n+\t\t\t\t","path":"src/jp/ac/hal/Servlet/SignUpServlet.java","position":95,"original_position":95,"commit_id":"db87586b46f3d9473984a69c4cf8e9902184f0d9","original_commit_id":"db87586b46f3d9473984a69c4cf8e9902184f0d9","user":{"login":"Kazunari-h","id":9694038,"avatar_url":"https://avatars.githubusercontent.com/u/9694038?v=3","gravatar_id":"","url":"https://api.github.com/users/Kazunari-h","html_url":"https://github.com/Kazunari-h","followers_url":"https://api.github.com/users/Kazunari-h/followers","following_url":"https://api.github.com/users/Kazunari-h/following{/other_user}","gists_url":"https://api.github.com/users/Kazunari-h/gists{/gist_id}","starred_url":"https://api.github.com/users/Kazunari-h/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kazunari-h/subscriptions","organizations_url":"https://api.github.com/users/Kazunari-h/orgs","repos_url":"https://api.github.com/users/Kazunari-h/repos","events_url":"https://api.github.com/users/Kazunari-h/events{/privacy}","received_events_url":"https://api.github.com/users/Kazunari-h/received_events","type":"User","site_admin":false},"body":"これも書き換え発生する。","created_at":"2015-09-27T13:50:19Z","updated_at":"2015-09-27T13:50:19Z","html_url":"https://github.com/AveragesFromHal2015/Vermont/pull/20#discussion_r40504397","pull_request_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/pulls/20","_links":{"self":{"href":"https://api.github.com/repos/AveragesFromHal2015/Vermont/pulls/comments/40504397"},"html":{"href":"https://github.com/AveragesFromHal2015/Vermont/pull/20#discussion_r40504397"},"pull_request":{"href":"https://api.github.com/repos/AveragesFromHal2015/Vermont/pulls/20"}}},"pull_request":{"url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/pulls/20","id":46101307,"html_url":"https://github.com/AveragesFromHal2015/Vermont/pull/20","diff_url":"https://github.com/AveragesFromHal2015/Vermont/pull/20.diff","patch_url":"https://github.com/AveragesFromHal2015/Vermont/pull/20.patch","issue_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/issues/20","number":20,"state":"open","locked":false,"title":"okaくんの変更","user":{"login":"Kazunari-h","id":9694038,"avatar_url":"https://avatars.githubusercontent.com/u/9694038?v=3","gravatar_id":"","url":"https://api.github.com/users/Kazunari-h","html_url":"https://github.com/Kazunari-h","followers_url":"https://api.github.com/users/Kazunari-h/followers","following_url":"https://api.github.com/users/Kazunari-h/following{/other_user}","gists_url":"https://api.github.com/users/Kazunari-h/gists{/gist_id}","starred_url":"https://api.github.com/users/Kazunari-h/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kazunari-h/subscriptions","organizations_url":"https://api.github.com/users/Kazunari-h/orgs","repos_url":"https://api.github.com/users/Kazunari-h/repos","events_url":"https://api.github.com/users/Kazunari-h/events{/privacy}","received_events_url":"https://api.github.com/users/Kazunari-h/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-27T13:44:22Z","updated_at":"2015-09-27T13:50:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bee3ac969476f31960f37023372e0e7ce3a4a3bd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/pulls/20/commits","review_comments_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/pulls/20/comments","review_comment_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/issues/20/comments","statuses_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/statuses/db87586b46f3d9473984a69c4cf8e9902184f0d9","head":{"label":"AveragesFromHal2015:oka","ref":"oka","sha":"db87586b46f3d9473984a69c4cf8e9902184f0d9","user":{"login":"AveragesFromHal2015","id":14210457,"avatar_url":"https://avatars.githubusercontent.com/u/14210457?v=3","gravatar_id":"","url":"https://api.github.com/users/AveragesFromHal2015","html_url":"https://github.com/AveragesFromHal2015","followers_url":"https://api.github.com/users/AveragesFromHal2015/followers","following_url":"https://api.github.com/users/AveragesFromHal2015/following{/other_user}","gists_url":"https://api.github.com/users/AveragesFromHal2015/gists{/gist_id}","starred_url":"https://api.github.com/users/AveragesFromHal2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AveragesFromHal2015/subscriptions","organizations_url":"https://api.github.com/users/AveragesFromHal2015/orgs","repos_url":"https://api.github.com/users/AveragesFromHal2015/repos","events_url":"https://api.github.com/users/AveragesFromHal2015/events{/privacy}","received_events_url":"https://api.github.com/users/AveragesFromHal2015/received_events","type":"Organization","site_admin":false},"repo":{"id":42630363,"name":"Vermont","full_name":"AveragesFromHal2015/Vermont","owner":{"login":"AveragesFromHal2015","id":14210457,"avatar_url":"https://avatars.githubusercontent.com/u/14210457?v=3","gravatar_id":"","url":"https://api.github.com/users/AveragesFromHal2015","html_url":"https://github.com/AveragesFromHal2015","followers_url":"https://api.github.com/users/AveragesFromHal2015/followers","following_url":"https://api.github.com/users/AveragesFromHal2015/following{/other_user}","gists_url":"https://api.github.com/users/AveragesFromHal2015/gists{/gist_id}","starred_url":"https://api.github.com/users/AveragesFromHal2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AveragesFromHal2015/subscriptions","organizations_url":"https://api.github.com/users/AveragesFromHal2015/orgs","repos_url":"https://api.github.com/users/AveragesFromHal2015/repos","events_url":"https://api.github.com/users/AveragesFromHal2015/events{/privacy}","received_events_url":"https://api.github.com/users/AveragesFromHal2015/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AveragesFromHal2015/Vermont","description":"","fork":false,"url":"https://api.github.com/repos/AveragesFromHal2015/Vermont","forks_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/forks","keys_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/teams","hooks_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/hooks","issue_events_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/issues/events{/number}","events_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/events","assignees_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/assignees{/user}","branches_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/branches{/branch}","tags_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/tags","blobs_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/git/refs{/sha}","trees_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/statuses/{sha}","languages_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/languages","stargazers_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/stargazers","contributors_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/contributors","subscribers_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/subscribers","subscription_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/subscription","commits_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/commits{/sha}","git_commits_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/git/commits{/sha}","comments_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/comments{/number}","issue_comment_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/issues/comments{/number}","contents_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/contents/{+path}","compare_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/merges","archive_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/downloads","issues_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/issues{/number}","pulls_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/pulls{/number}","milestones_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/milestones{/number}","notifications_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/labels{/name}","releases_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/releases{/id}","created_at":"2015-09-17T02:44:29Z","updated_at":"2015-09-25T10:58:16Z","pushed_at":"2015-09-27T13:44:22Z","git_url":"git://github.com/AveragesFromHal2015/Vermont.git","ssh_url":"git@github.com:AveragesFromHal2015/Vermont.git","clone_url":"https://github.com/AveragesFromHal2015/Vermont.git","svn_url":"https://github.com/AveragesFromHal2015/Vermont","homepage":null,"size":488,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"AveragesFromHal2015:master","ref":"master","sha":"68254fb9d8a88925c5d7912ac0e558d1a64e6e38","user":{"login":"AveragesFromHal2015","id":14210457,"avatar_url":"https://avatars.githubusercontent.com/u/14210457?v=3","gravatar_id":"","url":"https://api.github.com/users/AveragesFromHal2015","html_url":"https://github.com/AveragesFromHal2015","followers_url":"https://api.github.com/users/AveragesFromHal2015/followers","following_url":"https://api.github.com/users/AveragesFromHal2015/following{/other_user}","gists_url":"https://api.github.com/users/AveragesFromHal2015/gists{/gist_id}","starred_url":"https://api.github.com/users/AveragesFromHal2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AveragesFromHal2015/subscriptions","organizations_url":"https://api.github.com/users/AveragesFromHal2015/orgs","repos_url":"https://api.github.com/users/AveragesFromHal2015/repos","events_url":"https://api.github.com/users/AveragesFromHal2015/events{/privacy}","received_events_url":"https://api.github.com/users/AveragesFromHal2015/received_events","type":"Organization","site_admin":false},"repo":{"id":42630363,"name":"Vermont","full_name":"AveragesFromHal2015/Vermont","owner":{"login":"AveragesFromHal2015","id":14210457,"avatar_url":"https://avatars.githubusercontent.com/u/14210457?v=3","gravatar_id":"","url":"https://api.github.com/users/AveragesFromHal2015","html_url":"https://github.com/AveragesFromHal2015","followers_url":"https://api.github.com/users/AveragesFromHal2015/followers","following_url":"https://api.github.com/users/AveragesFromHal2015/following{/other_user}","gists_url":"https://api.github.com/users/AveragesFromHal2015/gists{/gist_id}","starred_url":"https://api.github.com/users/AveragesFromHal2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AveragesFromHal2015/subscriptions","organizations_url":"https://api.github.com/users/AveragesFromHal2015/orgs","repos_url":"https://api.github.com/users/AveragesFromHal2015/repos","events_url":"https://api.github.com/users/AveragesFromHal2015/events{/privacy}","received_events_url":"https://api.github.com/users/AveragesFromHal2015/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AveragesFromHal2015/Vermont","description":"","fork":false,"url":"https://api.github.com/repos/AveragesFromHal2015/Vermont","forks_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/forks","keys_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/teams","hooks_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/hooks","issue_events_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/issues/events{/number}","events_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/events","assignees_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/assignees{/user}","branches_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/branches{/branch}","tags_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/tags","blobs_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/git/refs{/sha}","trees_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/statuses/{sha}","languages_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/languages","stargazers_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/stargazers","contributors_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/contributors","subscribers_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/subscribers","subscription_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/subscription","commits_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/commits{/sha}","git_commits_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/git/commits{/sha}","comments_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/comments{/number}","issue_comment_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/issues/comments{/number}","contents_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/contents/{+path}","compare_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/merges","archive_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/downloads","issues_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/issues{/number}","pulls_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/pulls{/number}","milestones_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/milestones{/number}","notifications_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/labels{/name}","releases_url":"https://api.github.com/repos/AveragesFromHal2015/Vermont/releases{/id}","created_at":"2015-09-17T02:44:29Z","updated_at":"2015-09-25T10:58:16Z","pushed_at":"2015-09-27T13:44:22Z","git_url":"git://github.com/AveragesFromHal2015/Vermont.git","ssh_url":"git@github.com:AveragesFromHal2015/Vermont.git","clone_url":"https://github.com/AveragesFromHal2015/Vermont.git","svn_url":"https://github.com/AveragesFromHal2015/Vermont","homepage":null,"size":488,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AveragesFromHal2015/Vermont/pulls/20"},"html":{"href":"https://github.com/AveragesFromHal2015/Vermont/pull/20"},"issue":{"href":"https://api.github.com/repos/AveragesFromHal2015/Vermont/issues/20"},"comments":{"href":"https://api.github.com/repos/AveragesFromHal2015/Vermont/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/AveragesFromHal2015/Vermont/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/AveragesFromHal2015/Vermont/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AveragesFromHal2015/Vermont/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/AveragesFromHal2015/Vermont/statuses/db87586b46f3d9473984a69c4cf8e9902184f0d9"}}}}