JSP Tag Libraries

О Gets the remote interface of the Customer EJB We retrieve the remote interface of the Customer EJB from the session scope and add it to the page scope. e Gets the home interface for the OrderManager EJB.

e Creates an OrderManager Session EJB We use the OrderManager EJB’s home interface to create an OrderManager remote interface using the Customer EJB as parameter.

О Adds the specified quantity of the specified product to the order We use the remote interface of the OrderManager to add a specified quantity of a certain product as an OrderItem to the users’ current Order. Then we redirect the user back to the category list view.

Remove item view

The remove item view is used to add OrderItems to the user’s current order. The page is called itemRemover.jsp in our application, and looks like listing 14.15.