EL and Complex JavaBeans 1 : EL « JSP « Java






EL and Complex JavaBeans 1


<jsp:useBean id="person" class="com.java2s.Person" scope="request" />
<html>
<body>
    <h1>EL and Complex JavaBeans</h1>
    <table border="1">
      <tr>
        <td>${person.name}</td>
        <td>${person.age}</td>
        <td>${person["address"].line1}</td>
        <td>${person["address"].town}</td>
        <td>${person.address.phoneNumbers[0].std} ${person.address.phoneNumbers[0].number}</td>
        <td>${person.address.phoneNumbers[1].std} ${person.address.phoneNumbers[1].number}</td>
      </tr>    

      
  
    </table>
    
    
  </body>

</html>


           
       








Related examples in the same category

1.EL and Complex JavaBeans
2.EL Arithmetic
3.JSP and EL: EL Expression Examples
4.JSP and EL: EL Type Conversion Examples
5.JSP and EL:EL Property Access and Nested Properties
6.JSP and EL: Implicit Object Example Form processorJSP and EL: Implicit Object Example Form processor
7.EL Function Examples