Dynamic Web Pages using JSP - Lab Deliverable 1

Tài liệu tham khảo giáo trình lập trình web động với Java Server Pages (JSP). Tài liệu gồm bài trắc nghiệm, các bài giảng và bài tập thực hành. | Lab Deliverable 1 Developing Web Applications-An Overview Part II 1. Write a program to display a Hello World message in the Web browser. In addition display the host name and Session Id. Write JSP code using HTML code. Solution html head title Welcome to our Website title head body marquee font size 3 color FF0033 Hello World font marquee font color 0000FF Hostname br font color 0000FF Session Id body html The output of the program is as shown in Figure . Figure Output of Developing Web Applications - An Overview Ver 2005 Aptech Limited 1 2. Write a program using JSP to calculate the sum of numbers from 1 to 25. Solution html head title JSP Example title head body h1 Displaying sum h1 9 o int sum 0 for int num 1 num 25 num s um s um num Sum of numbers from 1 to 25 is sum 9- o body html The output of the program is as shown in Figure . Figure Output of 2 Ver 2005 Aptech Limited JSP and Struts 3. Write a program to display the current date and the session Id. Solution html head title JSP Example title head body LI Today s date is new LI Session Id body html The output of the program is as shown in Figure . Figure Output of Developing Web Applications - An Overview Ver 2005 Aptech Limited

Không thể tạo bản xem trước, hãy bấm tải xuống
TỪ KHÓA LIÊN QUAN
TÀI LIỆU MỚI ĐĂNG
Đã 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.