<%@ page pageEncoding = "Shift_JIS" %>
<%@ page contentType="text/html; charset=Shift_JIS" %>
<%@ taglib uri="/tags/struts-nested" prefix="nested" %>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<html><body>
<%-- <bean:write>タグだけでBeanの情報を出力 --%>
ID:<bean:write name="NestedForm" property="userData.userId" /><br>
氏名:<bean:write name="NestedForm" property="userData.userName" /><br>
その他:<bean:write name="NestedForm" property="stringData" /><br>
<hr>
<%-- <nested:root>タグと<nested:write>タグでBeanの情報を出力 --%>
<nested:root name="NestedForm" >
ID:<nested:write property="userData.userId" /><br>
氏名:<nested:write property="userData.userName" /><br>
その他:<nested:write property="stringData" /><br>
</nested:root>
<hr>
<%-- <nested:root>タグと<nested:nest>タグと<nested:write>タグでBeanの情報を出力 --%>
<nested:root name="NestedForm" >
<nested:nest property="userData" >
ID:<nested:write property="userId" /><br>
氏名:<nested:write property="userName" /><br>
</nested:nest>
その他:<nested:write property="stringData" /><br>
</nested:root>
</body></html>
|