jsp界面中应该写如下代码。显示的是汉字:
<table class="tablesty">
<tr class="titlesty">
<th>雇员编号</th>
<th>雇员职位</th>
<th>雇员姓名</th>
<th>雇员性别</th>
<th>雇员年龄</th>
<th>所属部门</th>
<th>雇员工龄</th>
<tr class="titlesty">
<th>雇员编号</th>
<th>雇员职位</th>
<th>雇员姓名</th>
<th>雇员性别</th>
<th>雇员年龄</th>
<th>所属部门</th>
<th>雇员工龄</th>
</tr>
<c:forEach items="${EmployInfo}" var="employee">
<tr style="text-align: center;background: #02F78E;margin:10px;">
<td>000${employee.id}</td>
<c:if test="${employee.post_type==1}"><td>行政助理</td></c:if>
<c:if test="${employee.post_type==2}"><td>业务经理</td></c:if>
<c:if test="${employee.post_type==3}"><td>总经理</td></c:if>
<td>${employee.emp_name}</td>
<td>${employee.emp_sex==1?"男":"女"}</td>
<td>${employee.emp_age}</td>
<td>${employee.organ_name}</td>
<td>${employee.emp_year}</td>
</tr>
</c:forEach>
</table>
</c:forEach>
</table>
jsp界面如果这样写显示的是代号
<table class="tablesty">
<tr class="titlesty">
<th>雇员编号</th>
<th>雇员职位</th>
<th>雇员姓名</th>
<th>雇员性别</th>
<th>雇员年龄</th>
<th>所属部门</th>
<th>雇员工龄</th>
<tr class="titlesty">
<th>雇员编号</th>
<th>雇员职位</th>
<th>雇员姓名</th>
<th>雇员性别</th>
<th>雇员年龄</th>
<th>所属部门</th>
<th>雇员工龄</th>
</tr>
<c:forEach items="${EmployInfo}" var="employee">
<tr style="text-align: center;background: #02F78E;margin:10px;">
<td>000${employee.id}</td>
<td>${employee.post_type}</td>
<td>${employee.emp_name}</td>
<td>${employee.emp_sex}</td>
<td>${employee.emp_age}</td>
<td>${employee.organ_name}</td>
<td>${employee.emp_year}</td>
</tr>
</c:forEach>
</table>
</c:forEach>
</table>