{"action":"created","issue":{"url":"https://api.github.com/repos/mvc-spec/ozark/issues/151","repository_url":"https://api.github.com/repos/mvc-spec/ozark","labels_url":"https://api.github.com/repos/mvc-spec/ozark/issues/151/labels{/name}","comments_url":"https://api.github.com/repos/mvc-spec/ozark/issues/151/comments","events_url":"https://api.github.com/repos/mvc-spec/ozark/issues/151/events","html_url":"https://github.com/mvc-spec/ozark/issues/151","id":296178060,"node_id":"MDU6SXNzdWUyOTYxNzgwNjA=","number":151,"title":"Add support for a default file extension for view names","user":{"login":"chkal","id":159245,"node_id":"MDQ6VXNlcjE1OTI0NQ==","avatar_url":"https://avatars2.githubusercontent.com/u/159245?v=4","gravatar_id":"","url":"https://api.github.com/users/chkal","html_url":"https://github.com/chkal","followers_url":"https://api.github.com/users/chkal/followers","following_url":"https://api.github.com/users/chkal/following{/other_user}","gists_url":"https://api.github.com/users/chkal/gists{/gist_id}","starred_url":"https://api.github.com/users/chkal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chkal/subscriptions","organizations_url":"https://api.github.com/users/chkal/orgs","repos_url":"https://api.github.com/users/chkal/repos","events_url":"https://api.github.com/users/chkal/events{/privacy}","received_events_url":"https://api.github.com/users/chkal/received_events","type":"User","site_admin":false},"labels":[{"id":328022726,"node_id":"MDU6TGFiZWwzMjgwMjI3MjY=","url":"https://api.github.com/repos/mvc-spec/ozark/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":328022727,"node_id":"MDU6TGFiZWwzMjgwMjI3Mjc=","url":"https://api.github.com/repos/mvc-spec/ozark/labels/help%20wanted","name":"help wanted","color":"159818","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2018-02-11T10:09:08Z","updated_at":"2018-08-10T16:40:05Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"See the following discussion on the mailing list:\r\n\r\nhttps://groups.google.com/forum/#!topic/jsr371-users/3ky4bw_8A0I\r\n\r\nI think we should try to implement a minimal version of this requirement in Ozark without mentioning it ins the spec. This makes it an Ozark specific feature which we may  add to the spec later on.\r\n\r\nI could imagine a configuration parameter like this:\r\n\r\n```java\r\nproperties.put(Properties.DEFAULT_VIEW_FILE_EXTENSION, \"jsp\");\r\n```\r\nAnd some code similar to this one to apply this default (pseudo code):\r\n\r\n```java\r\nif( !viewName.endsWith( \".\" + defaultViewFileExtension) ) {\r\n    viewName = viewName + \".\" + defaultViewFileExtension;\r\n}\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mvc-spec/ozark/issues/comments/412138382","html_url":"https://github.com/mvc-spec/ozark/issues/151#issuecomment-412138382","issue_url":"https://api.github.com/repos/mvc-spec/ozark/issues/151","id":412138382,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMjEzODM4Mg==","user":{"login":"Daniel-Dos","id":8139890,"node_id":"MDQ6VXNlcjgxMzk4OTA=","avatar_url":"https://avatars1.githubusercontent.com/u/8139890?v=4","gravatar_id":"","url":"https://api.github.com/users/Daniel-Dos","html_url":"https://github.com/Daniel-Dos","followers_url":"https://api.github.com/users/Daniel-Dos/followers","following_url":"https://api.github.com/users/Daniel-Dos/following{/other_user}","gists_url":"https://api.github.com/users/Daniel-Dos/gists{/gist_id}","starred_url":"https://api.github.com/users/Daniel-Dos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Daniel-Dos/subscriptions","organizations_url":"https://api.github.com/users/Daniel-Dos/orgs","repos_url":"https://api.github.com/users/Daniel-Dos/repos","events_url":"https://api.github.com/users/Daniel-Dos/events{/privacy}","received_events_url":"https://api.github.com/users/Daniel-Dos/received_events","type":"User","site_admin":false},"created_at":"2018-08-10T16:40:05Z","updated_at":"2018-08-10T16:40:05Z","author_association":"CONTRIBUTOR","body":"in case that's what you meant? : \r\n\r\n`if (!viewName.endsWith(\".\" + kConfig.getDefaultViewFileExtension()) &&  ...`\r\n\r\nand this protected method would still be in the class `ViewResponseFilter.java`\r\n"}}
{"actor":{"display_login":"Daniel-Dos"}}