{"action":"created","issue":{"url":"https://api.github.com/repos/terasolunaorg/guideline/issues/1306","labels_url":"https://api.github.com/repos/terasolunaorg/guideline/issues/1306/labels{/name}","comments_url":"https://api.github.com/repos/terasolunaorg/guideline/issues/1306/comments","events_url":"https://api.github.com/repos/terasolunaorg/guideline/issues/1306/events","html_url":"https://github.com/terasolunaorg/guideline/issues/1306","id":105292814,"number":1306,"title":"セッションスコープのBeanの参照方法について","user":{"login":"ishiharatmy","id":12096232,"avatar_url":"https://avatars.githubusercontent.com/u/12096232?v=3","gravatar_id":"","url":"https://api.github.com/users/ishiharatmy","html_url":"https://github.com/ishiharatmy","followers_url":"https://api.github.com/users/ishiharatmy/followers","following_url":"https://api.github.com/users/ishiharatmy/following{/other_user}","gists_url":"https://api.github.com/users/ishiharatmy/gists{/gist_id}","starred_url":"https://api.github.com/users/ishiharatmy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ishiharatmy/subscriptions","organizations_url":"https://api.github.com/users/ishiharatmy/orgs","repos_url":"https://api.github.com/users/ishiharatmy/repos","events_url":"https://api.github.com/users/ishiharatmy/events{/privacy}","received_events_url":"https://api.github.com/users/ishiharatmy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/terasolunaorg/guideline/labels/English%20Translation","name":"English Translation","color":"d4c5f9"},{"url":"https://api.github.com/repos/terasolunaorg/guideline/labels/improvement","name":"improvement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"attarudes","id":8819003,"avatar_url":"https://avatars.githubusercontent.com/u/8819003?v=3","gravatar_id":"","url":"https://api.github.com/users/attarudes","html_url":"https://github.com/attarudes","followers_url":"https://api.github.com/users/attarudes/followers","following_url":"https://api.github.com/users/attarudes/following{/other_user}","gists_url":"https://api.github.com/users/attarudes/gists{/gist_id}","starred_url":"https://api.github.com/users/attarudes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/attarudes/subscriptions","organizations_url":"https://api.github.com/users/attarudes/orgs","repos_url":"https://api.github.com/users/attarudes/repos","events_url":"https://api.github.com/users/attarudes/events{/privacy}","received_events_url":"https://api.github.com/users/attarudes/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/terasolunaorg/guideline/milestones/8","html_url":"https://github.com/terasolunaorg/guideline/milestones/5.0.2","labels_url":"https://api.github.com/repos/terasolunaorg/guideline/milestones/8/labels","id":1220111,"number":8,"title":"5.0.2","description":"","creator":{"login":"kazuki43zoo","id":5616270,"avatar_url":"https://avatars.githubusercontent.com/u/5616270?v=3","gravatar_id":"","url":"https://api.github.com/users/kazuki43zoo","html_url":"https://github.com/kazuki43zoo","followers_url":"https://api.github.com/users/kazuki43zoo/followers","following_url":"https://api.github.com/users/kazuki43zoo/following{/other_user}","gists_url":"https://api.github.com/users/kazuki43zoo/gists{/gist_id}","starred_url":"https://api.github.com/users/kazuki43zoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kazuki43zoo/subscriptions","organizations_url":"https://api.github.com/users/kazuki43zoo/orgs","repos_url":"https://api.github.com/users/kazuki43zoo/repos","events_url":"https://api.github.com/users/kazuki43zoo/events{/privacy}","received_events_url":"https://api.github.com/users/kazuki43zoo/received_events","type":"User","site_admin":false},"open_issues":46,"closed_issues":31,"state":"open","created_at":"2015-07-22T13:07:04Z","updated_at":"2015-11-30T15:54:18Z","due_on":"2016-01-31T15:00:00Z","closed_at":null},"comments":1,"created_at":"2015-09-08T03:15:49Z","updated_at":"2015-12-03T03:08:44Z","closed_at":null,"body":"## Description\r\n\r\nガイドラインでは、セッションスコープのBeanをjspから参照するにはModelオブジェクトにBeanを追加するという記載がある。しかし、これではBeanを参照するviewに関連するすべてのControllerにModelオブジェクトにBeanを追加する処理を記述する必要がある。\r\n\r\nhttp://terasolunaorg.github.io/guideline/5.0.1.RELEASE/ja/ArchitectureInDetail/SessionManagement.html#id21\r\n\r\nSpEL式を用いれば、直接セッションスコープのBeanを参照できる。そのため、ModelオブジェクトにBeanを追加する処理を削除して、SpEL式を用いてjspから参照する方法を記載する。\r\n\r\n## Possible Solutions\r\n\r\nhttp://terasolunaorg.github.io/guideline/5.0.1.RELEASE/ja/ArchitectureInDetail/SessionManagement.html#id21\r\n(2)に対応するソースコード、説明を削除する。\r\n代わりに、Noteにspel式を用いた参照方法を記載する。\r\n\r\n\r\nhttp://terasolunaorg.github.io/guideline/5.0.1.RELEASE/ja/ArchitectureInDetail/SessionManagement.html#sessionbeancontroller\r\nModelオブジェクトにBeanを追加する処理を削除する。\r\njspでセッションスコープのBeanを参照している箇所は、すべてSpEL式を用いた参照に置き換える。\r\n\r\n``` jsp\r\n<spring:eval expression=\"@sessionCart.cart.total\" />\r\n\r\n<spring:eval var=\"cart\" experssion=\"@sessionCart.cart\" />\r\n```\r\n\r\n## Affects Version/s\r\n- 5.0.0.RELEASE\r\n- 1.0.2.RELEASE\r\n\r\n## Fix Version/s\r\n- [x] 5.1.0\r\n- [x] 5.0.2\r\n- [ ] 5.1.0 for en\r\n- [ ] 5.0.2 for en\r\n\r\n## Issue Links\r\nNothing"},"comment":{"url":"https://api.github.com/repos/terasolunaorg/guideline/issues/comments/161502763","html_url":"https://github.com/terasolunaorg/guideline/issues/1306#issuecomment-161502763","issue_url":"https://api.github.com/repos/terasolunaorg/guideline/issues/1306","id":161502763,"user":{"login":"ikeyat","id":7290819,"avatar_url":"https://avatars.githubusercontent.com/u/7290819?v=3","gravatar_id":"","url":"https://api.github.com/users/ikeyat","html_url":"https://github.com/ikeyat","followers_url":"https://api.github.com/users/ikeyat/followers","following_url":"https://api.github.com/users/ikeyat/following{/other_user}","gists_url":"https://api.github.com/users/ikeyat/gists{/gist_id}","starred_url":"https://api.github.com/users/ikeyat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ikeyat/subscriptions","organizations_url":"https://api.github.com/users/ikeyat/orgs","repos_url":"https://api.github.com/users/ikeyat/repos","events_url":"https://api.github.com/users/ikeyat/events{/privacy}","received_events_url":"https://api.github.com/users/ikeyat/received_events","type":"User","site_admin":false},"created_at":"2015-12-03T03:08:44Z","updated_at":"2015-12-03T03:08:44Z","body":"@attarudes \r\nPlease translate these changes"}}