/** * Handle the display of the recipe detail page. This page does a lookup of the * recipe, so the transaction needs to be at this level. Therefore, the transaction * in the shell can be bypassed. * * @version $Id: recipedetail.jhtml,v 1.15 2007/07/24 15:57:16 estegema Exp $ */ String recipeName = request.getParameter("recipe.name"); // is recipe active if ("Y".equals(request.getParameter("recipe.active"))){ // is recipe MDP if ("0".equals(request.getParameter("recipe.type"))){ // is recipe Premium if ("1".equals(request.getParameter("recipe.premiumStatus")) ){ recipeName = "BHG's Newest Recipes:" + recipeName; } } } request.setParameter("recipeName",recipeName); String url = "/recipes/recipedetail.jsp?recipeId=" + request.getParameter("recipeId"); String adCategory = request.getParameter("adCategory"); if (adCategory != null && ! adCategory.equals("")) { url = url + "&adCategory=" + adCategory; } request.setParameter("url", url); response.setContentType("text/html"); response.setHeader("Location", request.getParameter("outputPath")); response.setStatus(HttpServletResponse.SC_MOVED_PERMANENTLY );