Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Homework 2 java ee

Name : Omar Hassani


Id :202136020149
<!-- index.jsp -->
<!DOCTYPE html>
<html>
<head>
<title>Web Application</title>
</head>
<body>
<h1>Welcome to the Web Application</h1>
<form action="page2.jsp" method="GET">
<label for="name">Name:</label>
<input type="text" id="name" name="name" required>
<input type="submit" value="Submit">
</form>
</body>
</html>

<!—page1.jsp -->
<!DOCTYPE html>
<html>
<head>
<title>Web Application</title>
</head>
<body>
<h2>Welcome, <%= request.getParameter("name") %>!</h2>
<p>Click the button below to proceed to the next page.</p>
<a href="page3.jsp?name=<%= request.getParameter("name") %>">Next Page</a>
</body>
</html>

<!—page2.jsp -->
<!DOCTYPE html>
<html>
<head>
<title>Web Application</title>
</head>
<body>
<h2>Goodbye, <%= request.getParameter("name") %>!</h2>
<p>Thank you for using our web application.</p>
</body>
</html>

You might also like