The document provides an overview of Cappuccino, a framework for building web applications that resemble desktop applications. It includes detailed instructions for installation, configuration, and code examples in Objective-J, as well as information on creating user interfaces and handling events. It emphasizes the advantages of Cappuccino over traditional web development approaches, particularly in user experience and functionality.
This document compares web apps and native apps for mobile devices. It discusses that web apps are developed with HTML, CSS and JavaScript and can be accessed through any web browser, while native apps are developed through platforms like iOS and Android using languages like Objective-C and Java. It also mentions that HTML5 aims to make web apps work more like native apps by adding features like offline storage, multimedia playback and geolocation to web browsers. Finally, it provides examples of how to make web apps for iPhone that utilize features like touch icons, viewport settings and JavaScript libraries to mimic the look and feel of native iPhone apps.
Smart Phone Development Using Web Technologies
The document discusses various options for developing smartphone applications using web technologies, including PhoneGap and Titanium. PhoneGap allows developing apps using HTML, CSS, and JavaScript that run on multiple platforms, but performance is slower than native apps and some native features are not accessible. Titanium compiles JavaScript to run natively on each platform, allowing native-like performance and access to full device APIs, but with a less familiar development model compared to web development. Overall, PhoneGap is better for prototyping and simple cross-platform apps, while Titanium enables better performance for native-like apps.
The document provides an overview of Struts, a Java web framework that follows the model-view-controller (MVC) architecture. It discusses the core Struts components like the ActionServlet, action mappings in struts-config.xml, action classes, and form beans. It also provides steps to build a basic Struts application with a login page, and shows how to convert a regular JSP page to use Struts tags.
The document provides an overview of mobile applications, categorizing them into mobile web apps, native apps, and hybrid apps, along with their development processes and features. It discusses the technologies used, such as HTML, CSS, and JavaScript, and highlights the differences in deployment, speed, and development costs. The emergence of hybrid apps is noted for blurring the lines between mobile web and native applications, affecting development careers in this field.
The document outlines the chapters of a course on Servlets and JSP including introductions to Java web development, servlets, JSPs, MVC pattern, sharing information, advanced JSP concepts, using JavaBeans, JSP Expression Language, JSP Standard Tag Library, custom JSP tags, accessing databases, using JavaMail, securing applications, downloading files, listeners, and filters. It also describes setting up a basic web project structure and the lifecycle of a Java web application.
สไลด์ประกอบการบรรยายในหัวข้อ "การพัฒนา Web Application ดวยเทคโนโลยี Open Source" สำหรับบุคคลทั่วไปของศูนย์เทคโนโลยีอิเล็กทรอนิกส์และคอมพิวเตอร์แห่งชาติ ในหลักสูตร LAMP training
๋Java Web Programming on Cloud Computing using Google App EngineIMC Institute
เอกสารประกอบการอบรมหลักสูตร Mini Master of Java Technology ปี 2011 เรื่อง Java Web Programming on Cloud Computing using Google App Engine โดยใช้ Eclipse เป็น Tool
The document provides an overview of Cappuccino, a framework for building web applications that resemble desktop applications. It includes detailed instructions for installation, configuration, and code examples in Objective-J, as well as information on creating user interfaces and handling events. It emphasizes the advantages of Cappuccino over traditional web development approaches, particularly in user experience and functionality.
This document compares web apps and native apps for mobile devices. It discusses that web apps are developed with HTML, CSS and JavaScript and can be accessed through any web browser, while native apps are developed through platforms like iOS and Android using languages like Objective-C and Java. It also mentions that HTML5 aims to make web apps work more like native apps by adding features like offline storage, multimedia playback and geolocation to web browsers. Finally, it provides examples of how to make web apps for iPhone that utilize features like touch icons, viewport settings and JavaScript libraries to mimic the look and feel of native iPhone apps.
Smart Phone Development Using Web Technologies
The document discusses various options for developing smartphone applications using web technologies, including PhoneGap and Titanium. PhoneGap allows developing apps using HTML, CSS, and JavaScript that run on multiple platforms, but performance is slower than native apps and some native features are not accessible. Titanium compiles JavaScript to run natively on each platform, allowing native-like performance and access to full device APIs, but with a less familiar development model compared to web development. Overall, PhoneGap is better for prototyping and simple cross-platform apps, while Titanium enables better performance for native-like apps.
The document provides an overview of Struts, a Java web framework that follows the model-view-controller (MVC) architecture. It discusses the core Struts components like the ActionServlet, action mappings in struts-config.xml, action classes, and form beans. It also provides steps to build a basic Struts application with a login page, and shows how to convert a regular JSP page to use Struts tags.
The document provides an overview of mobile applications, categorizing them into mobile web apps, native apps, and hybrid apps, along with their development processes and features. It discusses the technologies used, such as HTML, CSS, and JavaScript, and highlights the differences in deployment, speed, and development costs. The emergence of hybrid apps is noted for blurring the lines between mobile web and native applications, affecting development careers in this field.
The document outlines the chapters of a course on Servlets and JSP including introductions to Java web development, servlets, JSPs, MVC pattern, sharing information, advanced JSP concepts, using JavaBeans, JSP Expression Language, JSP Standard Tag Library, custom JSP tags, accessing databases, using JavaMail, securing applications, downloading files, listeners, and filters. It also describes setting up a basic web project structure and the lifecycle of a Java web application.
สไลด์ประกอบการบรรยายในหัวข้อ "การพัฒนา Web Application ดวยเทคโนโลยี Open Source" สำหรับบุคคลทั่วไปของศูนย์เทคโนโลยีอิเล็กทรอนิกส์และคอมพิวเตอร์แห่งชาติ ในหลักสูตร LAMP training
๋Java Web Programming on Cloud Computing using Google App EngineIMC Institute
เอกสารประกอบการอบรมหลักสูตร Mini Master of Java Technology ปี 2011 เรื่อง Java Web Programming on Cloud Computing using Google App Engine โดยใช้ Eclipse เป็น Tool
Developing Business Blockchain Applications on Hyperledger IMC Institute
The document provides a comprehensive guide for developing business blockchain applications on Hyperledger using Google Cloud Platform. It details the setup process of an Ubuntu virtual server, installation of Hyperledger Composer and Fabric, and instructions for creating and testing a business network. Additionally, it explains how to generate REST APIs for the business network, complete with sample code and deployment information.
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