System.out.println("Error path.");
response.sendRedirect("/home");
}
try {
System.out.println("Detail id : " + id);
Tube detail = TubeModel.getByTubeId(id);
if (detail != null) {
long count = detail.getViewCount();
count += 1;
detail.setViewCount(count);
TubeModel.update(detail);
TubeModel.closePM();
request.setAttribute("title", detail.getTitle().getValue()
+ " - NhayCungBiBi");
request.setAttribute("description",
"Chuyên trang clip nhảy cùng bibi.");
request.setAttribute(
"keyword",
detail.getTitle().getValue()
+ ", nhảy cùng bibi, nhaycungbibi.com, nhaycungbibi, video clip, youtube, mix clip, tubeonfire.com, tubeonfire, your clip, sharing, camera phone, video phone, free...");
request.setAttribute("detail", detail);
request.setAttribute("categories", CategoryModel.all());
request.setAttribute("url", request.getRequestURL().toString());
request.getRequestDispatcher("/tube_detail.jsp").forward(