public OrderBean displayCart() throws SQLException, ClassNotFoundException {
			ConnectionUtility chd = new ConnectionUtility();
			Connection con = null;
			PreparedStatement ps = null;
			ResultSet rs=null;
			OrderBean orderItem = new OrderBean();
			ArrayList<ItemBean> itemslist = new ArrayList<ItemBean>();
			Double totalAmount = 0.0;
			try {
		        con = chd.create();	
		    	ps =con.prepareStatement("select itemname,sum(price),count(qty) from cart group by itemname");
		    	rs=ps.executeQuery();	
		    	while(rs.next()) {
		    		ItemBean item = new ItemBean();
	                item.setItemName(rs.getString(1));
	                item.setPrice(rs.getDouble(2));
	                item.setQty(rs.getInt(3));
		   	  	    itemslist.add(item);
		   	  	    totalAmount += rs.getDouble(2); 
		   	  	    item = null;
		    	}
		    	orderItem.setItemList(itemslist);
		    	orderItem.setTotalAmount(Math.round(totalAmount*100.0)/100.0);
			} catch(Exception e) {
				e.printStackTrace();
			}
			finally {
				 try  {
					 con.close();
				 } catch(Exception e) {
					e.printStackTrace();
				 }
			}
			return orderItem;           
		}