<%@ taglib uri="/WEB-INF/tiles.tld" prefix="comp" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ 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 <%-- 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