JSP性别编辑JSP性别编辑JSP性别编辑

代码如下,emp_sex是整形的,怎样编辑JSP使sex=1是显示男,sex=0是显示女

 <table border="" cellspacing="" cellpadding="" align="center">
        <tr>
            <th>雇员编号</th>
            <th>雇员职位</th>
            <th>雇员姓名</th>
            <th>雇员性别</th>
            <th>雇员年龄</th>
            <th>所属部门</th>
            <th>雇员工龄</th>
        </tr>
        <c:forEach items="${requestScope.data.employee}" var="post">
        <tr>
        <th>${post.emp_id }</th>
        <th>${post.post.post_name}</th>
        <th>${post.emp_name }</th>
        <th>${post.emp_sex }</th>
        <th>${post.emp_age }</th>
        <th>${post.emp_depart }</th>
        <th>${post.emp_year }</th>
        </tr>
        </c:forEach>

        </table>

大概的逻辑判断如下。

<th><c:if test="${post.emp_sex ==1}">男</c:if><c:if test="${post.emp_sex !=1}">女</c:if></th>