Báo cáo tài liệu vi phạm
Giới thiệu
Kinh doanh - Marketing
Kinh tế quản lý
Biểu mẫu - Văn bản
Tài chính - Ngân hàng
Công nghệ thông tin
Tiếng anh ngoại ngữ
Kĩ thuật công nghệ
Khoa học tự nhiên
Khoa học xã hội
Văn hóa nghệ thuật
Sức khỏe - Y tế
Văn bản luật
Nông Lâm Ngư
Kỹ năng mềm
Luận văn - Báo cáo
Giải trí - Thư giãn
Tài liệu phổ thông
Văn mẫu
THỊ TRƯỜNG NGÀNH HÀNG
NÔNG NGHIỆP, THỰC PHẨM
Gạo
Rau hoa quả
Nông sản khác
Sữa và sản phẩm
Thịt và sản phẩm
Dầu thực vật
Thủy sản
Thức ăn chăn nuôi, vật tư nông nghiệp
CÔNG NGHIỆP
Dệt may
Dược phẩm, Thiết bị y tế
Máy móc, thiết bị, phụ tùng
Nhựa - Hóa chất
Phân bón
Sản phẩm gỗ, Hàng thủ công mỹ nghệ
Sắt, thép
Ô tô và linh kiện
Xăng dầu
DỊCH VỤ
Logistics
Tài chính-Ngân hàng
NGHIÊN CỨU THỊ TRƯỜNG
Hoa Kỳ
Nhật Bản
Trung Quốc
Hàn Quốc
Châu Âu
ASEAN
BẢN TIN
Bản tin Thị trường hàng ngày
Bản tin Thị trường và dự báo tháng
Bản tin Thị trường giá cả vật tư
Tìm
Danh mục
Kinh doanh - Marketing
Kinh tế quản lý
Biểu mẫu - Văn bản
Tài chính - Ngân hàng
Công nghệ thông tin
Tiếng anh ngoại ngữ
Kĩ thuật công nghệ
Khoa học tự nhiên
Khoa học xã hội
Văn hóa nghệ thuật
Y tế sức khỏe
Văn bản luật
Nông lâm ngư
Kĩ năng mềm
Luận văn - Báo cáo
Giải trí - Thư giãn
Tài liệu phổ thông
Văn mẫu
NGÀNH HÀNG
NÔNG NGHIỆP, THỰC PHẨM
Gạo
Rau hoa quả
Nông sản khác
Sữa và sản phẩm
Thịt và sản phẩm
Dầu thực vật
Thủy sản
Thức ăn chăn nuôi, vật tư nông nghiệp
CÔNG NGHIỆP
Dệt may
Dược phẩm, Thiết bị y tế
Máy móc, thiết bị, phụ tùng
Nhựa - Hóa chất
Phân bón
Sản phẩm gỗ, Hàng thủ công mỹ nghệ
Sắt, thép
Ô tô và linh kiện
Xăng dầu
DỊCH VỤ
Logistics
Tài chính-Ngân hàng
NGHIÊN CỨU THỊ TRƯỜNG
Hoa Kỳ
Nhật Bản
Trung Quốc
Hàn Quốc
Châu Âu
ASEAN
BẢN TIN
Bản tin Thị trường hàng ngày
Bản tin Thị trường và dự báo tháng
Bản tin Thị trường giá cả vật tư
Thông tin
Tài liệu Xanh là gì
Điều khoản sử dụng
Chính sách bảo mật
0
Trang chủ
Công Nghệ Thông Tin
Kỹ thuật lập trình
Apress bắt đầu ứng dụng với java google - p 10
Đang chuẩn bị liên kết để tải về tài liệu:
Apress bắt đầu ứng dụng với java google - p 10
Quang Hà
62
10
pdf
Không đóng trình duyệt đến khi xuất hiện nút TẢI XUỐNG
Tải xuống
CHAPTER 4 ■ SERVLET CONTAINER AND FRAMEWORKS closeDate = df.parse(request.getParameter("closeDate")); } catch(java.text.ParseException pe) { System.out.println("Exception " + pe); } // create the new opportunity Opportunity opp = new Opportunity( request.getParameter("name"), new Double(request.getParameter("amount")).doubleValue(), request.getParameter("stageName"), new Integer(request.getParameter("probability")).intValue(), closeDate, new Integer(request.getParameter("orderNumber")).intValue(), new Long(request.getParameter("accountId")) ); // persist the entity try { pm.makePersistent(opp); } finally { pm.close(); } response.sendRedirect("telesales?action=accountDisplay&accountId="+request. getParameter("accountId")); } } public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { doGet(request, response); } } 68 CHAPTER 4 ■ SERVLET CONTAINER AND FRAMEWORKS ■ Note The servlet in Listing 4-8 describes code for. | CHAPTER 4 SERVLET CONTAINER AND FRAMEWORKS closeDate df.parse request.getParameter closeDate catch java.text.ParseException pe System.out.println Exception pe create the new opportunity Opportunity opp new Opportunity request.getParameter name new Double request.getParameter amount .doubleValue request.getParameter stageName new Integer request.getParameter probability .intValue closeDate new Integer request.getParameter orderNumber .intValue new Long request.getParameter accountId persist the entity try pm.makePersistent opp finally pm.close response.sendRedirect telesales action accountDisplay accountId request. getParameter accountId public void doPost HttpServletRequest request HttpServletResponse response throws ServletException lOException doGet request response 68 CHAPTER 4 SERVLET CONTAINER AND FRAMEWORKS Note The servlet in Listing 4-8 describes code for interacting with Bigtable. We ll provide more details on the PersistenceManager JDO and JDOQL in Chapter 7. Deployment Descriptor When the web server receives a request for your application it uses the deployment descriptor to map the URL of the request to the code handling the request. Modify the web.xml file with the code in Listing 4-9 to use the TelesalesServlet class. The servlet mapping specifies that all incoming requests to telesales be mapped to the newly created servlet defined in the servlet definition. Listing 4-9. The web.xml file xml version 1.0 encoding utf-8 DOCTYPE web-app PUBLIC - Sun Microsystems Inc. DTD Web Application 2.3 EN http java.sun.com dtd web-app_2_3.dtd web-app xmlns http java.sun.com xml ns javaee version 2.5 servlet servlet-name telesales servlet-name servlet-class com.appirio.TelesalesServlet servlet-class servlet servlet-mapping servlet-name telesales servlet-name url-pattern telesales url-pattern servlet-mapping welcome-file-list welcome-file index.html welcome-file welcome-file-list web-app PersistenceManager The servlet utilizes Bigtable to store data for your .
TÀI LIỆU LIÊN QUAN
Apress bắt đầu ứng dụng với java google - p 1
Apress bắt đầu ứng dụng với java google - p 2
Apress bắt đầu ứng dụng với java google - p 3
Apress bắt đầu ứng dụng với java google - p 4
Apress bắt đầu ứng dụng với java google - p 5
Apress bắt đầu ứng dụng với java google - p 6
Apress bắt đầu ứng dụng với java google - p 7
Apress bắt đầu ứng dụng với java google - p 8
Apress bắt đầu ứng dụng với java google - p 9
Apress bắt đầu ứng dụng với java google - p 10
Đã 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.