String idSanPham = "";
if (request.getParameter("idSanPham") != null) {
idSanPham = request.getParameter("idSanPham");
}
Product sp = spDAO.getInfoProduct(idSanPham);
List<Product> sanPhamLienQuans = spDAO.getListProduct(sp.getType()
.getIdtype().toString(), 5, 1);
model.addAttribute("sp", sp);
model.addAttribute("sanPhamLienQuans", sanPhamLienQuans);