Home | 简体中文 | 繁体中文 | 杂文 | 打赏(Donations) | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 知乎专栏 | Search | About

15.3. Struts tiles

/WEB-INF/tiles.xml

		
	<definition name="Index" extends="template_mobile">
		<put-attribute name="content" value="/WEB-INF/jsp/mobile/Index.jsp" />
	</definition>
		
		

src/struts.xml

				
<struts>
	<package name="mobile" extends="main" namespace="/mobile">
		<action name="Index" class="cn.netkiller.mobile.action.Index" method="execute">
			<result name="success" type="tiles">Index</result>
		</action>	
	</package>
</struts>