O'Reilly logo
  • Ram Mantravadi thinks this is interesting:

However, we don’t incur any depth of reference penalty in our view layer. All references in the JSP pages return to the simplicity of the original Register action that used the simple, individual JavaBeans properties for data transfer. The following code snippets, from Registration_MD.jsp

<s:textfield name="username" label="Username"/>

and RegistrationSuccess.jsp

<h5>Congratulations! You have created </h5>
<h3>The <s:property value="portfolioName" /> Portfolio</h3>


Cover of Struts 2 in Action


What if there are multiple objects with attributes having same name?