Professional Documents
Culture Documents
Lab 1 Report
Lab 1 Report
3.3. Tạo file loginprocess.jsp, chỉnh sửa lại file index.html và tạo form
<body>
<form method=”get” action=”loginprocess.jsp”>
<input type=”text” id=”Username” name=”username”/>
<input type=”text” id=”Email” name=”emal”/>
<input type=”submit” name=”login”/>
</form>
</body>
Chỉnh sửa phần <body> trong file index.html để hiển thị mục nhập
(Phần <head> chỉ chỉnh mục name vì lý do thẩm mỹ)
File loginprocess.jsp được tạo sau đó
<body>
<h1>Welcome back, user!</h1>
<h3>Here are the information you submitted to us:</h3>
<p>Your username is: <%=request.getParameter(“username”)%></p>
<p>And your email is: <%=request.getParameter(“email”)%></p>
</body>