« Home « Chủ đề java

Chủ đề : java


Có 80+ tài liệu thuộc chủ đề "java"

Lập trình di động part 1

tailieu.vn

Công nghệ Java cho công nghiệp di động (Java Technology Wireless Industry - JTWI) ngày càng phát triển và thu hút sự quan tâm của nhiều người. Nhằm đáp ứng nhu cầu này, TinCNTT mở chuyên mục J2ME Tutorial cố gắng đề cập đầy đủ nhiều khía cạnh của công nghệ Java cho di động. Bài 1: Khái quát các...

Lập trình di động part 2

tailieu.vn

2.a CLDC – Connected Limited Device Configuration Phạm vi: Định nghĩa các thư viện tối thiểu và các API.. Định nghĩa:. Bảo mật. Quốc tế hóa Không định nghĩa:. Chu kỳ sống ứng dụng. Quản lý sự kiện. Giao diện ứng dụng và người dùng. Các lớp lõi Java cơ bản, input/output, mạng, và bảo mật được định nghĩa trong...

Lập trình di động part 3

tailieu.vn

1.1 Đồ họa mức thấp (low level) và mức cao (high level). Các lớp MIDP cung cấp hai mức đồ họa: đồ họa mức thấp và đồ họa mức cao. Đồ họa mức cao dùng cho văn bản hay form. Đồ họa mức thấp dùng cho các ứng dụng trò chơi yêu phải vẽ lên màn hình.. Hình 1 biểu...

Lập trình di động part 4

tailieu.vn

1.1 Định dạng (Format), Thêm (Add) và Xóa (Delete) các bản ghi. Thêm bản ghi gồm hai bước. Bước đầu tiên là định dạng bản ghi theo định dạng yêu cầu và bước tiếp theo là thêm bản ghi đã định dạng vào lưu trữ bản ghi. Sự tuần tự hóa (serialization) dữ liệu lưu trữ bản ghi không được...

Lập trình di động part 5

tailieu.vn

Cả hai phương thức GET và POST có thể được dùng để triệu gọi CGI script (Common Gateway Interface script) và cung cấp dữ liệu nhập. Ví dụ, một MIDlet có một form cho người dùng điền dữ liệu, sau đó có thể gởi dữ liệu kết quả cho server để CGI script xử lý. CGI script có thể được...

Lập trình di động part 6

tailieu.vn

Các MIDlet client không yêu cầu phải kết nối đến các server chạy Java. Một MIDlet có thể được viết để tạo HTTP request đến một trang web đã có từ trước, và nó không cần quan tâm là trang web đó được hỗ trợ bởi ASP trên IIS, hay servlet trên. Dịch vụ HTTP, bao gồm ứng dụng Web...

Lập trình di động part 7

tailieu.vn

Kiến trúc mức cao của một ứng dụng enterprise Java không dây.. Kiến trúc của một ứng dụng enterprise phục vụ các client không dây cũng tương tự như của một ứng dụng J2EE chuẩn:. Một client ứng dụng sử dụng MIDP hay được gọi là MIDlet client, cung cấp giao diện người dùng trên thiết bị di động. Các...

SCA nguyên tắc cơ bản

tailieu.vn

Tuy nhiên ứng dụng được tổ chức, có hai điều được yêu cầu: a một ứng dụng là gì? Một cách để nghĩ về nó như một tập hợp các thành phần phần mềm làm việc với nhau. Dịch vụ phần Kiến trúc (SCA) định nghĩa một cách tiếp cận chung để làm cả những việc này. Trả giá Họ ...

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

tailieu.vn

Java ™ Google App Engine. Learn about the core components of the Google App Engine SDK, platform, and services for web developers using Java TM technology. Beginning Java ™ Google App Engine. This book gives you the keys to Google App Engine, which is a major Cloud platform for Java TM . We’ll show you all the core components of...

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

tailieu.vn

Chapter 7: Using the App Engine Datastore...135. Introducing the App Engine Datastore. Chapter 8: App Engine Services ...169. Managing Your App Engine Application. Integration with Salesforce.com. You’ve just picked up a book on Google App Engine. App Engine is Google’s entry into this world of on-demand application development and deployment, and represents a major contribution in this shift to the...

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

tailieu.vn

It’s difficult to get a book together on a technology that was launched just weeks before and releases updates faster then we’re drafting chapters. It was a growing experience for us and we want to thank some of the key people who helped make this possible.. First, we’d like to thank our families who gave up a lot of their...

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

tailieu.vn

You can’t directly adjust the temperature because that would affect the other tenants (other App Engine applications). So, you have to send a request to the building super to change the temperature on your behalf (URLFetch, Bigtable query, Memcache, mail, XMPP, any other Google App Engine service). This is essentially what is happening with App Engine.. If you take a...

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

tailieu.vn

Message Body Data Sent: For each e-mail message that is sent by your application, App Engine measures the amount of data in the body of the e-mail. Attachment Data Sent: For each e-mail message that is sent by your application, App Engine measures the amount of data sent as. URL Fetch. App Engine can communicate with other applications or access...

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

tailieu.vn

Signing Up for Google App Engine. Before you get too far, you need to enable your Google account for access to App Engine. To get started, navigate to http://appengine.google.com. You’ll be prompted for your Google account credentials, and you’ll be asked to accept the terms of. That’s it! You’re ready to get started, by launching the sample project that was...

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

tailieu.vn

The Google App Engine launcher for Mac. If you’re using Eclipse and the Google Eclipse Plugin, you can launch your application locally by selecting Debug As ➤ Web Application from the Run menu.. It’s time to deploy your application to App Engine where you can browse it publicly and share it with the world. You’ll be presented with a Deploy...

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

tailieu.vn

value="accountLookup"/>. <span class="heading">Search by Account Name:</span>. <p/>. style="width: 300px"/>. value="Search"/>. href="/stylesheets/styles.css"/>. <span class="nav"><a href="index.html">Back</a></span><p/>. <span class="title">Create a New Account</span>. action="telesales">. value="accountCreateDo"/>. bgcolor="#CCCCCC">. <tr bgcolor="#407BA8">. <td style="color: #ffffff. font-weight: bold;">Name</td>. <td bgcolor="#ffffff"><input type="input". name="name"></td>. font-weight: bold;">City</td>. name="billingCity"></td>. bold;">State</td>. name="billingState"></td>. bold;">Phone</td>. name="phone"></td>. bold;">Website</td>. name="website"></td>. <td colspan="2". align="center"><input type="submit". value="Submit"></td>. page import="java.util.List"%>. page import="com.appirio.entity.*"%>. <span class="title">Google App Engine Servlet Example with Bigtable</span>. href="telesales?action=accountCreate"/>create...

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

tailieu.vn

value gt;</td>. bold;">Order</td>. value="Submit"></td>. The code for Account.java package com.appirio.entity;. import javax.jdo.annotations.IdGeneratorStrategy;. import javax.jdo.annotations.IdentityType;. import javax.jdo.annotations.PersistenceCapable;. import javax.jdo.annotations.Persistent;. import javax.jdo.annotations.PrimaryKey;. this.name = name;. this.city = city;. this.state = state;. this.phone = phone;. this.website = website;. @return the id. @param id the id to set. public void setId(Long id. this.id = id;. @return the name. @param name the name to set....

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

tailieu.vn

request.getParameter("name". encoding="utf-8"?>. "http://java.sun.com/dtd/web-app_2_3.dtd">. <servlet>. <servlet-name>telesales</servlet-name>. <servlet-class>com.appirio.TelesalesServlet</servlet-class>. </servlet>. <servlet-mapping>. </servlet-mapping>. spring-web.jar. spring-webmvc.jar. spring-core.jar. spring-beans.jar. spring-context.jar. standard.jar. jstl.jar. <servlet-name>dispatcher</servlet-name>. <servlet-. class>org.springframework.web.servlet.DispatcherServlet</servlet-class>. <url-pattern>*.do</url-pattern>. encoding="UTF-8"?>. <beans xmlns="http://www.springframework.org/schema/beans". xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance". xmlns:p="http://www.springframework.org/schema/p". xmlns:context="http://www.springframework.org/schema/context". xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd. http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">. p:suffix=".jsp". "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">. <html xmlns="http://www.w3.org/1999/xhtml">. page isELIgnored="false"%>. uri="http://java.sun.com/jsp/jstl/core"%>. You’ll also need to get the latest version of Xalan-J from http://www.apache.org/dyn/closer.cgi/xml/xalan-j. <servlet-name>AMFMessageServlet</servlet-name>. class>org.granite.messaging.webapp.AMFMessageServlet</servlet-class>. messageTypes="flex.messaging.messages.RemotingMessage">. <destination id="Gateway">. <channel ref="my-graniteamf"/>

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

tailieu.vn

<channel-definition id="my-graniteamf". class="mx.messaging.channels.AMFChannel">. class="flex.messaging.endpoints.AMFEndpoint"/>. Create the persistence.xml file with the code from Listing 4-17 in the /src/META-INF/ directory.. JPA persistence.xml file. http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd". <persistence-unit name="transactions-optional">. value="true"/>. value="appengine"/>. encoding="utf-8"?>. <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml". <mx:RemoteObject id="gateway". fault="status.text=event.fault.toString();">. <mx:method name="createAccount". result="status.text='Created.';"/>. <mx:method name="fetchAccount". result="displayAccount(event);"/>. </mx:RemoteObject>. <mx:Script>. gateway.createAccount(frmId.text,frmName.text,frmCity.text,frmState.t ext,frmPhone.text,frmWebsite.text);. remove current text status.text=null;. frmId.text=null;. frmName.text=null;. frmCity.text=null;. frmState.text=null;. frmPhone.text=null;. frmWebsite.text=null;. private function fetchAccount():void { status.text='Fetching account...';. fetch the...

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

tailieu.vn

Running the application should now result in an application that looks like Figure 4-10.. Many popular Java libraries and frameworks run on App Engine. While some frameworks work with minor configuration changes, others fail due to App Engine restrictions or unsupported classes.. Out of the box App Engine uses servlets and JSPs for web applications.. You built a small telesales...