Apress bắt đầu ứng dụng với java google - p 9

CHAPTER 4 ■ SERVLET CONTAINER AND FRAMEWORKS Close Date Order There is no form validation so please fill in all fields. Figure 4-6. The Account Display web page with the newly created opportunity 58 CHAPTER 4 ■ SERVLET CONTAINER AND FRAMEWORKS Model Our model consists of two POJOs for the Account and Opportunity objects used by the application. These domain-specific objects are constructed by the servlet and passed to and from the controller to the views. Your application uses JDO, therefore Listings 4-6 and 4-7 represent the objects along with the. | CHAPTER 4 SERVLET CONTAINER AND FRAMEWORKS td style color ffffff font-weight bold Close Date td td bgcolor ffffff input type input name closeDate value 1 1 2012 td tr tr bgcolor 407BA8 td style color ffffff font-weight bold Order td td bgcolor ffffff input type input name orderNumber value 7 td tr tr td colspan 2 bgcol or ffffff align center input type submit value Submit td tr table form There is no form validation so please fill in all fields. body html Figure 4-6. The Account Display web page with the newly created opportunity 58 CHAPTER 4 SERVLET CONTAINER AND FRAMEWORKS Model Our model consists of two POJOs for the Account and Opportunity objects used by the application. These domain-specific objects are constructed by the servlet and passed to and from the controller to the views. Your application uses JDO therefore Listings 4-6 and 4-7 represent the objects along with the required annotations for JDO. Listing 4-6. The code for package import import import import import @PersistenceCapable identityType public class Account @PrimaryKey @Persistent valueStrategy private Long id @Persistent private String name @Persistent private String city @Persistent private String state @Persistent private String phone @Persistent String website public Account String name String city String state String phone String website nam e cit y state phone web site @return the id public Long getId 59 CHAPTER 4 SERVLET CONTAINER AND FRAMEWORKS return id @param id the id to set public void setId Long id id @return the name public String getName return name @param name the name to set public void setName String name nam e @return the city public .

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
127    256    4    14-05-2024
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.