Dynamic Web Pages using JSP - Lab Deliverable 1 ppsx

1 388 1
Dynamic Web Pages using JSP - Lab Deliverable 1 ppsx

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

Thông tin tài liệu

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

Tài liệu cùng người dùng

Tài liệu liên quan