{"id":1392,"date":"2009-07-07T05:43:34","date_gmt":"2009-07-06T20:43:34","guid":{"rendered":"http:\/\/fukata.org\/?p=1392"},"modified":"2017-08-11T23:07:14","modified_gmt":"2017-08-11T23:07:14","slug":"jc-session-value-in-struts2-jsp","status":"publish","type":"post","link":"https:\/\/blog.fukata.org\/archives\/1392\/","title":{"rendered":"[JC]Struts2\u3067jsp\u5185\u3067session\u306e\u5024\u306e\u53d6\u5f97\u306b\u3064\u3044\u3066"},"content":{"rendered":"
\u30bb\u30c3\u30b7\u30e7\u30f3\u306b\u30ad\u30fc\u300cuser\u300d\u3068\u3057\u3066User\u30af\u30e9\u30b9\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u683c\u7d0d\u3057\u3066\u3001jsp\u5185\u3067\u3001User\u30af\u30e9\u30b9\u306ename\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u8868\u793a\u3057\u305f\u3044\u3002\u3068\u3044\u3046\u3088\u3046\u306a\u30b7\u30ca\u30ea\u30aa\u304c\u3042\u308b\u3068\u3057\u307e\u3059\u3002\u4eca\u56de\u306f\u305d\u306e\u3088\u3046\u306a\u30b7\u30ca\u30ea\u30aa\u3067\u3084\u3063\u3066\u3044\u3053\u3046\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n
\u25a0User.java<\/p>\n
\r\npublic class User {\r\n\tprivate String name;\r\n\t\r\n\tpublic String getName(){\r\n\t\treturn this.name;\r\n\t}\r\n\r\n\tpublic String setName(String name){\r\n\t\treturn this.name = name;\r\n\t}\r\n}\r\n<\/pre>\n\u25a0Hoge.jsp<\/p>\n
\r\nHello <\/s>\r\n<\/pre>\n\u7c21\u5358\u306b\u66f8\u304d\u307e\u3057\u305f\u304c\u3001\u4ee5\u4e0b\u306e\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3067\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n
\r\n<\/s>\r\n<\/pre>\n\u3061\u306a\u307f\u306b\u3001Map\u306a\u3093\u304b\u3067\u3082\u540c\u3058\u3088\u3046\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u306e\u3067\u3001\u8a66\u3057\u3066\u307f\u3066\u4e0b\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"
\u30bb\u30c3\u30b7\u30e7\u30f3\u306b\u30ad\u30fc\u300cuser\u300d\u3068\u3057\u3066User\u30af\u30e9\u30b9\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u683c\u7d0d\u3057\u3066\u3001jsp\u5185\u3067\u3001User\u30af\u30e9\u30b9\u306ename\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u8868\u793a\u3057\u305f\u3044\u3002\u3068\u3044\u3046\u3088\u3046\u306a\u30b7\u30ca\u30ea\u30aa\u304c\u3042\u308b\u3068\u3057\u307e\u3059\u3002\u4eca\u56de\u306f\u305d\u306e\u3088\u3046\u306a\u30b7\u30ca\u30ea\u30aa\u3067\u3084\u3063 … \u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":2,"featured_media":9223372036854775807,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1980],"tags":[341,348,347,346],"_links":{"self":[{"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/posts\/1392"}],"collection":[{"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/comments?post=1392"}],"version-history":[{"count":0,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/posts\/1392\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/media\/9223372036854775807"}],"wp:attachment":[{"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/media?parent=1392"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/categories?post=1392"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/tags?post=1392"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}