@Jpf.Action(
useFormBean="_cartForm",
validationErrorForward=@Jpf.Forward(name="failure", navigateTo=Jpf.NavigateTo.currentPage)
)
public Forward update(CartForm cart) {
Forward forward = new Forward("success");
forward.addOutputForm(cart);
forward.addActionOutput("totalPrice", calculatePrice(cart.getItems()));
return forward;
}