To retrieve objects stored in the session within your jsp if they are string you could do this.
<input type="text" value="${sessionScope.un}" />
OR
<% String username = (String)request.getSession().getAttribute("un"); %>
Also creation of HibernateFactory is a very expensive process consider dont create in each request.