<%@ page import="com.gimmegrub.hibernate.HibernateUtil" %> <%@ page import="org.hibernate.classic.Session" %> <%@ page import="com.gimmegrub.hibernate.Restaurant" %> <%@ page import="com.gimmegrub.hibernate.MenuCategory" %> <%@ page import="java.util.List" %> <%@ page import="java.util.ArrayList" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> <% Session hibSession = HibernateUtil.getSessionFactory().getCurrentSession(); hibSession.beginTransaction(); Restaurant restaurant = (Restaurant) hibSession.get(Restaurant.class, 127); Restaurant cateringRestaurant = (Restaurant) hibSession.get(Restaurant.class, 140); List menuCategories = new ArrayList(); menuCategories.addAll(restaurant.getActiveMenu().getMenuCategories()); menuCategories.addAll(cateringRestaurant.getActiveMenu().getMenuCategories()); pageContext.setAttribute("menuCategories", menuCategories); %>
         


Order Your Food Online! Click Here

 

First time customer? Please be sure when entering your address "Sky Park" is two words. Secondly, your suite # must be on address line #2. Registration only takes a few minutes, and is a one time task. For this your will receive 10% off your first online order. Any questions or problems, please call us 949.752.0358.5 <%String categoryName = ((MenuCategory)pageContext.getAttribute("category")).getName().toLowerCase().replaceAll(" ","").replaceAll("/",""); pageContext.setAttribute("categoryName",categoryName); if (categoryName.equals("specials") || categoryName.equals("special") ) { %>

${category.descr}

 
${item.name} /  

 

${item.descr}

 

/images/${item.foodImageUrl != null ? item.foodImageUrl : "icon.gif"}" />
<%}%>

 
<% hibSession.getTransaction().commit();%>