QA@IT
«質問へ戻る

28
本文
 </body>
 </html>
 ```
+
+tiles.jsp
+```
+<%@page contentType="text/html; charset=UTF-8"%>
+<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
+<%@ taglib prefix="s" uri="/struts-tags" %>
+<tiles:insertDefinition name="Welcome"/>
+```
+
+tiles.xml
+```
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE tiles-definitions PUBLIC "-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN" "http://tiles.apache.org/dtds/tiles-config_2_0.dtd">
+<tiles-definitions>
+<definition name="Welcome" template="/baseLayout.jsp">
+    <put-attribute name="title"  value="スポーツ用品店社員用在庫表メニュー認証画面"/>
+    <put-attribute name="header" value="/header.jsp"/>
+	<put-attribute name="date" value="/date.jsp" />
+	<put-attribute name="main" value="/main.jsp" />
+	<put-attribute name="search" value="/search.jsp" />
+</definition>
+</tiles-definitions>
+```
+

struts2.3でJSPからActionに遷移しない

お世話になります。
struts2.3で、JSPで指定したactionから同じactionを指定してあるexecuteメソッドがあるJavaコードに
正常に遷移しません。
どなたか解決方法をご教授下さい。

eclipse Juno
tomcat7.0
java sdk 7
MySQL5.5.29
struts2.3
tiles3.03

index.jsp

<%@ page language="java" contentType="text/html; charset=Windows-31J"
    pageEncoding="Windows-31J"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
<title>社員認証要求画面</title>
</head>
<body>
<table>
<tr>
<td align="center" valign="middle">
社員ID、パスワードを入力して社員認証してください。<br>
一定時間操作がない場合も自動的にログアウトされるためこの画面が表示されることがあります。
<br>
<s:form method="post" action="logout">
<s:submit value="社員認証画面にGO!" />
</s:form>
</td>
</tr>
</table>
</body>
</html>

LogoutAction

package com.MySQL.actions;

import java.util.Map;
import java.util.List;


import org.apache.struts2.convention.annotation.Result;
import org.apache.struts2.convention.annotation.Results;
import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.dispatcher.SessionMap;
import org.apache.struts2.interceptor.SessionAware;
import com.opensymphony.xwork2.ActionSupport;

@Results({ 
@Result(name="success", location="/tiles.jsp")
}) 
public class LogoutAction extends ActionSupport implements SessionAware {

    private static final long serialVersionUID = 1L;

    @Action("logout")
    public String execute() throws Exception {

        ((SessionMap<String, Object>)session).invalidate();

        ListAction dao = new ListAction();
        List<Object> table  = dao.getTable();
        ((SessionMap<String, Object>)session).put("list", table);
        return "success";
    }

    private Map<String, Object> session;
    public void setSession(Map<String, Object> session) {
        this.session = session;
    }

}

web.xml

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xmlns="http://java.sun.com/xml/ns/javaee"
 xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
 xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="StrutsTest" version="3.0">


<display-name>stock</display-name>
<context-param>
<param-name>org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG</param-name>
<param-value>/WEB-INF/tiles.xml</param-value>
</context-param>
<listener>
     <listener-class>com.MySQL.actions.InitListener</listener-class>
</listener>

<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
<init-param>
    <param-name>actionPackages</param-name>
    <param-value>com.MySQL.actions</param-value>
</init-param>
<init-param>
    <param-name>struts.enable.DynamicMethodInvocation</param-name>
    <param-value>false</param-value>
</init-param>

</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter>
        <filter-name>SessionFilter</filter-name>
        <filter-class>com.MySQL.actions.SessionFilter</filter-class>
    </filter>
    <filter-mapping>
        <filter-name>SessionFilter</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>


<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>

baseLayout.jsp

<%@page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
<title>
<tiles:insertAttribute name="title" ignore="true" />
</title>
</head>
<body>
<tiles:insertAttribute name="header" />
<hr>
<font size = "5">ウエルカム画面</font>
<hr>
<table>
<tr>
<td valign="top">
<tiles:insertAttribute name="date" />
</td>
<td valign="top">
<tiles:insertAttribute name="main" />
</td>
<td valign="top">
<tiles:insertAttribute name="search" />
</td>
</tr>
</table>
</body>
</html>

tiles.jsp

<%@page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<tiles:insertDefinition name="Welcome"/>

tiles.xml

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE tiles-definitions PUBLIC "-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN" "http://tiles.apache.org/dtds/tiles-config_2_0.dtd">
<tiles-definitions>
<definition name="Welcome" template="/baseLayout.jsp">
    <put-attribute name="title"  value="スポーツ用品店社員用在庫表メニュー認証画面"/>
    <put-attribute name="header" value="/header.jsp"/>
    <put-attribute name="date" value="/date.jsp" />
    <put-attribute name="main" value="/main.jsp" />
    <put-attribute name="search" value="/search.jsp" />
</definition>
</tiles-definitions>
お世話になります。
struts2.3で、JSPで指定したactionから同じactionを指定してあるexecuteメソッドがあるJavaコードに
正常に遷移しません。
どなたか解決方法をご教授下さい。

eclipse Juno
tomcat7.0
java sdk 7
MySQL5.5.29
struts2.3
tiles3.03

index.jsp
```
<%@ page language="java" contentType="text/html; charset=Windows-31J"
    pageEncoding="Windows-31J"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
<title>社員認証要求画面</title>
</head>
<body>
<table>
<tr>
<td align="center" valign="middle">
社員ID、パスワードを入力して社員認証してください。<br>
一定時間操作がない場合も自動的にログアウトされるためこの画面が表示されることがあります。
<br>
<s:form method="post" action="logout">
<s:submit value="社員認証画面にGO!" />
</s:form>
</td>
</tr>
</table>
</body>
</html>
```

LogoutAction
```
package com.MySQL.actions;

import java.util.Map;
import java.util.List;


import org.apache.struts2.convention.annotation.Result;
import org.apache.struts2.convention.annotation.Results;
import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.dispatcher.SessionMap;
import org.apache.struts2.interceptor.SessionAware;
import com.opensymphony.xwork2.ActionSupport;

@Results({ 
@Result(name="success", location="/tiles.jsp")
}) 
public class LogoutAction extends ActionSupport implements SessionAware {
	
	private static final long serialVersionUID = 1L;
	
	@Action("logout")
	public String execute() throws Exception {
		
		((SessionMap<String, Object>)session).invalidate();
		
		ListAction dao = new ListAction();
		List<Object> table  = dao.getTable();
		((SessionMap<String, Object>)session).put("list", table);
		return "success";
	}

	private Map<String, Object> session;
    public void setSession(Map<String, Object> session) {
        this.session = session;
    }
	
}
```

web.xml
```
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xmlns="http://java.sun.com/xml/ns/javaee"
 xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
 xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="StrutsTest" version="3.0">


<display-name>stock</display-name>
<context-param>
<param-name>org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG</param-name>
<param-value>/WEB-INF/tiles.xml</param-value>
</context-param>
<listener>
     <listener-class>com.MySQL.actions.InitListener</listener-class>
</listener>

<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
<init-param>
	<param-name>actionPackages</param-name>
	<param-value>com.MySQL.actions</param-value>
</init-param>
<init-param>
    <param-name>struts.enable.DynamicMethodInvocation</param-name>
    <param-value>false</param-value>
</init-param>
		
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter>
		<filter-name>SessionFilter</filter-name>
		<filter-class>com.MySQL.actions.SessionFilter</filter-class>
	</filter>
	<filter-mapping>
		<filter-name>SessionFilter</filter-name>
		<url-pattern>/*</url-pattern>
	</filter-mapping>
	
    
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>
```

baseLayout.jsp
```
<%@page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
<title>
<tiles:insertAttribute name="title" ignore="true" />
</title>
</head>
<body>
<tiles:insertAttribute name="header" />
<hr>
<font size = "5">ウエルカム画面</font>
<hr>
<table>
<tr>
<td valign="top">
<tiles:insertAttribute name="date" />
</td>
<td valign="top">
<tiles:insertAttribute name="main" />
</td>
<td valign="top">
<tiles:insertAttribute name="search" />
</td>
</tr>
</table>
</body>
</html>
```

tiles.jsp
```
<%@page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<tiles:insertDefinition name="Welcome"/>
```

tiles.xml
```
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE tiles-definitions PUBLIC "-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN" "http://tiles.apache.org/dtds/tiles-config_2_0.dtd">
<tiles-definitions>
<definition name="Welcome" template="/baseLayout.jsp">
    <put-attribute name="title"  value="スポーツ用品店社員用在庫表メニュー認証画面"/>
    <put-attribute name="header" value="/header.jsp"/>
	<put-attribute name="date" value="/date.jsp" />
	<put-attribute name="main" value="/main.jsp" />
	<put-attribute name="search" value="/search.jsp" />
</definition>
</tiles-definitions>
```

28
本文
 web.xml
 ```
 <?xml version="1.0" encoding="UTF-8"?>
-<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
+<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns="http://java.sun.com/xml/ns/javaee"
+ xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="StrutsTest" version="3.0">
+
+
 <display-name>stock</display-name>
 <context-param>
 <param-name>org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG</param-name>
-<param-value>/WEB-INF/tiles-definitions.xml</param-value>
+<param-value>/WEB-INF/tiles.xml</param-value>
 </context-param>
+<listener>
+     <listener-class>com.MySQL.actions.InitListener</listener-class>
+</listener>
 
 <filter>
 <filter-name>struts2</filter-name>
 <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
 <init-param>
-			<param-name>actionPackages</param-name>
-			<param-value>com.MySQL</param-value>
-		</init-param>
+	<param-name>actionPackages</param-name>
+	<param-value>com.MySQL.actions</param-value>
+</init-param>
+<init-param>
+    <param-name>struts.enable.DynamicMethodInvocation</param-name>
+    <param-value>false</param-value>
+</init-param>
+		
 </filter>
 <filter-mapping>
 <filter-name>struts2</filter-name>
 </filter-mapping>
 <filter>
 		<filter-name>SessionFilter</filter-name>
-		<filter-class>com.MySQL.SessionFilter</filter-class>
+		<filter-class>com.MySQL.actions.SessionFilter</filter-class>
 	</filter>
 	<filter-mapping>
 		<filter-name>SessionFilter</filter-name>

struts2.3でJSPからActionに遷移しない

お世話になります。
struts2.3で、JSPで指定したactionから同じactionを指定してあるexecuteメソッドがあるJavaコードに
正常に遷移しません。
どなたか解決方法をご教授下さい。

eclipse Juno
tomcat7.0
java sdk 7
MySQL5.5.29
struts2.3
tiles3.03

index.jsp

<%@ page language="java" contentType="text/html; charset=Windows-31J"
    pageEncoding="Windows-31J"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
<title>社員認証要求画面</title>
</head>
<body>
<table>
<tr>
<td align="center" valign="middle">
社員ID、パスワードを入力して社員認証してください。<br>
一定時間操作がない場合も自動的にログアウトされるためこの画面が表示されることがあります。
<br>
<s:form method="post" action="logout">
<s:submit value="社員認証画面にGO!" />
</s:form>
</td>
</tr>
</table>
</body>
</html>

LogoutAction

package com.MySQL.actions;

import java.util.Map;
import java.util.List;


import org.apache.struts2.convention.annotation.Result;
import org.apache.struts2.convention.annotation.Results;
import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.dispatcher.SessionMap;
import org.apache.struts2.interceptor.SessionAware;
import com.opensymphony.xwork2.ActionSupport;

@Results({ 
@Result(name="success", location="/tiles.jsp")
}) 
public class LogoutAction extends ActionSupport implements SessionAware {

    private static final long serialVersionUID = 1L;

    @Action("logout")
    public String execute() throws Exception {

        ((SessionMap<String, Object>)session).invalidate();

        ListAction dao = new ListAction();
        List<Object> table  = dao.getTable();
        ((SessionMap<String, Object>)session).put("list", table);
        return "success";
    }

    private Map<String, Object> session;
    public void setSession(Map<String, Object> session) {
        this.session = session;
    }

}

web.xml

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xmlns="http://java.sun.com/xml/ns/javaee"
 xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
 xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="StrutsTest" version="3.0">


<display-name>stock</display-name>
<context-param>
<param-name>org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG</param-name>
<param-value>/WEB-INF/tiles.xml</param-value>
</context-param>
<listener>
     <listener-class>com.MySQL.actions.InitListener</listener-class>
</listener>

<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
<init-param>
    <param-name>actionPackages</param-name>
    <param-value>com.MySQL.actions</param-value>
</init-param>
<init-param>
    <param-name>struts.enable.DynamicMethodInvocation</param-name>
    <param-value>false</param-value>
</init-param>

</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter>
        <filter-name>SessionFilter</filter-name>
        <filter-class>com.MySQL.actions.SessionFilter</filter-class>
    </filter>
    <filter-mapping>
        <filter-name>SessionFilter</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>


<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>

baseLayout.jsp

<%@page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
<title>
<tiles:insertAttribute name="title" ignore="true" />
</title>
</head>
<body>
<tiles:insertAttribute name="header" />
<hr>
<font size = "5">ウエルカム画面</font>
<hr>
<table>
<tr>
<td valign="top">
<tiles:insertAttribute name="date" />
</td>
<td valign="top">
<tiles:insertAttribute name="main" />
</td>
<td valign="top">
<tiles:insertAttribute name="search" />
</td>
</tr>
</table>
</body>
</html>
お世話になります。
struts2.3で、JSPで指定したactionから同じactionを指定してあるexecuteメソッドがあるJavaコードに
正常に遷移しません。
どなたか解決方法をご教授下さい。

eclipse Juno
tomcat7.0
java sdk 7
MySQL5.5.29
struts2.3
tiles3.03

index.jsp
```
<%@ page language="java" contentType="text/html; charset=Windows-31J"
    pageEncoding="Windows-31J"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
<title>社員認証要求画面</title>
</head>
<body>
<table>
<tr>
<td align="center" valign="middle">
社員ID、パスワードを入力して社員認証してください。<br>
一定時間操作がない場合も自動的にログアウトされるためこの画面が表示されることがあります。
<br>
<s:form method="post" action="logout">
<s:submit value="社員認証画面にGO!" />
</s:form>
</td>
</tr>
</table>
</body>
</html>
```

LogoutAction
```
package com.MySQL.actions;

import java.util.Map;
import java.util.List;


import org.apache.struts2.convention.annotation.Result;
import org.apache.struts2.convention.annotation.Results;
import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.dispatcher.SessionMap;
import org.apache.struts2.interceptor.SessionAware;
import com.opensymphony.xwork2.ActionSupport;

@Results({ 
@Result(name="success", location="/tiles.jsp")
}) 
public class LogoutAction extends ActionSupport implements SessionAware {
	
	private static final long serialVersionUID = 1L;
	
	@Action("logout")
	public String execute() throws Exception {
		
		((SessionMap<String, Object>)session).invalidate();
		
		ListAction dao = new ListAction();
		List<Object> table  = dao.getTable();
		((SessionMap<String, Object>)session).put("list", table);
		return "success";
	}

	private Map<String, Object> session;
    public void setSession(Map<String, Object> session) {
        this.session = session;
    }
	
}
```

web.xml
```
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xmlns="http://java.sun.com/xml/ns/javaee"
 xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
 xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="StrutsTest" version="3.0">


<display-name>stock</display-name>
<context-param>
<param-name>org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG</param-name>
<param-value>/WEB-INF/tiles.xml</param-value>
</context-param>
<listener>
     <listener-class>com.MySQL.actions.InitListener</listener-class>
</listener>

<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
<init-param>
	<param-name>actionPackages</param-name>
	<param-value>com.MySQL.actions</param-value>
</init-param>
<init-param>
    <param-name>struts.enable.DynamicMethodInvocation</param-name>
    <param-value>false</param-value>
</init-param>
		
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter>
		<filter-name>SessionFilter</filter-name>
		<filter-class>com.MySQL.actions.SessionFilter</filter-class>
	</filter>
	<filter-mapping>
		<filter-name>SessionFilter</filter-name>
		<url-pattern>/*</url-pattern>
	</filter-mapping>
	
    
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>
```

baseLayout.jsp
```
<%@page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
<title>
<tiles:insertAttribute name="title" ignore="true" />
</title>
</head>
<body>
<tiles:insertAttribute name="header" />
<hr>
<font size = "5">ウエルカム画面</font>
<hr>
<table>
<tr>
<td valign="top">
<tiles:insertAttribute name="date" />
</td>
<td valign="top">
<tiles:insertAttribute name="main" />
</td>
<td valign="top">
<tiles:insertAttribute name="search" />
</td>
</tr>
</table>
</body>
</html>
```

28
本文
 
 LogoutAction
 ```
-@Results({
-	 @Result(name="success", value="/MySQL/baseLayout.jsp")
-	 })
+package com.MySQL.actions;
+
+import java.util.Map;
+import java.util.List;
+
+
+import org.apache.struts2.convention.annotation.Result;
+import org.apache.struts2.convention.annotation.Results;
+import org.apache.struts2.convention.annotation.Action;
+import org.apache.struts2.dispatcher.SessionMap;
+import org.apache.struts2.interceptor.SessionAware;
+import com.opensymphony.xwork2.ActionSupport;
+
+@Results({ 
+@Result(name="success", location="/tiles.jsp")
+}) 
 public class LogoutAction extends ActionSupport implements SessionAware {
 	
 	private static final long serialVersionUID = 1L;

struts2.3でJSPからActionに遷移しない

お世話になります。
struts2.3で、JSPで指定したactionから同じactionを指定してあるexecuteメソッドがあるJavaコードに
正常に遷移しません。
どなたか解決方法をご教授下さい。

eclipse Juno
tomcat7.0
java sdk 7
MySQL5.5.29
struts2.3
tiles3.03

index.jsp

<%@ page language="java" contentType="text/html; charset=Windows-31J"
    pageEncoding="Windows-31J"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
<title>社員認証要求画面</title>
</head>
<body>
<table>
<tr>
<td align="center" valign="middle">
社員ID、パスワードを入力して社員認証してください。<br>
一定時間操作がない場合も自動的にログアウトされるためこの画面が表示されることがあります。
<br>
<s:form method="post" action="logout">
<s:submit value="社員認証画面にGO!" />
</s:form>
</td>
</tr>
</table>
</body>
</html>

LogoutAction

package com.MySQL.actions;

import java.util.Map;
import java.util.List;


import org.apache.struts2.convention.annotation.Result;
import org.apache.struts2.convention.annotation.Results;
import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.dispatcher.SessionMap;
import org.apache.struts2.interceptor.SessionAware;
import com.opensymphony.xwork2.ActionSupport;

@Results({ 
@Result(name="success", location="/tiles.jsp")
}) 
public class LogoutAction extends ActionSupport implements SessionAware {

    private static final long serialVersionUID = 1L;

    @Action("logout")
    public String execute() throws Exception {

        ((SessionMap<String, Object>)session).invalidate();

        ListAction dao = new ListAction();
        List<Object> table  = dao.getTable();
        ((SessionMap<String, Object>)session).put("list", table);
        return "success";
    }

    private Map<String, Object> session;
    public void setSession(Map<String, Object> session) {
        this.session = session;
    }

}

web.xml

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
<display-name>stock</display-name>
<context-param>
<param-name>org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG</param-name>
<param-value>/WEB-INF/tiles-definitions.xml</param-value>
</context-param>

<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
<init-param>
            <param-name>actionPackages</param-name>
            <param-value>com.MySQL</param-value>
        </init-param>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter>
        <filter-name>SessionFilter</filter-name>
        <filter-class>com.MySQL.SessionFilter</filter-class>
    </filter>
    <filter-mapping>
        <filter-name>SessionFilter</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>


<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>

baseLayout.jsp

<%@page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
<title>
<tiles:insertAttribute name="title" ignore="true" />
</title>
</head>
<body>
<tiles:insertAttribute name="header" />
<hr>
<font size = "5">ウエルカム画面</font>
<hr>
<table>
<tr>
<td valign="top">
<tiles:insertAttribute name="date" />
</td>
<td valign="top">
<tiles:insertAttribute name="main" />
</td>
<td valign="top">
<tiles:insertAttribute name="search" />
</td>
</tr>
</table>
</body>
</html>
お世話になります。
struts2.3で、JSPで指定したactionから同じactionを指定してあるexecuteメソッドがあるJavaコードに
正常に遷移しません。
どなたか解決方法をご教授下さい。

eclipse Juno
tomcat7.0
java sdk 7
MySQL5.5.29
struts2.3
tiles3.03

index.jsp
```
<%@ page language="java" contentType="text/html; charset=Windows-31J"
    pageEncoding="Windows-31J"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
<title>社員認証要求画面</title>
</head>
<body>
<table>
<tr>
<td align="center" valign="middle">
社員ID、パスワードを入力して社員認証してください。<br>
一定時間操作がない場合も自動的にログアウトされるためこの画面が表示されることがあります。
<br>
<s:form method="post" action="logout">
<s:submit value="社員認証画面にGO!" />
</s:form>
</td>
</tr>
</table>
</body>
</html>
```

LogoutAction
```
package com.MySQL.actions;

import java.util.Map;
import java.util.List;


import org.apache.struts2.convention.annotation.Result;
import org.apache.struts2.convention.annotation.Results;
import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.dispatcher.SessionMap;
import org.apache.struts2.interceptor.SessionAware;
import com.opensymphony.xwork2.ActionSupport;

@Results({ 
@Result(name="success", location="/tiles.jsp")
}) 
public class LogoutAction extends ActionSupport implements SessionAware {
	
	private static final long serialVersionUID = 1L;
	
	@Action("logout")
	public String execute() throws Exception {
		
		((SessionMap<String, Object>)session).invalidate();
		
		ListAction dao = new ListAction();
		List<Object> table  = dao.getTable();
		((SessionMap<String, Object>)session).put("list", table);
		return "success";
	}

	private Map<String, Object> session;
    public void setSession(Map<String, Object> session) {
        this.session = session;
    }
	
}
```

web.xml
```
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
<display-name>stock</display-name>
<context-param>
<param-name>org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG</param-name>
<param-value>/WEB-INF/tiles-definitions.xml</param-value>
</context-param>

<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
<init-param>
			<param-name>actionPackages</param-name>
			<param-value>com.MySQL</param-value>
		</init-param>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter>
		<filter-name>SessionFilter</filter-name>
		<filter-class>com.MySQL.SessionFilter</filter-class>
	</filter>
	<filter-mapping>
		<filter-name>SessionFilter</filter-name>
		<url-pattern>/*</url-pattern>
	</filter-mapping>
	
    
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>
```

baseLayout.jsp
```
<%@page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
<title>
<tiles:insertAttribute name="title" ignore="true" />
</title>
</head>
<body>
<tiles:insertAttribute name="header" />
<hr>
<font size = "5">ウエルカム画面</font>
<hr>
<table>
<tr>
<td valign="top">
<tiles:insertAttribute name="date" />
</td>
<td valign="top">
<tiles:insertAttribute name="main" />
</td>
<td valign="top">
<tiles:insertAttribute name="search" />
</td>
</tr>
</table>
</body>
</html>
```

28
本文
 	
 	private static final long serialVersionUID = 1L;
 	
-	@Action(input = "/logout")
+	@Action("logout")
 	public String execute() throws Exception {
 		
 		((SessionMap<String, Object>)session).invalidate();

struts2.3でJSPからActionに遷移しない

お世話になります。
struts2.3で、JSPで指定したactionから同じactionを指定してあるexecuteメソッドがあるJavaコードに
正常に遷移しません。
どなたか解決方法をご教授下さい。

eclipse Juno
tomcat7.0
java sdk 7
MySQL5.5.29
struts2.3
tiles3.03

index.jsp

<%@ page language="java" contentType="text/html; charset=Windows-31J"
    pageEncoding="Windows-31J"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
<title>社員認証要求画面</title>
</head>
<body>
<table>
<tr>
<td align="center" valign="middle">
社員ID、パスワードを入力して社員認証してください。<br>
一定時間操作がない場合も自動的にログアウトされるためこの画面が表示されることがあります。
<br>
<s:form method="post" action="logout">
<s:submit value="社員認証画面にGO!" />
</s:form>
</td>
</tr>
</table>
</body>
</html>

LogoutAction

@Results({
     @Result(name="success", value="/MySQL/baseLayout.jsp")
     })
public class LogoutAction extends ActionSupport implements SessionAware {

    private static final long serialVersionUID = 1L;

    @Action("logout")
    public String execute() throws Exception {

        ((SessionMap<String, Object>)session).invalidate();

        ListAction dao = new ListAction();
        List<Object> table  = dao.getTable();
        ((SessionMap<String, Object>)session).put("list", table);
        return "success";
    }

    private Map<String, Object> session;
    public void setSession(Map<String, Object> session) {
        this.session = session;
    }

}

web.xml

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
<display-name>stock</display-name>
<context-param>
<param-name>org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG</param-name>
<param-value>/WEB-INF/tiles-definitions.xml</param-value>
</context-param>

<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
<init-param>
            <param-name>actionPackages</param-name>
            <param-value>com.MySQL</param-value>
        </init-param>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter>
        <filter-name>SessionFilter</filter-name>
        <filter-class>com.MySQL.SessionFilter</filter-class>
    </filter>
    <filter-mapping>
        <filter-name>SessionFilter</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>


<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>

baseLayout.jsp

<%@page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
<title>
<tiles:insertAttribute name="title" ignore="true" />
</title>
</head>
<body>
<tiles:insertAttribute name="header" />
<hr>
<font size = "5">ウエルカム画面</font>
<hr>
<table>
<tr>
<td valign="top">
<tiles:insertAttribute name="date" />
</td>
<td valign="top">
<tiles:insertAttribute name="main" />
</td>
<td valign="top">
<tiles:insertAttribute name="search" />
</td>
</tr>
</table>
</body>
</html>
お世話になります。
struts2.3で、JSPで指定したactionから同じactionを指定してあるexecuteメソッドがあるJavaコードに
正常に遷移しません。
どなたか解決方法をご教授下さい。

eclipse Juno
tomcat7.0
java sdk 7
MySQL5.5.29
struts2.3
tiles3.03

index.jsp
```
<%@ page language="java" contentType="text/html; charset=Windows-31J"
    pageEncoding="Windows-31J"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
<title>社員認証要求画面</title>
</head>
<body>
<table>
<tr>
<td align="center" valign="middle">
社員ID、パスワードを入力して社員認証してください。<br>
一定時間操作がない場合も自動的にログアウトされるためこの画面が表示されることがあります。
<br>
<s:form method="post" action="logout">
<s:submit value="社員認証画面にGO!" />
</s:form>
</td>
</tr>
</table>
</body>
</html>
```

LogoutAction
```
@Results({
	 @Result(name="success", value="/MySQL/baseLayout.jsp")
	 })
public class LogoutAction extends ActionSupport implements SessionAware {
	
	private static final long serialVersionUID = 1L;
	
	@Action("logout")
	public String execute() throws Exception {
		
		((SessionMap<String, Object>)session).invalidate();
		
		ListAction dao = new ListAction();
		List<Object> table  = dao.getTable();
		((SessionMap<String, Object>)session).put("list", table);
		return "success";
	}

	private Map<String, Object> session;
    public void setSession(Map<String, Object> session) {
        this.session = session;
    }
	
}
```

web.xml
```
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
<display-name>stock</display-name>
<context-param>
<param-name>org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG</param-name>
<param-value>/WEB-INF/tiles-definitions.xml</param-value>
</context-param>

<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
<init-param>
			<param-name>actionPackages</param-name>
			<param-value>com.MySQL</param-value>
		</init-param>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter>
		<filter-name>SessionFilter</filter-name>
		<filter-class>com.MySQL.SessionFilter</filter-class>
	</filter>
	<filter-mapping>
		<filter-name>SessionFilter</filter-name>
		<url-pattern>/*</url-pattern>
	</filter-mapping>
	
    
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>
```

baseLayout.jsp
```
<%@page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
<title>
<tiles:insertAttribute name="title" ignore="true" />
</title>
</head>
<body>
<tiles:insertAttribute name="header" />
<hr>
<font size = "5">ウエルカム画面</font>
<hr>
<table>
<tr>
<td valign="top">
<tiles:insertAttribute name="date" />
</td>
<td valign="top">
<tiles:insertAttribute name="main" />
</td>
<td valign="top">
<tiles:insertAttribute name="search" />
</td>
</tr>
</table>
</body>
</html>
```

質問を投稿

struts2.3でJSPからActionに遷移しない

お世話になります。
struts2.3で、JSPで指定したactionから同じactionを指定してあるexecuteメソッドがあるJavaコードに
正常に遷移しません。
どなたか解決方法をご教授下さい。

eclipse Juno
tomcat7.0
java sdk 7
MySQL5.5.29
struts2.3
tiles3.03

index.jsp

<%@ page language="java" contentType="text/html; charset=Windows-31J"
    pageEncoding="Windows-31J"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
<title>社員認証要求画面</title>
</head>
<body>
<table>
<tr>
<td align="center" valign="middle">
社員ID、パスワードを入力して社員認証してください。<br>
一定時間操作がない場合も自動的にログアウトされるためこの画面が表示されることがあります。
<br>
<s:form method="post" action="logout">
<s:submit value="社員認証画面にGO!" />
</s:form>
</td>
</tr>
</table>
</body>
</html>

LogoutAction

@Results({
     @Result(name="success", value="/MySQL/baseLayout.jsp")
     })
public class LogoutAction extends ActionSupport implements SessionAware {

    private static final long serialVersionUID = 1L;

    @Action(input = "/logout")
    public String execute() throws Exception {

        ((SessionMap<String, Object>)session).invalidate();

        ListAction dao = new ListAction();
        List<Object> table  = dao.getTable();
        ((SessionMap<String, Object>)session).put("list", table);
        return "success";
    }

    private Map<String, Object> session;
    public void setSession(Map<String, Object> session) {
        this.session = session;
    }

}

web.xml

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
<display-name>stock</display-name>
<context-param>
<param-name>org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG</param-name>
<param-value>/WEB-INF/tiles-definitions.xml</param-value>
</context-param>

<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
<init-param>
            <param-name>actionPackages</param-name>
            <param-value>com.MySQL</param-value>
        </init-param>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter>
        <filter-name>SessionFilter</filter-name>
        <filter-class>com.MySQL.SessionFilter</filter-class>
    </filter>
    <filter-mapping>
        <filter-name>SessionFilter</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>


<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>

baseLayout.jsp

<%@page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
<title>
<tiles:insertAttribute name="title" ignore="true" />
</title>
</head>
<body>
<tiles:insertAttribute name="header" />
<hr>
<font size = "5">ウエルカム画面</font>
<hr>
<table>
<tr>
<td valign="top">
<tiles:insertAttribute name="date" />
</td>
<td valign="top">
<tiles:insertAttribute name="main" />
</td>
<td valign="top">
<tiles:insertAttribute name="search" />
</td>
</tr>
</table>
</body>
</html>
お世話になります。
struts2.3で、JSPで指定したactionから同じactionを指定してあるexecuteメソッドがあるJavaコードに
正常に遷移しません。
どなたか解決方法をご教授下さい。

eclipse Juno
tomcat7.0
java sdk 7
MySQL5.5.29
struts2.3
tiles3.03

index.jsp
```
<%@ page language="java" contentType="text/html; charset=Windows-31J"
    pageEncoding="Windows-31J"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
<title>社員認証要求画面</title>
</head>
<body>
<table>
<tr>
<td align="center" valign="middle">
社員ID、パスワードを入力して社員認証してください。<br>
一定時間操作がない場合も自動的にログアウトされるためこの画面が表示されることがあります。
<br>
<s:form method="post" action="logout">
<s:submit value="社員認証画面にGO!" />
</s:form>
</td>
</tr>
</table>
</body>
</html>
```

LogoutAction
```
@Results({
	 @Result(name="success", value="/MySQL/baseLayout.jsp")
	 })
public class LogoutAction extends ActionSupport implements SessionAware {
	
	private static final long serialVersionUID = 1L;
	
	@Action(input = "/logout")
	public String execute() throws Exception {
		
		((SessionMap<String, Object>)session).invalidate();
		
		ListAction dao = new ListAction();
		List<Object> table  = dao.getTable();
		((SessionMap<String, Object>)session).put("list", table);
		return "success";
	}

	private Map<String, Object> session;
    public void setSession(Map<String, Object> session) {
        this.session = session;
    }
	
}
```

web.xml
```
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
<display-name>stock</display-name>
<context-param>
<param-name>org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG</param-name>
<param-value>/WEB-INF/tiles-definitions.xml</param-value>
</context-param>

<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
<init-param>
			<param-name>actionPackages</param-name>
			<param-value>com.MySQL</param-value>
		</init-param>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter>
		<filter-name>SessionFilter</filter-name>
		<filter-class>com.MySQL.SessionFilter</filter-class>
	</filter>
	<filter-mapping>
		<filter-name>SessionFilter</filter-name>
		<url-pattern>/*</url-pattern>
	</filter-mapping>
	
    
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>
```

baseLayout.jsp
```
<%@page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
<title>
<tiles:insertAttribute name="title" ignore="true" />
</title>
</head>
<body>
<tiles:insertAttribute name="header" />
<hr>
<font size = "5">ウエルカム画面</font>
<hr>
<table>
<tr>
<td valign="top">
<tiles:insertAttribute name="date" />
</td>
<td valign="top">
<tiles:insertAttribute name="main" />
</td>
<td valign="top">
<tiles:insertAttribute name="search" />
</td>
</tr>
</table>
</body>
</html>
```