<%
List<Details> lists = (List<Details>) request
.getAttribute("DbDatas");
pageContext.setAttribute("list", lists);
%>
obvious...
"lists" does not exist..."list" does...
as i said before,
you should not do this in your jsp, but in your servlet.
and for showing 1 record, you must not use a List, but the details instance itself...
The detail instance itself can be retrieved trough your servlet.
so the only thing you should have is for example :
<input id="txtName" name="txt" type="text" value="${detail.userName} " />