67,513
社区成员
发帖
与我相关
我的任务
分享
/**
* Emp find by name
* @return
*/
@RequestMapping("employee-findByName")
public void findByName(Model model,Employee emp) {
model.addAttribute("employee",emp);
model.addAttribute("emp",demoService.getEmpByName(emp.getName()));
}
<div class="page">
<div class="pageContent">
<@dwz.form action="/demo/employee-findByName">
<div class="pageFormContent" >
<dl>
<dt>名字:</dt>
<dd><@s.input path="employee.name" maxlength="20" class="required" /></dd>
</dl>
</div>
<table class="table" width="100%" layoutH="112">
<thead>
<tr>
<th >id</th>
<th >姓名</th>
<th >年龄</th>
<th >性别</th>
<th >创建人</th>
<th >兴趣</th>
</tr>
</thead>
<tbody>
<tr >
<td>${emp.id}</td>
<td>${emp.name}</td>
<td>${emp.age}</td>
<td>${emp.sex}</td>
<td>${emp.creatorId}</td>
<td>${emp.interests}</td>
</tr>
</tbody>
</table>
<@dwz.formBar />
</@dwz.form>
</div>
</div>