Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (364.43 KB, 2 trang )
Using Java Server Pages (JSP) Tags Ver 1.0 © 2005 Aptech Limited 1
Lab Deliverable 2 Using Java Server Pages (JSP) Tags
Part II
1. Write a program using the request.getParameter() method to enter the Name and
Password of a user and display the output on another JSP page.
Solution:
The files used to run the application are:
1. User.jsp
2. UserDisplay.jsp
<html>
<head>
<title>Example of Implicit Objects</title>
</head>
<body>
<h1>User submission form</h1>
<form action="UserDisplay.jsp" method="post">
Enter User Name:
<input type="text" name="uname">
<br>
<br>
Enter Password:
<input type="password" name="pname">
<br>