⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ex4_6.txt

📁 j2ee core design patterns
💻 TXT
字号:
Example 4.6 JSP with Scriptlet Code Extracted

<%@ taglib uri="/WEB-INF/corepatternstaglibrary.tld" 
    prefix="corepatterns" %>
<html>
<head><title>Employee List</title></head>
<body>

<corepatterns:employeeAdapter />

<h3><center>List of employees in 
  <corepatterns:department attribute="id"/> 
  department - Using Custom Tag Helper Strategy </h3>

<table border="1" >
    <tr>
        <th> First Name </th>
        <th> Last Name </th>
        <th> Designation </th>
        <th> Employee Id </th>
        <th> Tax Deductibles </th>
        <th> Performance Remarks </th>
        <th> Yearly Salary</th>
    </tr>
    <corepatterns:employeelist id="employeelist_key">
    <tr>
      <td><corepatterns:employee 
            attribute="FirstName"/></td>
      <td><corepatterns:employee 
            attribute="LastName"/></td> 
      <td><corepatterns:employee
            attribute="Designation"/> </td>
        <td><corepatterns:employee 
            attribute="Id"/></td> 
        <td><corepatterns:employee 
            attribute="NoOfDeductibles"/></td>
        <td><corepatterns:employee 
            attribute="PerformanceRemarks"/></td>
        <td><corepatterns:employee 
            attribute="YearlySalary"/></td>
        <td>
     </tr>
    </corepatterns:employeelist>
</table>

</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -