| 42 | | <h2>Your Friends</h2> |
| | 38 | <h2>Your Dept</h2> |
| | 39 | |
| | 40 | <table border="1"> |
| | 41 | <tbody> |
| | 42 | <tr> |
| | 43 | <td>deptNo</td> |
| | 44 | <td>deptName</td> |
| | 45 | <td>deptLoc</td> |
| | 46 | </tr> |
| | 47 | <tr> |
| | 48 | <logic:notEmpty name="emp" property="dept"> |
| | 49 | <td><bean:write name="emp" property="dept.deptNo" /></td> |
| | 50 | <td><bean:write name="emp" property="dept.deptName" /></td> |
| | 51 | <td><bean:write name="emp" property="dept.loc" /></td> |
| | 52 | </logic:notEmpty> |
| | 53 | </tr> |
| | 54 | </tbody> |
| | 55 | </table> |
| | 56 | |
| | 57 | <logic:notEmpty name="emp" property="mgr"> |
| | 58 | <h2>Your Boss</h2> |
| | 59 | <table border="1"> |
| | 60 | <tbody> |
| | 61 | <tr> |
| | 62 | <td>empNo</td> |
| | 63 | <td>empName</td> |
| | 64 | <td>hiredate</td> |
| | 65 | <td>sal</td> |
| | 66 | </tr> |
| | 67 | <tr> |
| | 68 | <td><bean:write name="emp" property="mgr.empNo" /></td> |
| | 69 | <td><bean:write name="emp" property="mgr.empName" /></td> |
| | 70 | <td><bean:write name="emp" property="mgr.hiredate" format="yyyy/MM/dd" /></td> |
| | 71 | <td><bean:write name="emp" property="mgr.sal" /></td> |
| | 72 | </tr> |
| | 73 | </tbody> |
| | 74 | </table> |
| | 75 | </logic:notEmpty> |
| | 76 | |
| | 77 | <h2>Men under the Dept</h2> |
| 53 | | <logic:notEqual name="it" property="id" value="${emp.id}"> |
| | 88 | <tr> |
| | 89 | <td><bean:write name="it" property="empNo" /></td> |
| | 90 | <td><bean:write name="it" property="empName" /></td> |
| | 91 | <td><bean:write name="it" property="hiredate" format="yyyy/MM/dd" /></td> |
| | 92 | <td><bean:write name="it" property="sal" /></td> |
| | 93 | </tr> |
| | 94 | </logic:iterate> |
| | 95 | </tbody> |
| | 96 | </table> |
| | 97 | |
| | 98 | <logic:notEmpty name="emp" property="mgr"> |
| | 99 | <logic:notEmpty name="emp" property="mgr.empSet"> |
| | 100 | <h2>Men under the Boss</h2> |
| | 101 | <table border="1"> |
| | 102 | <tbody> |
| | 103 | <tr> |
| | 104 | <td>empNo</td> |
| | 105 | <td>empName</td> |
| | 106 | <td>hiredate</td> |
| | 107 | <td>sal</td> |
| | 108 | </tr> |
| | 109 | <logic:iterate name="emp" property="mgr.empSet" id="it"> |
| | 110 | <logic:notEqual name="it" property="id" value="${emp.mgr.id}"> |