{"id":278,"date":"2022-10-10T08:17:45","date_gmt":"2023-07-18T20:15:38","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%9fstruts-2%e3%81%aehello-world%e3%81%ae%e4%be%8b%e3%81%a7%e3%80%81struts-xml%e3%83%95%e3%82%a1\/"},"modified":"2025-07-31T22:16:16","modified_gmt":"2025-07-31T13:16:16","slug":"%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%9fstruts-2%e3%81%aehello-world%e3%81%ae%e4%be%8b%e3%81%a7%e3%80%81struts-xml%e3%83%95%e3%82%a1","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%9fstruts-2%e3%81%aehello-world%e3%81%ae%e4%be%8b%e3%81%a7%e3%80%81struts-xml%e3%83%95%e3%82%a1\/","title":{"rendered":"\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u305fStruts 2\u306eHello World\u306e\u4f8b\u3067\u3001struts.xml\u30d5\u30a1\u30a4\u30eb\u306a\u3057\u3067\u3002"},"content":{"rendered":"<p>\u3053\u308c\u306fStruts 2\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u30b7\u30ea\u30fc\u30ba\u306e2\u756a\u76ee\u306e\u8a18\u4e8b\u3067\u3059\u3002\u3082\u3057\u76f4\u63a5\u3053\u3053\u306b\u6765\u305f\u306e\u3067\u3042\u308c\u3070\u3001\u524d\u306e\u6295\u7a3f\u3082\u30c1\u30a7\u30c3\u30af\u3059\u308b\u3053\u3068\u3092\u304a\u3059\u3059\u3081\u3057\u307e\u3059\u3002\u524d\u56de\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001Struts 2\u306e\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u3001\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u3001XML\u30d9\u30fc\u30b9\u306e\u69cb\u6210\uff08struts.xml\uff09\u3092\u4f7f\u7528\u3057\u3066\u30b7\u30f3\u30d7\u30eb\u306aStruts 2\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001\u6ce8\u91c8\u3084\u547d\u540d\u898f\u5247\u3092\u4f7f\u7528\u3057\u3066\u3001Struts\u306e\u69cb\u6210\u30d5\u30a1\u30a4\u30eb\u3092\u5b8c\u5168\u306b\u56de\u907f\u3059\u308b\u65b9\u6cd5\u3092\u898b\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<h3>\u30b9\u30c8\u30e9\u30c3\u30c82\u306e\u30b3\u30f3\u30d9\u30f3\u30b7\u30e7\u30f3\u306e\u6982\u5ff5<\/h3>\n<p>Struts 2\u3067\u306f\u3001\u30a2\u30af\u30b7\u30e7\u30f3\u30af\u30e9\u30b9\u3068\u7d50\u679c\u30af\u30e9\u30b9\u3092\u898b\u3064\u3051\u308b\u305f\u3081\u306b2\u3064\u306e\u65b9\u6cd5\u8ad6\u304c\u4f7f\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u65b9\u6cd5\u8ad6\u306e\u3044\u305a\u308c\u304b\u3092\u4f7f\u7528\u3059\u308b\u306b\u306f\u3001struts2-convention-plugin API\u3092\u4f7f\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u901a\u5e38\u306eWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u304a\u6301\u3061\u306e\u5834\u5408\u306f\u3001\u305d\u306ejar\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306elib\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u914d\u7f6e\u3057\u3066\u304f\u3060\u3055\u3044\u3002Maven\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u5834\u5408\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u4f9d\u5b58\u95a2\u4fc2\u3092\u5358\u7d14\u306b\u8ffd\u52a0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>&lt;dependency&gt;\r\n\t&lt;groupId&gt;org.apache.struts&lt;\/groupId&gt;\r\n\t&lt;artifactId&gt;struts2-convention-plugin&lt;\/artifactId&gt;\r\n\t&lt;version&gt;2.3.15.1&lt;\/version&gt;\r\n&lt;\/dependency&gt;\r\n<\/code><\/pre>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u30b9\u30ad\u30e3\u30f3\uff1a\u3053\u306e\u65b9\u6cd5\u3067\u306f\u3001\u30a2\u30af\u30b7\u30e7\u30f3\u30af\u30e9\u30b9\u3092\u30b9\u30ad\u30e3\u30f3\u3059\u308b\u5fc5\u8981\u306e\u3042\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002Struts 2\u30d5\u30a3\u30eb\u30bf\u30fc\u306eweb.xml\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a2d\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>struts2<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>actionPackages com.scdev.struts2.actions<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p>Struts 2\u306f\u4ee5\u4e0b\u306e\u65b9\u6cd5\u3067\u30a2\u30af\u30b7\u30e7\u30f3\u30af\u30e9\u30b9\u3092\u898b\u3064\u3051\u307e\u3059\u3002<\/p>\n<p>@Action\u307e\u305f\u306f@Actions\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3067\u6ce8\u91c8\u4ed8\u3051\u3089\u308c\u305f\u30af\u30e9\u30b9<br \/>\nAction\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u3092\u5b9f\u88c5\u3057\u305f\u308aActionSupport\u30af\u30e9\u30b9\u3092\u62e1\u5f35\u3057\u305f\u308a\u3059\u308b\u30af\u30e9\u30b9<br \/>\n\u30af\u30e9\u30b9\u540d\u304cAction\u3067\u7d42\u308f\u308a\u3001execute()\u30e1\u30bd\u30c3\u30c9\u3092\u542b\u3080\u30af\u30e9\u30b9\u3002\u3053\u308c\u3089\u306e\u30af\u30e9\u30b9\u3067\u306f\u3001\u30a2\u30af\u30b7\u30e7\u30f3\u3068\u7d50\u679c\u3092\u6c7a\u5b9a\u3059\u308b\u305f\u3081\u306b\u547d\u540d\u898f\u5247\u304c\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u547d\u540d\u898f\u5247\uff1aStruts 2\u306f\u3001Action\u3067\u7d42\u308f\u308b\u30af\u30e9\u30b9\u540d\u306b\u5bfe\u3057\u3066\u81ea\u52d5\u7684\u306b\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u30a2\u30af\u30b7\u30e7\u30f3\u540d\u306f\u3001Action\u306e\u63a5\u5c3e\u8f9e\u3092\u524a\u9664\u3057\u3001\u6700\u521d\u306e\u6587\u5b57\u3092\u5c0f\u6587\u5b57\u306b\u5909\u63db\u3059\u308b\u3053\u3068\u3067\u6c7a\u5b9a\u3055\u308c\u307e\u3059\u3002\u3057\u305f\u304c\u3063\u3066\u3001\u30af\u30e9\u30b9\u540d\u304cHomeAction\u3067\u3042\u308b\u5834\u5408\u3001\u30a2\u30af\u30b7\u30e7\u30f3\u306f\u300chome\u300d\u306b\u306a\u308a\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u30af\u30e9\u30b9\u304c@Result\u3067\u7d50\u679c\u3092\u63d0\u4f9b\u3059\u308b\u3088\u3046\u306b\u6ce8\u91c8\u4ed8\u3051\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u3001\u7d50\u679c\u30da\u30fc\u30b8\u306fWEB-INF\/content\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u3092\u63a2\u3055\u308c\u3001\u540d\u524d\u306f{action}-{return_string}.jsp\u3067\u3042\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3057\u305f\u304c\u3063\u3066\u3001HomeAction\u30a2\u30af\u30b7\u30e7\u30f3\u30af\u30e9\u30b9\u304c\u300csuccess\u300d\u3092\u8fd4\u3059\u5834\u5408\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u306fWEB-INF\/content\/home-success.jsp\u30da\u30fc\u30b8\u306b\u8ee2\u9001\u3055\u308c\u307e\u3059\u3002\u547d\u540d\u898f\u5247\u306e\u307f\u3092\u4f7f\u7528\u3059\u308b\u3068\u975e\u5e38\u306b\u6df7\u4e71\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u3001\u4ed6\u306e\u30a2\u30af\u30b7\u30e7\u30f3\u30af\u30e9\u30b9\u306b\u540c\u3058JSP\u30da\u30fc\u30b8\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002\u3053\u308c\u3092\u907f\u3051\u308b\u305f\u3081\u306b\u3001\u6ce8\u91c8\u30d9\u30fc\u30b9\u306e\u69cb\u6210\u3092\u4f7f\u7528\u3059\u308b\u3088\u3046\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u4eca\u3001\u6ce8\u91c8\u3092\u4f7f\u7528\u3057\u3066Hello World\u306eStruts 2\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3059\u308b\u6e96\u5099\u304c\u6574\u3044\u307e\u3057\u305f\u3002Struts 2\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306f\u5fc5\u8981\u3042\u308a\u307e\u305b\u3093\u3002Eclipse\u306eStruts2AnnotationHelloWorld\u3067\u30c0\u30a4\u30ca\u30df\u30c3\u30afWeb\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u3001Maven\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u5909\u63db\u3057\u307e\u3059\u3002\u6700\u7d42\u7684\u306a\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306f\u4ee5\u4e0b\u306e\u753b\u50cf\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3>\u30e1\u30a4\u30d6\u30f3\u306e\u8a2d\u5b9a<\/h3>\n<p>pom.xml\u306b\u306fstruts2-core\u3068struts2-convention-plugin\u306e\u4f9d\u5b58\u95a2\u4fc2\u3092\u8ffd\u52a0\u3057\u307e\u3057\u305f\u3002\u6700\u7d42\u7684\u306apom.xml\u30b3\u30fc\u30c9\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>&lt;project xmlns=\"https:\/\/maven.apache.org\/POM\/4.0.0\" xmlns:xsi=\"https:\/\/www.w3.org\/2001\/XMLSchema-instance\"\r\n\txsi:schemaLocation=\"https:\/\/maven.apache.org\/POM\/4.0.0 https:\/\/maven.apache.org\/xsd\/maven-4.0.0.xsd\"&gt;\r\n\t&lt;modelVersion&gt;4.0.0&lt;\/modelVersion&gt;\r\n\t&lt;groupId&gt;Struts2AnnotationHelloWorld&lt;\/groupId&gt;\r\n\t&lt;artifactId&gt;Struts2AnnotationHelloWorld&lt;\/artifactId&gt;\r\n\t&lt;version&gt;0.0.1-SNAPSHOT&lt;\/version&gt;\r\n\t&lt;packaging&gt;war&lt;\/packaging&gt;\r\n\r\n\t&lt;dependencies&gt;\r\n\t\t&lt;dependency&gt;\r\n\t\t\t&lt;groupId&gt;org.apache.struts&lt;\/groupId&gt;\r\n\t\t\t&lt;artifactId&gt;struts2-core&lt;\/artifactId&gt;\r\n\t\t\t&lt;version&gt;2.3.15.1&lt;\/version&gt;\r\n\t\t&lt;\/dependency&gt;\r\n\t\t&lt;dependency&gt;\r\n\t\t\t&lt;groupId&gt;org.apache.struts&lt;\/groupId&gt;\r\n\t\t\t&lt;artifactId&gt;struts2-convention-plugin&lt;\/artifactId&gt;\r\n\t\t\t&lt;version&gt;2.3.15.1&lt;\/version&gt;\r\n\t\t&lt;\/dependency&gt;\r\n\t&lt;\/dependencies&gt;\r\n\r\n\t&lt;build&gt;\r\n\t\t&lt;plugins&gt;\r\n\t\t\t&lt;plugin&gt;\r\n\t\t\t\t&lt;artifactId&gt;maven-compiler-plugin&lt;\/artifactId&gt;\r\n\t\t\t\t&lt;version&gt;3.1&lt;\/version&gt;\r\n\t\t\t\t&lt;configuration&gt;\r\n\t\t\t\t\t&lt;source&gt;1.6&lt;\/source&gt;\r\n\t\t\t\t\t&lt;target&gt;1.6&lt;\/target&gt;\r\n\t\t\t\t&lt;\/configuration&gt;\r\n\t\t\t&lt;\/plugin&gt;\r\n\t\t\t&lt;plugin&gt;\r\n\t\t\t\t&lt;artifactId&gt;maven-war-plugin&lt;\/artifactId&gt;\r\n\t\t\t\t&lt;version&gt;2.3&lt;\/version&gt;\r\n\t\t\t\t&lt;configuration&gt;\r\n\t\t\t\t\t&lt;warSourceDirectory&gt;WebContent&lt;\/warSourceDirectory&gt;\r\n\t\t\t\t\t&lt;failOnMissingWebXml&gt;false&lt;\/failOnMissingWebXml&gt;\r\n\t\t\t\t&lt;\/configuration&gt;\r\n\t\t\t&lt;\/plugin&gt;\r\n\t\t&lt;\/plugins&gt;\r\n\t\t&lt;finalName&gt;${project.artifactId}&lt;\/finalName&gt;\r\n\t&lt;\/build&gt;\r\n&lt;\/project&gt;\r\n<\/code><\/pre>\n<h3>\u30c7\u30d7\u30ed\u30a4\u30e1\u30f3\u30c8\u30c7\u30a3\u30b9\u30af\u30ea\u30d7\u30bf\u306e\u69cb\u6210<\/h3>\n<pre class=\"post-pre\"><code>&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\r\n&lt;web-app xmlns:xsi=\"https:\/\/www.w3.org\/2001\/XMLSchema-instance\"\r\n\txmlns=\"https:\/\/java.sun.com\/xml\/ns\/javaee\"\r\n\txsi:schemaLocation=\"https:\/\/java.sun.com\/xml\/ns\/javaee https:\/\/java.sun.com\/xml\/ns\/javaee\/web-app_3_0.xsd\"\r\n\tid=\"WebApp_ID\" version=\"3.0\"&gt;\r\n\t&lt;display-name&gt;Struts2AnnotationHelloWorld&lt;\/display-name&gt;\r\n\r\n\t&lt;filter&gt;\r\n\t\t&lt;filter-name&gt;struts2&lt;\/filter-name&gt;\r\n\t\t&lt;filter-class&gt;org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter&lt;\/filter-class&gt;\r\n\t\t&lt;init-param&gt;\r\n\t\t\t&lt;param-name&gt;actionPackages&lt;\/param-name&gt;\r\n\t\t\t&lt;param-value&gt;com.scdev.struts2.actions&lt;\/param-value&gt;\r\n\t\t&lt;\/init-param&gt;\r\n\t&lt;\/filter&gt;\r\n\r\n\t&lt;filter-mapping&gt;\r\n\t\t&lt;filter-name&gt;struts2&lt;\/filter-name&gt;\r\n\t\t&lt;url-pattern&gt;\/*&lt;\/url-pattern&gt;\r\n\t&lt;\/filter-mapping&gt;\r\n\r\n&lt;\/web-app&gt;\r\n<\/code><\/pre>\n<p>struts 2 \u304c\u30b9\u30ad\u30e3\u30f3\u3059\u308b\u30a2\u30af\u30b7\u30e7\u30f3\u30af\u30e9\u30b9\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u6307\u5b9a\u3059\u308b init-param \u8981\u7d20\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3>\u7d50\u679c\u30da\u30fc\u30b8<\/h3>\n<p>\u79c1\u305f\u3061\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u306f\u3001\u30ed\u30b0\u30a4\u30f3.jsp\u3068\u3044\u30463\u3064\u306e\u7d50\u679c\u30da\u30fc\u30b8\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>&lt;%@ page language=\"java\" contentType=\"text\/html; charset=US-ASCII\"\r\n    pageEncoding=\"US-ASCII\"%&gt;\r\n&lt;!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD HTML 4.01 Transitional\/\/EN\" \"https:\/\/www.w3.org\/TR\/html4\/loose.dtd\"&gt;\r\n&lt;%-- Using Struts2 Tags in JSP --%&gt;\r\n&lt;%@ taglib uri=\"\/struts-tags\" prefix=\"s\"%&gt;\r\n&lt;html&gt;\r\n&lt;head&gt;\r\n&lt;meta http-equiv=\"Content-Type\" content=\"text\/html; charset=US-ASCII\"&gt;\r\n&lt;title&gt;Login Page&lt;\/title&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n&lt;h3&gt;Welcome User, please login below&lt;\/h3&gt;\r\n&lt;s:form action=\"login\"&gt;\r\n\t&lt;s:textfield name=\"name\" label=\"User Name\"&gt;&lt;\/s:textfield&gt;\r\n\t&lt;s:textfield name=\"pwd\" label=\"Password\" type=\"password\"&gt;&lt;\/s:textfield&gt;\r\n\t&lt;s:submit value=\"Login\"&gt;&lt;\/s:submit&gt;\r\n&lt;\/s:form&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/code><\/pre>\n<p>\u30a8\u30e9\u30fc\u30da\u30fc\u30b8.jsp<\/p>\n<pre class=\"post-pre\"><code>&lt;%@ page language=\"java\" contentType=\"text\/html; charset=US-ASCII\"\r\n    pageEncoding=\"US-ASCII\"%&gt;\r\n&lt;%@ taglib uri=\"\/struts-tags\" prefix=\"s\"%&gt;\r\n    \r\n&lt;!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD HTML 4.01 Transitional\/\/EN\" \"https:\/\/www.w3.org\/TR\/html4\/loose.dtd\"&gt;\r\n&lt;html&gt;\r\n&lt;head&gt;\r\n&lt;meta http-equiv=\"Content-Type\" content=\"text\/html; charset=US-ASCII\"&gt;\r\n&lt;title&gt;Error Page&lt;\/title&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n&lt;h4&gt;User Name or Password is wrong&lt;\/h4&gt;\r\n&lt;s:include value=\"login.jsp\"&gt;&lt;\/s:include&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/code><\/pre>\n<p>\u3088\u3046\u3053\u305d.jsp<\/p>\n<pre class=\"post-pre\"><code>&lt;%@ page language=\"java\" contentType=\"text\/html; charset=US-ASCII\"\r\n    pageEncoding=\"US-ASCII\"%&gt;\r\n&lt;%@ taglib uri=\"\/struts-tags\" prefix=\"s\"%&gt;\r\n&lt;!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD HTML 4.01 Transitional\/\/EN\" \"https:\/\/www.w3.org\/TR\/html4\/loose.dtd\"&gt;\r\n&lt;html&gt;\r\n&lt;head&gt;\r\n&lt;meta http-equiv=\"Content-Type\" content=\"text\/html; charset=US-ASCII\"&gt;\r\n&lt;title&gt;Welcome Page&lt;\/title&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n&lt;h3&gt;Welcome &lt;s:property value=\"name\"&gt;&lt;\/s:property&gt;&lt;\/h3&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/code><\/pre>\n<p>\u3055\u3066\u3001\u30a2\u30af\u30b7\u30e7\u30f3\u30af\u30e9\u30b9\u3092\u4f5c\u6210\u3057\u307e\u3057\u3087\u3046\u3002\u30a2\u30af\u30b7\u30e7\u30f3\u30af\u30e9\u30b9\u306f\u30a2\u30af\u30b7\u30e7\u30f3\u3068\u7d50\u679c\u306e\u30da\u30fc\u30b8\u3092\u8a2d\u5b9a\u3059\u308b\u305f\u3081\u306b\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u4ed8\u3051\u307e\u3059\u3002<\/p>\n<h3>\u6ce8\u91c8\u4ed8\u304d\u306e\u30a2\u30af\u30b7\u30e7\u30f3\u30af\u30e9\u30b9<\/h3>\n<pre class=\"post-pre\"><code>package com.scdev.struts2.actions;\r\n\r\nimport org.apache.struts2.convention.annotation.Action;\r\nimport org.apache.struts2.convention.annotation.Actions;\r\nimport org.apache.struts2.convention.annotation.Namespace;\r\nimport org.apache.struts2.convention.annotation.Namespaces;\r\nimport org.apache.struts2.convention.annotation.Result;\r\n\r\nimport com.opensymphony.xwork2.ActionSupport;\r\n\r\n\/**\r\n * An empty class for default Action implementation for:\r\n * \r\n *  &lt;action name=\"home\"&gt;\r\n *\t\t&lt;result&gt;\/login.jsp&lt;\/result&gt;\r\n *\t&lt;\/action&gt;\r\n * HomeAction class will be automatically mapped for home.action\r\n * Default page is login.jsp which will be served to client\r\n * @author scdev\r\n *\r\n *\/\r\n\r\n@Namespaces(value={@Namespace(\"\/User\"),@Namespace(\"\/\")})\r\n@Result(location=\"\/login.jsp\")\r\n@Actions(value={@Action(\"\"),@Action(\"home\")})\r\npublic class HomeAction extends ActionSupport {\r\n}\r\n<\/code><\/pre>\n<p>HomeAction\u3068\u3044\u3046\u30af\u30e9\u30b9\u306f\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u3092login.jsp\u30da\u30fc\u30b8\u306b\u8ee2\u9001\u3059\u308b\u3068\u3044\u3046\u552f\u4e00\u306e\u76ee\u7684\u3092\u6301\u3064\u7a7a\u306e\u30af\u30e9\u30b9\u3067\u3042\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code>package com.scdev.struts2.actions;\r\n\r\nimport org.apache.struts2.convention.annotation.Action;\r\nimport org.apache.struts2.convention.annotation.Namespace;\r\nimport org.apache.struts2.convention.annotation.Namespaces;\r\nimport org.apache.struts2.convention.annotation.Result;\r\n\r\n\/**\r\n * Notice the @Action annotation where action and result pages are declared\r\n * Also notice that we don't need to implement Action interface or extend ActionSupport\r\n * class, only we need is an execute() method with same signature\r\n * @author scdev\r\n *\r\n *\/\r\n@Action(value = \"login\", results = {\r\n\t\t@Result(name = \"SUCCESS\", location = \"\/welcome.jsp\"),\r\n\t\t@Result(name = \"ERROR\", location = \"\/error.jsp\") })\r\n@Namespaces(value={@Namespace(\"\/User\"),@Namespace(\"\/\")})\r\npublic class LoginAction {\r\n\r\n\tpublic String execute() throws Exception {\r\n\t\tif(\"scdev\".equals(getName()) &amp;&amp; \"admin\".equals(getPwd()))\r\n\t\treturn \"SUCCESS\";\r\n\t\telse return \"ERROR\";\r\n\t}\r\n\t\r\n\t\/\/Java Bean to hold the form parameters\r\n\tprivate String name;\r\n\tprivate String pwd;\r\n\tpublic String getName() {\r\n\t\treturn name;\r\n\t}\r\n\tpublic void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}\r\n\tpublic String getPwd() {\r\n\t\treturn pwd;\r\n\t}\r\n\tpublic void setPwd(String pwd) {\r\n\t\tthis.pwd = pwd;\r\n\t}\r\n}\r\n<\/code><\/pre>\n<p>@Action\u3001@Actions\u3001@Result\u3001@Namespace\u3001\u304a\u3088\u3073@Namespaces\u306e\u6ce8\u91c8\u306e\u4f7f\u7528\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u305d\u306e\u4f7f\u7528\u65b9\u6cd5\u306f\u81ea\u5df1\u8aac\u660e\u7684\u3067\u3059\u3002\u4eca\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u5fdc\u7b54\u30da\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u3082\u3057\u3001\u524d\u56de\u306e\u6295\u7a3f\u3092\u8aad\u3093\u3060\u3053\u3068\u304c\u3042\u308b\u306a\u3089\u3070\u3001\u305d\u308c\u306fstruts.xml\u306e\u8a2d\u5b9a\u3067\u540c\u3058\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u958b\u767a\u3057\u305f\u3082\u306e\u3067\u3059\u304c\u3001\u307b\u307c\u540c\u3058\u3068\u3044\u3046\u70b9\u306b\u6ce8\u76ee\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u552f\u4e00\u306e\u5909\u66f4\u70b9\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30a2\u30af\u30b7\u30e7\u30f3\u30af\u30e9\u30b9\u3068\u7d50\u679c\u30da\u30fc\u30b8\u3092\u63a5\u7d9a\u3059\u308b\u65b9\u6cd5\u3067\u3059\u3002<\/p>\n<p>\u300cStruts2\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u306e\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3057\u3087\u3046\u3002\u300d<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u308c\u306fStruts 2\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u30b7\u30ea\u30fc\u30ba\u306e2\u756a\u76ee\u306e\u8a18\u4e8b\u3067\u3059\u3002\u3082\u3057\u76f4\u63a5\u3053\u3053\u306b\u6765\u305f\u306e\u3067\u3042\u308c\u3070\u3001\u524d\u306e\u6295\u7a3f\u3082\u30c1\u30a7\u30c3\u30af\u3059\u308b\u3053\u3068\u3092\u304a\u3059\u3059\u3081\u3057\u307e\u3059\u3002\u524d\u56de\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001Struts 2\u306e\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u3001\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306b\u3064\u3044\u3066 [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[26,61],"class_list":["post-278","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-26","tag-61"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u305fStruts 2\u306eHello World\u306e\u4f8b\u3067\u3001struts.xml\u30d5\u30a1\u30a4\u30eb\u306a\u3057\u3067\u3002 - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u305fStruts 2\u306eHello World\u306e\u4f8b\u3067struts.xml\u30d5\u30a1\u30a4\u30eb\u306a\u3057\u3067\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/ja\/blog\/\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u305fstruts-2\u306ehello-world\u306e\u4f8b\u3067\u3001struts-xml\u30d5\u30a1\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u305fStruts 2\u306eHello World\u306e\u4f8b\u3067\u3001struts.xml\u30d5\u30a1\u30a4\u30eb\u306a\u3057\u3067\u3002\" \/>\n<meta property=\"og:description\" content=\"\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u305fStruts 2\u306eHello World\u306e\u4f8b\u3067struts.xml\u30d5\u30a1\u30a4\u30eb\u306a\u3057\u3067\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/ja\/blog\/\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u305fstruts-2\u306ehello-world\u306e\u4f8b\u3067\u3001struts-xml\u30d5\u30a1\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-18T20:15:38+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-31T13:16:16+00:00\" \/>\n<meta name=\"author\" content=\"\u7d50\u8863, \u6625\u82b1\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u7d50\u8863, \u6625\u82b1\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"20\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%9fstruts-2%e3%81%aehello-world%e3%81%ae%e4%be%8b%e3%81%a7%e3%80%81struts-xml%e3%83%95%e3%82%a1\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%9fstruts-2%e3%81%aehello-world%e3%81%ae%e4%be%8b%e3%81%a7%e3%80%81struts-xml%e3%83%95%e3%82%a1\/\",\"name\":\"\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u305fStruts 2\u306eHello World\u306e\u4f8b\u3067\u3001struts.xml\u30d5\u30a1\u30a4\u30eb\u306a\u3057\u3067\u3002 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2023-07-18T20:15:38+00:00\",\"dateModified\":\"2025-07-31T13:16:16+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/e52a686063ac76fd8cc6f539d41497ac\"},\"description\":\"\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u305fStruts 2\u306eHello World\u306e\u4f8b\u3067struts.xml\u30d5\u30a1\u30a4\u30eb\u306a\u3057\u3067\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%9fstruts-2%e3%81%aehello-world%e3%81%ae%e4%be%8b%e3%81%a7%e3%80%81struts-xml%e3%83%95%e3%82%a1\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%9fstruts-2%e3%81%aehello-world%e3%81%ae%e4%be%8b%e3%81%a7%e3%80%81struts-xml%e3%83%95%e3%82%a1\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%9fstruts-2%e3%81%aehello-world%e3%81%ae%e4%be%8b%e3%81%a7%e3%80%81struts-xml%e3%83%95%e3%82%a1\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u305fStruts 2\u306eHello World\u306e\u4f8b\u3067\u3001struts.xml\u30d5\u30a1\u30a4\u30eb\u306a\u3057\u3067\u3002\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/e52a686063ac76fd8cc6f539d41497ac\",\"name\":\"\u7d50\u8863, \u6625\u82b1\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c74c6e2eb915a3c8e795b3934aa25a7333e0b38e7f1c7baf52785286ad51105e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c74c6e2eb915a3c8e795b3934aa25a7333e0b38e7f1c7baf52785286ad51105e?s=96&d=mm&r=g\",\"caption\":\"\u7d50\u8863, \u6625\u82b1\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/yuiharuka\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%9fstruts-2%e3%81%aehello-world%e3%81%ae%e4%be%8b%e3%81%a7%e3%80%81struts-xml%e3%83%95%e3%82%a1\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u305fStruts 2\u306eHello World\u306e\u4f8b\u3067\u3001struts.xml\u30d5\u30a1\u30a4\u30eb\u306a\u3057\u3067\u3002 - Blog - Silicon Cloud","description":"\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u305fStruts 2\u306eHello World\u306e\u4f8b\u3067struts.xml\u30d5\u30a1\u30a4\u30eb\u306a\u3057\u3067\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/ja\/blog\/\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u305fstruts-2\u306ehello-world\u306e\u4f8b\u3067\u3001struts-xml\u30d5\u30a1\/","og_locale":"ja_JP","og_type":"article","og_title":"\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u305fStruts 2\u306eHello World\u306e\u4f8b\u3067\u3001struts.xml\u30d5\u30a1\u30a4\u30eb\u306a\u3057\u3067\u3002","og_description":"\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u305fStruts 2\u306eHello World\u306e\u4f8b\u3067struts.xml\u30d5\u30a1\u30a4\u30eb\u306a\u3057\u3067\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","og_url":"https:\/\/www.silicloud.com\/ja\/blog\/\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u305fstruts-2\u306ehello-world\u306e\u4f8b\u3067\u3001struts-xml\u30d5\u30a1\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-07-18T20:15:38+00:00","article_modified_time":"2025-07-31T13:16:16+00:00","author":"\u7d50\u8863, \u6625\u82b1","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u7d50\u8863, \u6625\u82b1","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"20\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%9fstruts-2%e3%81%aehello-world%e3%81%ae%e4%be%8b%e3%81%a7%e3%80%81struts-xml%e3%83%95%e3%82%a1\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%9fstruts-2%e3%81%aehello-world%e3%81%ae%e4%be%8b%e3%81%a7%e3%80%81struts-xml%e3%83%95%e3%82%a1\/","name":"\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u305fStruts 2\u306eHello World\u306e\u4f8b\u3067\u3001struts.xml\u30d5\u30a1\u30a4\u30eb\u306a\u3057\u3067\u3002 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2023-07-18T20:15:38+00:00","dateModified":"2025-07-31T13:16:16+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/e52a686063ac76fd8cc6f539d41497ac"},"description":"\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u305fStruts 2\u306eHello World\u306e\u4f8b\u3067struts.xml\u30d5\u30a1\u30a4\u30eb\u306a\u3057\u3067\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%9fstruts-2%e3%81%aehello-world%e3%81%ae%e4%be%8b%e3%81%a7%e3%80%81struts-xml%e3%83%95%e3%82%a1\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%9fstruts-2%e3%81%aehello-world%e3%81%ae%e4%be%8b%e3%81%a7%e3%80%81struts-xml%e3%83%95%e3%82%a1\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%9fstruts-2%e3%81%aehello-world%e3%81%ae%e4%be%8b%e3%81%a7%e3%80%81struts-xml%e3%83%95%e3%82%a1\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u305fStruts 2\u306eHello World\u306e\u4f8b\u3067\u3001struts.xml\u30d5\u30a1\u30a4\u30eb\u306a\u3057\u3067\u3002"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website","url":"https:\/\/www.silicloud.com\/ja\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/e52a686063ac76fd8cc6f539d41497ac","name":"\u7d50\u8863, \u6625\u82b1","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c74c6e2eb915a3c8e795b3934aa25a7333e0b38e7f1c7baf52785286ad51105e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c74c6e2eb915a3c8e795b3934aa25a7333e0b38e7f1c7baf52785286ad51105e?s=96&d=mm&r=g","caption":"\u7d50\u8863, \u6625\u82b1"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/yuiharuka\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/%e3%82%a2%e3%83%8e%e3%83%86%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%9fstruts-2%e3%81%aehello-world%e3%81%ae%e4%be%8b%e3%81%a7%e3%80%81struts-xml%e3%83%95%e3%82%a1\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/278","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=278"}],"version-history":[{"count":1,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/278\/revisions"}],"predecessor-version":[{"id":38574,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/278\/revisions\/38574"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=278"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=278"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=278"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}