Thứ Tư, 11 tháng 6, 2014

Web Development

  Các bước để tạo :
- New Project
- Chọn Java Web -> Web Appilication
- Chọn tên cho project , location
- Tạo Servlet


PracticeAssignment 1: Create a servlet using NetBeans to greet the user “Hi, welcome to the world of

Servlets”.



demo: https://drive.google.com/file/d/0B-EFzewQLSMDYW4yWGdsaE42UE0/edit?usp=sharing


PracticeAssignment 2-1: Create an html program to accept a name from user and display the first

name and last name on the screen using a servlet program. Use

getParameter() method to access the variables.




demo: https://drive.google.com/file/d/0B-EFzewQLSMDNHp2MHJ6ZmpsY00/edit?usp=sharing



PracticeAssignment 2-2: Create a servlet, which displays the Remote host, Remote port,

Requested URI, Server name and server port on the screen. Use the

methods of HttpServletRequest interface.



demo: https://drive.google.com/file/d/0B-EFzewQLSMDWFd4ZG1sRzBGRHc/edit?usp=sharing

Không có nhận xét nào:

Đăng nhận xét