{"action":"created","comment":{"url":"https://api.github.com/repos/clouway-incubator/servlets/pulls/comments/90887306","pull_request_review_id":11399813,"id":90887306,"diff_hunk":"@@ -0,0 +1,45 @@\n+package servlets;\n+\n+import core.Template;\n+\n+import javax.servlet.ServletException;\n+import javax.servlet.http.HttpServlet;\n+import javax.servlet.http.HttpServletRequest;\n+import javax.servlet.http.HttpServletResponse;\n+import javax.servlet.http.HttpSession;\n+import java.io.IOException;\n+import java.io.PrintWriter;\n+import java.util.LinkedHashMap;\n+\n+\n+/**\n+ * @author Vasil Mitov <v.mitov.clouway@gmail.com>\n+ */\n+public class PageServlet extends HttpServlet {\n+  private LinkedHashMap<String, Template> templates;","path":"src/main/java/servlets/PageServlet.java","position":19,"original_position":19,"commit_id":"e476c97fc8e1b01c65925f6a0c7e2c88f7bce75d","original_commit_id":"e476c97fc8e1b01c65925f6a0c7e2c88f7bce75d","user":{"login":"mgenov","id":209223,"avatar_url":"https://avatars.githubusercontent.com/u/209223?v=3","gravatar_id":"","url":"https://api.github.com/users/mgenov","html_url":"https://github.com/mgenov","followers_url":"https://api.github.com/users/mgenov/followers","following_url":"https://api.github.com/users/mgenov/following{/other_user}","gists_url":"https://api.github.com/users/mgenov/gists{/gist_id}","starred_url":"https://api.github.com/users/mgenov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgenov/subscriptions","organizations_url":"https://api.github.com/users/mgenov/orgs","repos_url":"https://api.github.com/users/mgenov/repos","events_url":"https://api.github.com/users/mgenov/events{/privacy}","received_events_url":"https://api.github.com/users/mgenov/received_events","type":"User","site_admin":false},"body":"It should be Map as it's most upper level interface. \r\n\r\nWhere the constructor should accept Map also:\r\n```java\r\npublic PageServlet(Map<String, Template> templates) {\r\n   ..\r\n}\r\n```\r\n\r\n","created_at":"2016-12-05T15:30:52Z","updated_at":"2016-12-05T15:30:52Z","html_url":"https://github.com/clouway-incubator/servlets/pull/2#discussion_r90887306","pull_request_url":"https://api.github.com/repos/clouway-incubator/servlets/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/clouway-incubator/servlets/pulls/comments/90887306"},"html":{"href":"https://github.com/clouway-incubator/servlets/pull/2#discussion_r90887306"},"pull_request":{"href":"https://api.github.com/repos/clouway-incubator/servlets/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/clouway-incubator/servlets/pulls/2","id":96548579,"html_url":"https://github.com/clouway-incubator/servlets/pull/2","diff_url":"https://github.com/clouway-incubator/servlets/pull/2.diff","patch_url":"https://github.com/clouway-incubator/servlets/pull/2.patch","issue_url":"https://api.github.com/repos/clouway-incubator/servlets/issues/2","number":2,"state":"open","locked":false,"title":"Task2","user":{"login":"VasilMitovClouway","id":18255988,"avatar_url":"https://avatars.githubusercontent.com/u/18255988?v=3","gravatar_id":"","url":"https://api.github.com/users/VasilMitovClouway","html_url":"https://github.com/VasilMitovClouway","followers_url":"https://api.github.com/users/VasilMitovClouway/followers","following_url":"https://api.github.com/users/VasilMitovClouway/following{/other_user}","gists_url":"https://api.github.com/users/VasilMitovClouway/gists{/gist_id}","starred_url":"https://api.github.com/users/VasilMitovClouway/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VasilMitovClouway/subscriptions","organizations_url":"https://api.github.com/users/VasilMitovClouway/orgs","repos_url":"https://api.github.com/users/VasilMitovClouway/repos","events_url":"https://api.github.com/users/VasilMitovClouway/events{/privacy}","received_events_url":"https://api.github.com/users/VasilMitovClouway/received_events","type":"User","site_admin":false},"body":"Upon loading the Index page the user can see that he is at it.\r\n![indexpage](https://cloud.githubusercontent.com/assets/18255988/20890397/6797d3fc-bb0f-11e6-992b-fe4a94400c49.png)\r\n\r\nOnce the user clickes on one of the pages the page where he is coming from is stored in his session and it is displayed on the page he is going to .\r\n\r\n![page2](https://cloud.githubusercontent.com/assets/18255988/20890426/836c637c-bb0f-11e6-8db8-b8bedd46ce29.png)\r\n\r\n","created_at":"2016-12-05T15:24:09Z","updated_at":"2016-12-05T15:41:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"110638ad3085818f471e8076dc8d7f140da4d888","assignee":{"login":"mgenov","id":209223,"avatar_url":"https://avatars.githubusercontent.com/u/209223?v=3","gravatar_id":"","url":"https://api.github.com/users/mgenov","html_url":"https://github.com/mgenov","followers_url":"https://api.github.com/users/mgenov/followers","following_url":"https://api.github.com/users/mgenov/following{/other_user}","gists_url":"https://api.github.com/users/mgenov/gists{/gist_id}","starred_url":"https://api.github.com/users/mgenov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgenov/subscriptions","organizations_url":"https://api.github.com/users/mgenov/orgs","repos_url":"https://api.github.com/users/mgenov/repos","events_url":"https://api.github.com/users/mgenov/events{/privacy}","received_events_url":"https://api.github.com/users/mgenov/received_events","type":"User","site_admin":false},"assignees":[{"login":"mgenov","id":209223,"avatar_url":"https://avatars.githubusercontent.com/u/209223?v=3","gravatar_id":"","url":"https://api.github.com/users/mgenov","html_url":"https://github.com/mgenov","followers_url":"https://api.github.com/users/mgenov/followers","following_url":"https://api.github.com/users/mgenov/following{/other_user}","gists_url":"https://api.github.com/users/mgenov/gists{/gist_id}","starred_url":"https://api.github.com/users/mgenov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgenov/subscriptions","organizations_url":"https://api.github.com/users/mgenov/orgs","repos_url":"https://api.github.com/users/mgenov/repos","events_url":"https://api.github.com/users/mgenov/events{/privacy}","received_events_url":"https://api.github.com/users/mgenov/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/clouway-incubator/servlets/pulls/2/commits","review_comments_url":"https://api.github.com/repos/clouway-incubator/servlets/pulls/2/comments","review_comment_url":"https://api.github.com/repos/clouway-incubator/servlets/pulls/comments{/number}","comments_url":"https://api.github.com/repos/clouway-incubator/servlets/issues/2/comments","statuses_url":"https://api.github.com/repos/clouway-incubator/servlets/statuses/e476c97fc8e1b01c65925f6a0c7e2c88f7bce75d","head":{"label":"VasilMitovClouway:task2","ref":"task2","sha":"e476c97fc8e1b01c65925f6a0c7e2c88f7bce75d","user":{"login":"VasilMitovClouway","id":18255988,"avatar_url":"https://avatars.githubusercontent.com/u/18255988?v=3","gravatar_id":"","url":"https://api.github.com/users/VasilMitovClouway","html_url":"https://github.com/VasilMitovClouway","followers_url":"https://api.github.com/users/VasilMitovClouway/followers","following_url":"https://api.github.com/users/VasilMitovClouway/following{/other_user}","gists_url":"https://api.github.com/users/VasilMitovClouway/gists{/gist_id}","starred_url":"https://api.github.com/users/VasilMitovClouway/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VasilMitovClouway/subscriptions","organizations_url":"https://api.github.com/users/VasilMitovClouway/orgs","repos_url":"https://api.github.com/users/VasilMitovClouway/repos","events_url":"https://api.github.com/users/VasilMitovClouway/events{/privacy}","received_events_url":"https://api.github.com/users/VasilMitovClouway/received_events","type":"User","site_admin":false},"repo":{"id":74949793,"name":"servlets","full_name":"VasilMitovClouway/servlets","owner":{"login":"VasilMitovClouway","id":18255988,"avatar_url":"https://avatars.githubusercontent.com/u/18255988?v=3","gravatar_id":"","url":"https://api.github.com/users/VasilMitovClouway","html_url":"https://github.com/VasilMitovClouway","followers_url":"https://api.github.com/users/VasilMitovClouway/followers","following_url":"https://api.github.com/users/VasilMitovClouway/following{/other_user}","gists_url":"https://api.github.com/users/VasilMitovClouway/gists{/gist_id}","starred_url":"https://api.github.com/users/VasilMitovClouway/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VasilMitovClouway/subscriptions","organizations_url":"https://api.github.com/users/VasilMitovClouway/orgs","repos_url":"https://api.github.com/users/VasilMitovClouway/repos","events_url":"https://api.github.com/users/VasilMitovClouway/events{/privacy}","received_events_url":"https://api.github.com/users/VasilMitovClouway/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/VasilMitovClouway/servlets","description":"Servlets Tasks","fork":true,"url":"https://api.github.com/repos/VasilMitovClouway/servlets","forks_url":"https://api.github.com/repos/VasilMitovClouway/servlets/forks","keys_url":"https://api.github.com/repos/VasilMitovClouway/servlets/keys{/key_id}","collaborators_url":"https://api.github.com/repos/VasilMitovClouway/servlets/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/VasilMitovClouway/servlets/teams","hooks_url":"https://api.github.com/repos/VasilMitovClouway/servlets/hooks","issue_events_url":"https://api.github.com/repos/VasilMitovClouway/servlets/issues/events{/number}","events_url":"https://api.github.com/repos/VasilMitovClouway/servlets/events","assignees_url":"https://api.github.com/repos/VasilMitovClouway/servlets/assignees{/user}","branches_url":"https://api.github.com/repos/VasilMitovClouway/servlets/branches{/branch}","tags_url":"https://api.github.com/repos/VasilMitovClouway/servlets/tags","blobs_url":"https://api.github.com/repos/VasilMitovClouway/servlets/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/VasilMitovClouway/servlets/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/VasilMitovClouway/servlets/git/refs{/sha}","trees_url":"https://api.github.com/repos/VasilMitovClouway/servlets/git/trees{/sha}","statuses_url":"https://api.github.com/repos/VasilMitovClouway/servlets/statuses/{sha}","languages_url":"https://api.github.com/repos/VasilMitovClouway/servlets/languages","stargazers_url":"https://api.github.com/repos/VasilMitovClouway/servlets/stargazers","contributors_url":"https://api.github.com/repos/VasilMitovClouway/servlets/contributors","subscribers_url":"https://api.github.com/repos/VasilMitovClouway/servlets/subscribers","subscription_url":"https://api.github.com/repos/VasilMitovClouway/servlets/subscription","commits_url":"https://api.github.com/repos/VasilMitovClouway/servlets/commits{/sha}","git_commits_url":"https://api.github.com/repos/VasilMitovClouway/servlets/git/commits{/sha}","comments_url":"https://api.github.com/repos/VasilMitovClouway/servlets/comments{/number}","issue_comment_url":"https://api.github.com/repos/VasilMitovClouway/servlets/issues/comments{/number}","contents_url":"https://api.github.com/repos/VasilMitovClouway/servlets/contents/{+path}","compare_url":"https://api.github.com/repos/VasilMitovClouway/servlets/compare/{base}...{head}","merges_url":"https://api.github.com/repos/VasilMitovClouway/servlets/merges","archive_url":"https://api.github.com/repos/VasilMitovClouway/servlets/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/VasilMitovClouway/servlets/downloads","issues_url":"https://api.github.com/repos/VasilMitovClouway/servlets/issues{/number}","pulls_url":"https://api.github.com/repos/VasilMitovClouway/servlets/pulls{/number}","milestones_url":"https://api.github.com/repos/VasilMitovClouway/servlets/milestones{/number}","notifications_url":"https://api.github.com/repos/VasilMitovClouway/servlets/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/VasilMitovClouway/servlets/labels{/name}","releases_url":"https://api.github.com/repos/VasilMitovClouway/servlets/releases{/id}","deployments_url":"https://api.github.com/repos/VasilMitovClouway/servlets/deployments","created_at":"2016-11-28T07:50:06Z","updated_at":"2016-11-28T07:36:53Z","pushed_at":"2016-12-05T15:19:46Z","git_url":"git://github.com/VasilMitovClouway/servlets.git","ssh_url":"git@github.com:VasilMitovClouway/servlets.git","clone_url":"https://github.com/VasilMitovClouway/servlets.git","svn_url":"https://github.com/VasilMitovClouway/servlets","homepage":null,"size":13,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"clouway-incubator:vasil_mitov","ref":"vasil_mitov","sha":"0f678ac985aa8d8e807945f8216a632b1155bff4","user":{"login":"clouway-incubator","id":10173098,"avatar_url":"https://avatars.githubusercontent.com/u/10173098?v=3","gravatar_id":"","url":"https://api.github.com/users/clouway-incubator","html_url":"https://github.com/clouway-incubator","followers_url":"https://api.github.com/users/clouway-incubator/followers","following_url":"https://api.github.com/users/clouway-incubator/following{/other_user}","gists_url":"https://api.github.com/users/clouway-incubator/gists{/gist_id}","starred_url":"https://api.github.com/users/clouway-incubator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clouway-incubator/subscriptions","organizations_url":"https://api.github.com/users/clouway-incubator/orgs","repos_url":"https://api.github.com/users/clouway-incubator/repos","events_url":"https://api.github.com/users/clouway-incubator/events{/privacy}","received_events_url":"https://api.github.com/users/clouway-incubator/received_events","type":"Organization","site_admin":false},"repo":{"id":74948886,"name":"servlets","full_name":"clouway-incubator/servlets","owner":{"login":"clouway-incubator","id":10173098,"avatar_url":"https://avatars.githubusercontent.com/u/10173098?v=3","gravatar_id":"","url":"https://api.github.com/users/clouway-incubator","html_url":"https://github.com/clouway-incubator","followers_url":"https://api.github.com/users/clouway-incubator/followers","following_url":"https://api.github.com/users/clouway-incubator/following{/other_user}","gists_url":"https://api.github.com/users/clouway-incubator/gists{/gist_id}","starred_url":"https://api.github.com/users/clouway-incubator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clouway-incubator/subscriptions","organizations_url":"https://api.github.com/users/clouway-incubator/orgs","repos_url":"https://api.github.com/users/clouway-incubator/repos","events_url":"https://api.github.com/users/clouway-incubator/events{/privacy}","received_events_url":"https://api.github.com/users/clouway-incubator/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/clouway-incubator/servlets","description":"Servlets Tasks","fork":false,"url":"https://api.github.com/repos/clouway-incubator/servlets","forks_url":"https://api.github.com/repos/clouway-incubator/servlets/forks","keys_url":"https://api.github.com/repos/clouway-incubator/servlets/keys{/key_id}","collaborators_url":"https://api.github.com/repos/clouway-incubator/servlets/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/clouway-incubator/servlets/teams","hooks_url":"https://api.github.com/repos/clouway-incubator/servlets/hooks","issue_events_url":"https://api.github.com/repos/clouway-incubator/servlets/issues/events{/number}","events_url":"https://api.github.com/repos/clouway-incubator/servlets/events","assignees_url":"https://api.github.com/repos/clouway-incubator/servlets/assignees{/user}","branches_url":"https://api.github.com/repos/clouway-incubator/servlets/branches{/branch}","tags_url":"https://api.github.com/repos/clouway-incubator/servlets/tags","blobs_url":"https://api.github.com/repos/clouway-incubator/servlets/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/clouway-incubator/servlets/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/clouway-incubator/servlets/git/refs{/sha}","trees_url":"https://api.github.com/repos/clouway-incubator/servlets/git/trees{/sha}","statuses_url":"https://api.github.com/repos/clouway-incubator/servlets/statuses/{sha}","languages_url":"https://api.github.com/repos/clouway-incubator/servlets/languages","stargazers_url":"https://api.github.com/repos/clouway-incubator/servlets/stargazers","contributors_url":"https://api.github.com/repos/clouway-incubator/servlets/contributors","subscribers_url":"https://api.github.com/repos/clouway-incubator/servlets/subscribers","subscription_url":"https://api.github.com/repos/clouway-incubator/servlets/subscription","commits_url":"https://api.github.com/repos/clouway-incubator/servlets/commits{/sha}","git_commits_url":"https://api.github.com/repos/clouway-incubator/servlets/git/commits{/sha}","comments_url":"https://api.github.com/repos/clouway-incubator/servlets/comments{/number}","issue_comment_url":"https://api.github.com/repos/clouway-incubator/servlets/issues/comments{/number}","contents_url":"https://api.github.com/repos/clouway-incubator/servlets/contents/{+path}","compare_url":"https://api.github.com/repos/clouway-incubator/servlets/compare/{base}...{head}","merges_url":"https://api.github.com/repos/clouway-incubator/servlets/merges","archive_url":"https://api.github.com/repos/clouway-incubator/servlets/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/clouway-incubator/servlets/downloads","issues_url":"https://api.github.com/repos/clouway-incubator/servlets/issues{/number}","pulls_url":"https://api.github.com/repos/clouway-incubator/servlets/pulls{/number}","milestones_url":"https://api.github.com/repos/clouway-incubator/servlets/milestones{/number}","notifications_url":"https://api.github.com/repos/clouway-incubator/servlets/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/clouway-incubator/servlets/labels{/name}","releases_url":"https://api.github.com/repos/clouway-incubator/servlets/releases{/id}","deployments_url":"https://api.github.com/repos/clouway-incubator/servlets/deployments","created_at":"2016-11-28T07:36:53Z","updated_at":"2016-11-28T07:36:53Z","pushed_at":"2016-12-05T15:24:09Z","git_url":"git://github.com/clouway-incubator/servlets.git","ssh_url":"git@github.com:clouway-incubator/servlets.git","clone_url":"https://github.com/clouway-incubator/servlets.git","svn_url":"https://github.com/clouway-incubator/servlets","homepage":null,"size":8,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/clouway-incubator/servlets/pulls/2"},"html":{"href":"https://github.com/clouway-incubator/servlets/pull/2"},"issue":{"href":"https://api.github.com/repos/clouway-incubator/servlets/issues/2"},"comments":{"href":"https://api.github.com/repos/clouway-incubator/servlets/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/clouway-incubator/servlets/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/clouway-incubator/servlets/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/clouway-incubator/servlets/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/clouway-incubator/servlets/statuses/e476c97fc8e1b01c65925f6a0c7e2c88f7bce75d"}}}}
{"actor":{"display_login":"mgenov"}}