The personal cloud will gradually replace the PC as individuals store personal content and access services from any device. A personal cloud provides access to files, photos, notes and other content from multiple devices. It allows individuals to define what data they store and share, what apps they use, and who can access their data and apps. Personal clouds connect to networks and access services to share data and messages with other personal clouds. By 2014, the personal cloud will become the primary way individuals access their digital content and services, replacing the PC.
This document discusses how cloud computing will affect the software industry. It notes that cloud computing and mobile computing are major IT trends that are changing the industry. The cloud allows software to be delivered as a service and accessed from any device, changing software business models and reducing barriers to entry. It also requires new skills around cloud architecture, security, and data analytics. The document outlines opportunities for software companies in areas like reduced startup costs, global distribution, and faster innovation cycles enabled by cloud infrastructure.
This document discusses the impact of cloud computing on the Asian IT industry. It outlines several key trends driving cloud adoption, including bring your own device (BYOD) policies, increased worker mobility, and the rise of mobile commerce. The cloud is changing how IT infrastructure is delivered and used. It also presents opportunities for small and medium enterprises to access technology through the subscription-based cloud model. While cloud computing provides benefits, issues around awareness, security, infrastructure limitations, and data protection must still be addressed for the technology to reach its full potential across Asia.
This document discusses key IT trends for co-creation, including mobile computing, cloud computing, social technologies, and intelligent devices. It notes that smartphone usage in Thailand is expected to grow significantly by 2015. Tablet sales are also increasing globally. By 2014, mobile access will become the most common way to access the internet. Social technologies and cloud computing, like cloud storage and Software as a Service (SaaS), are also trends. These technologies will impact industries and business models. Digital transformation and collaboration will be important. The presentation emphasizes innovating with others through cooperation.
The document outlines key technology trends impacting the software industry as of 2012, emphasizing the rise of cloud computing, mobile accessibility, and changing user experiences driven by new devices and services. It discusses how these trends create opportunities and challenges for software companies, including a shift from traditional licensing to subscription models and the growing importance of big data and social media integration. Predictions for future developments suggest significant transformations in how software is delivered, utilized, and consumed across various platforms.
Open source software has grown significantly and its impact is projected to reach $19 billion by 2012. Previously used mainly for desktop and infrastructure software, open source is now ubiquitous due to trends like cloud computing, software as a service, and its use by major companies like Facebook, Google, and Wikipedia. While open source was once focused on technology, the business model is shifting to service, support, training and customization.
77. 77
11.2 การพฒนาโปรแกรม helloTag.jsp
โปรแกรม helloTag.jsp เปนโปรแกรม JSP ทท.างานแบบเดยวกบโปรแกรม hello.jsp แต/การพฒนา
โปรแกรมนจะเขยนโดยการสราง custom tag ทชอ nameTag การสราง custom Tag จะตองมการพฒนาโปรแก
รมหลายๆ ส/วนดงน
11.2.1 สราง Tag Library Descriptor
ไฟล5นจะใชเกบ รายชอ Tag ต/างๆ ทมอย#/เพอสามารถน.า tag ต/างๆ มาใชในโปรแกรม JSP โดยใชค.าสง
<%@taglib ...%> การสราง Tag Library Descriptor จะมขนตอนดงน
1. เลอกหนาต/าง Projects แลวคล0;กขวาทโหนด JSPDemo จากนนเลอกค.าสง New > Other...
2. ในไดอะลอก New File ใหเลอก Categories ทชอ Web ซ,งโปรแกรมกจะแสดง File Types ต/างๆ ภาย
ใต Category น ใหเราเลอก Tag Library Descriptor แลวกด Next
3. ก.าหนด TLD Name: เปน MyTags และค/า Folder เปน WEB-INFtlds ส/วนค/าอนๆ ใหเปนตามทตง
ไวดงร#ปท 11.2 แลวกด Finish
รปท 11.2 การก#าหนด Tag Library Descriptor
4. หนาต/าง Editor จะแสดงไฟล5ทชอ MyTags.tld ทอย#/ในโฟลเดอร5 Web PagesWEB-INFtlds
การเขยนโปรแกรม Java Servet / JSP Thanachart Numnonda / Thanisa Kruawaisayawan
78. 78
11.2.2 สรางไฟล5 Tag Handler
ไฟล5 Tag Handler จะเปนโปรแกรมจาวาทพฒนาข,นเพอระบ1ว/า เมอเรยกใช tag แลวจะตองท.าค.าสง
อย/างไร ในทนจะก.าหนดชอ Tag เปน NameTag และโปรแกรมจาวาเปน NameTagHandler โดยโปรแกรมจะ
ท.าการอ/านค/าพาราม0เตอร5 name และพ0มพ5ขอความ Hello xxxx จ.านวนส0บครง การสรางไฟล5 Tag Handler จะม
ขนตอนดงน
1. เลอกหนาต/าง Projects แลวคล0;กขวาทโหนด JSPDemo จากนนเลอกค.าสง New > Other...
2. ในไดอะลอก New File ใหเลอก Categories ทชอ Web ซ,งโปรแกรมกจะแสดง File Types ต/างๆ ภาย
ใต Category น ใหเราเลอก Tag Handler แลวกด Next
3. ก.าหนด Class Name: เปน NameTagHandler ค/า Package เปน tags ส/วนค/าอนๆ ใหเปนตามทตงไว
ดงร#ปท 11.3 แลวกด Next
รปท 11.3 การก#าหนดคา Tag Handler
4. กดป16ม Browse เลอก TLD File: เปน MyTags.tld
5. กดป16ม New เพอเพ0ม Attribute
6. ในไดอะลอก Add New Attribute ก.าหนด Attribute Name: เปน name ค/า Attribute Type เปน
java.lang.String และเลอก required Attribute แลวกด Next
7. เราจะไดไดอะลอก New File ดงร#ปท 11.4 แลวกด Finish
8. หนาต/าง Editor จะแสดงไฟล5 NameTagHandler.java ใหเขยน source code ดง Listing ท 11.2
การเขยนโปรแกรม Java Servet / JSP Thanachart Numnonda / Thanisa Kruawaisayawan
79. 79
รปท 11.4 การกาหนดขอมล TLD ของไฟล! NameTagHandler
Listing ท 11.2 โปรแกรม NameTagHandler.java
package tags;
import javax.servlet.jsp.tagext.*;
import javax.servlet.jsp.JspWriter;
import javax.servlet.jsp.JspException;
public class NameTagHandler extends SimpleTagSupport {
/**
* Initialization of name property.
*/
private java.lang.String name;
/**Called by the container to invoke this tag.
* The implementation of this method is provided by the tag library developer,
* and handles all tag processing, body iteration, etc.
*/
public void doTag() throws JspException {
JspWriter out=getJspContext().getOut();
try {
JspFragment f=getJspBody();
if (f != null) f.invoke(out);
for (int i = 0; i < 10; i++) {
out.println("Hello " + name + "<br>");
การเขยนโปรแกรม Java Servet / JSP Thanachart Numnonda / Thanisa Kruawaisayawan