1. Trang chủ
  2. » Công Nghệ Thông Tin

Dynamic Web Pages using JSP - Lab Deliverable 1 ppsx

1 388 1

Đang tải... (xem toàn văn)

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 1
Dung lượng 394,01 KB

Nội dung

Developing Web Applications – An Overview Ver 1.0 © 2005 Aptech Limited 1 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: <%= request.getRemoteHost() %><br> <font color = “#0000FF”> Session Id: <%= session.getId() %> </body> </html> The output of the program is as shown in Figure 2.1. Figure 2.1: Output of Hello.jsp . Developing Web Applications – An Overview Ver 1. 0 © 2005 Aptech Limited 1 Lab Deliverable 1 Developing Web Applications-An Overview Part II 1. Write a program to display. 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>. </body> </html> The output of the program is as shown in Figure 2 .1. Figure 2 .1: Output of Hello .jsp

Ngày đăng: 14/08/2014, 05:20

TỪ KHÓA LIÊN QUAN