Friday, October 14, 2011

JSP Aptech All demo - Bài tập tổng hợp JSP i10

Create data tabe Users(ID, Pass, Name,Address)
1. Create Home.jsp page
a. At header of page display Server information
b. Has to links Register and Enter
c. At the footer display Client Address and Client Accept language.
2. Create SignIn.jsp
a. Using Servlet check user exists
i. If yes direct to listAllEmployees.jsp
ii. If no direct to Login.jsp
3.Create register.jsp
a. Using JSTL to insert user to data base ().
4.Create custom tag listUser to display all of users, Create list.jsp page call this custom tag to display all data into webbrowser
5.Create static function return detail of Employees with id input by user.
6.Create filter to deny access to listAllEmployees.jsp form outside server.













Download ở đây Lab11_All_in_One

Monday, October 3, 2011

JSTL - set:datasource, sql:query, sql:update, sql:param, sql:transaction

Trong phần demo này tôi hướng dẫn các xây dựng 4 chức năng cơ bản của một website với jsp
Using JSTL
1. SQL tag library to manage employees
a. insert, delete, update and add new
b. manage user transaction
2. Using EL to check input data and display data.
a. c:if
b. c:forEach

This demo has some pages
1. Home.jsp
2. List.jsp
3. Insert.jsp
4. Edit.jsp
5. Transaction.jsp

Home.jsp has interface as


This is interface of list.jsp page


Download ở đây

Sunday, September 25, 2011

Bài tập xây dựng một ứng dụng bán điện thoại đơn giản bằng jsp

1. Tao trang chứng thực
2. Trang chủ thể hiện 2 loại sản phâm
3. Trang sản phẩm điện thoại
4. Servlet dịch vụ tính tiền
5. Trang hiển thị kết quả mua hàng









Download ở đây

Saturday, August 27, 2011

Theo doi thu muc - Folder monitor - C#

FileSystemWatcher là thư việc được xây dựng sẳn của .Net Framework cho phép chúng ta theo dõi một thư mục nào đó trên máy tính. Trong demo này tôi sử dụng để theo dõi ổ đĩa C: và cảnh báo thông qua file nhật ký và notifiIcon dưới góc phải màn hình.



Sau khi chạy bạn có thể nhấn chuột phải lên Icon và chọn Show để xem file nhật ký



Giao diện đơn giản bạn có thể hiệu chỉnh lại tùy ý


Thêm một hình nữa


Download source code ở đây DemoFolderMonitoring

Wednesday, August 24, 2011

Những điểm mới của VS 2010

Chào các bạn gởi các bạn bài giới thiệu những điểm mới của VS 2010.

Download

Wednesday, August 17, 2011

Liệt kê các máy trong hệ thống mạng cục bộ - Local network list

Demo dò tìm và hiển thị tên các máy tính trong hệ thống mạng cục bộ.



Download source nguồn tại đây

Gọi Webservice bằng Java script - (Java script client for webservice)

Web service một giải pháp tích hợp các module phát triển bằng những công nghệ khác nhau. Trong những phần trước tôi từng giới thiệu với các bạn các tạo và sử dụng webservice với java. Hôm nay tôi giới thiệu với các bạn cách sử dụng java script để gọi một phương thức từ webservice.

1. Download thư việc "webservice.htc" của microsoft đây là thư viện được viết sẵn cho phép gọi webservice bằng ngôn ngữ java.
2. Tạo file html chứa đoạn code java script sau
var callID = 0;
function getWSDL()
{
myWebService.useService(
"http://www.webservicex.net/CurrencyConvertor.asmx?WSDL",
"CurrencyConvertor");
}
function getResult()
{
country.innerText = event.result.value + " VND";
}
function Lookup()
{
callID = myWebService.CurrencyConvertor.callService("ConversionRate", txtIP.value,"VND");
}

3. Chúng ta sử dụng dịch vụ qui đổi tiền tệ từ trang "http://www.webservicex.net/CurrencyConvertor.asmx?WSDL"

[caption id="attachment_382" align="aligncenter" width="300" caption="Demo gọi webservice bằng javascript"]Demo gọi webservice bằng javascript[/caption]

Cung cấp thông tin như hình và nhấn Convert
[caption id="attachment_383" align="aligncenter" width="300" caption="Kết quả"]Kết quả[/caption]

Chúc bạn thành công. Download ở đây.

Translate