<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %> <%@ taglib uri="/WEB-INF/extensions.tld" prefix="ext" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%-- Edit an Address object @param address An address object to edit. @param compName UI Component name. Use as prefix for html fields and sub-components --%> <%-- Retrieve parameters from component context, and declare them as page variable --%> <%-- Add a separator tothe component name, in order to have html fields prefix name : 'compName.'--%> <% prefix = prefix + "."; %>
Street helo <%-- Declare an html input field. --%> <%-- We use a tag that extends Struts 'text' tag. This extension add --%> <%-- attribute 'prefix', allowing to give a prefix to the normal name --%>
Street (con't)
City
Country
Zip code