我希望在我的表格中输入员工时选择员工时显示数据,实际上我只能显示所有元素但是当员工被选中时没有,有人可以用if条件帮助我吗?
<div id="EmployeeView" class="tabcontent">
<div class="row" style="padding: 0px 0px 0px 15px;">
<tr>
<td><input list="Assigment" required name="Assigment" class="list-assignment col-md-8" placeholder="Employee"style="border-radius: 5px;">
<datalist id="Assigment">
for (int w = 0; w < nameList.size(); w++) {
<option value="<%=nameList.get(w).getAttUid()%>">
out.println(nameList.get(w).getFullName());
</option>
}
</datalist>
</td>
</tr>
</div>
<br>
<div class="row" style="padding: 0px 0px 0px 15px;" style="display: block;">
<table>
<tr>
int z;
int sizeView = empDetailsMap.size();
Employee employeeView = new Employee();
out.println("<tr><th>Task Name</th>");
out.println("<th>Status</th>");
out.println("<th>Estimated Time</th>");
out.println("<th>Actual Time</th></tr>");
for (Map.Entry<String, Employee> entry : empDetailsMap.entrySet()) {
String key = entry.getKey();
employee = entry.getValue();
for (z = 0; z < employee.getTaskAssignment().getMinorTaskName().size(); z++) {
out.println("<tr><td>" + employee.getTaskAssignment().getMinorTaskName().get(z) + "</td>" + "\n");
out.println("<td>" + employee.getTaskAssignment().getTaskStatus().get(z) + "</td>" + "\n");
out.println("<td>" + employee.getTaskAssignment().getEstTime().get(z) + "</td>" + "\n");
out.println("<td>" + employee.getTaskAssignment().getEstTime().get(z) + "</td></tr>" + "\n");
<br>
}
}
</tr>
</table>
</div>
</div>