Java - JSP - Inventory

Creating a inventory jsp webpage in java.

Page

<%-- 
    Document   : inventory
    Created on : 5-Nov-2014, 9:32:37 PM
    Author     : Steven Bartsch
--%>

<%@page import="model.entities.ItemCategory"%>
<%@page import="model.entities.ItemCatalog"%>
<%@page import="javax.persistence.Persistence"%>
<%@page import="java.util.Iterator"%>
<%@page import="java.util.List"%>
<%@page import="javax.persistence.Query"%>
<%@page import="javax.persistence.EntityManager"%>
<%@page import="javax.persistence.EntityManagerFactory"%>
<%@page import="model.entities.UserInfo"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" type="text/css" href="style.css"/>
        <title>Store</title>
    </head>
    <body>
        <div id="wrapper">
            <header>
                <div class="logo"><img src="images/bone_logo.png"/></div>
                <navigation>
                    <ul>
                        <li><a href="inventory.jsp">Inventory</a></li>
                        <li><a href="additem.jsp">Add Item</a></li>
                        <li><a href="#">${userInfo.firstname} ${userInfo.lastname}</a></li>
                        <li><a href="login.jsp">Logout</a></li>
                    </ul>
                </navigation>
            </header>
            <div id="content">
                <% 
                    EntityManagerFactory emf = Persistence.createEntityManagerFactory("SecondAssignmentPU");
                    EntityManager em = emf.createEntityManager();            
                    Query query = em.createNamedQuery("ItemCatalog.findAll");
                    List resultList = query.getResultList();
                    Iterator it = resultList.iterator();


                    while(it.hasNext()){
                        ItemCatalog item = (ItemCatalog) it.next();

                        session.setAttribute("itemprice"+item.getItemid(), item.getRetailprice());
                        session.setAttribute("itemname"+item.getItemid(), item.getItemname());

                        out.print("<form><div class=\"item_inventory\">");
                        out.print("<b>");
                        out.print(item.getItemname());
                        out.print("</b> @ $");
                        out.print(item.getRetailprice());
                        out.print("</br><p>");
                        out.print(item.getItemdesc());
                        out.print("</p><p>");
                        out.print(item.getStock() + " in stock.");
                        out.print("</p><p>");
                        out.print("<input type='text' name='itemid' hidden value='" + item.getItemid() + "'/>");
                        out.print("<input type='submit' name='submit' formaction='Controller' value='Add One To Stock'/>");
                        out.print("<input type='submit' name='submit' formaction='Controller' value='Subtract One From Stock'/>");
                        out.print("<input type='submit' name='submit' formaction='Controller' value='Remove Item'/>");
                        out.print("</p></div></form>");                 
                    }
                    em.close();
                %>
            </div>
        </div>
    </body>
</html>