public class ViewItemAction extends BaseAction {
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
String itemId = request.getParameter("itemId");
Item item = getPetStore().getItem(itemId);
request.setAttribute("item", item);
request.setAttribute("product", item.getProduct());
return mapping.findForward("success");
}