<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%-- Edit an Address object @param bean An address object to edit. @param beanName The path to add between the bean and the properties to edit. --%> <%-- Retrieve parameters from component context, and declare them as page variable --%> <%-- Add a '.' separator to the path (beanName), in order to access the property from the given bean --%> <% if( beanName == null ) beanName = ""; else if (beanName !="" ) beanName = beanName + "."; %>
Street <%-- Declare an html input field. --%> <%-- We use the bean passed as parameter. --%> <%-- Property name is prefixed by the sub-bean name if any. --%>
Street (con't)
City
Country
Zip code