Sorry i saw where I went wrong with the last piece of code
the line out.println("<br/> Sub-Level: " + c.getLevel());
should be
out.println("<br/> Sub-Level: " + c2.getLevel());
I do still have the same problem when doing a search though
Product currProduct = prods[prod];
Category[] prodCats = eng.getCategoriesPerProduct(currProduct.getId(), -1);
prodCats[0].getLevel() will always return 0 even though this is not correct
the line out.println("<br/> Sub-Level: " + c.getLevel());
should be
out.println("<br/> Sub-Level: " + c2.getLevel());
I do still have the same problem when doing a search though
Product currProduct = prods[prod];
Category[] prodCats = eng.getCategoriesPerProduct(currProduct.getId(), -1);
prodCats[0].getLevel() will always return 0 even though this is not correct