Java Server Pages: A Code-Intensive Premium Reference- P13 pptx
... first is the line of code that instantiates the ShoppingCart bean. This is done with the <jsp:useBean> standard action. The bean is created with an id of cart and has session scope. The following ... that for every item you add, the quantity of the cart's content is incremented. Creating a Shopping Cart JSP Now that you have added several items to the ShoppingCart, let&apo...
Ngày tải lên: 03/07/2014, 06:20
... look at the standard actions used to reference JavaBeans and an example that uses these actions. JavaBean Standard Actions There are three standard actions defined to help integrate JavaBeans ... back in, and finally displays proof that its state was maintained. Listing 3.2: SimpleJavaBeanTester .java import java. io.*; public class SimpleJavaBeanTester { public SimpleJavaBeanTest...
Ngày tải lên: 27/06/2014, 12:20