// HTML form to submit
user name
<!-- html forms -->
<html>
<head>
<title>JSP and HTML Form data</title>
<style>
label
{
font-family:vivaldi;
font-size:x-large;
letter-spacing:2px;
line-height:40px;
font-weight:bold;
}
</style>
</head>
<body>
<form method="GET" action="JSPFormData.jsp">
<center>
<h2>JSP and HTML Form Data</h2></br>
<label>Enter Name
</label>
<input type="text" Name="UN"
tabindex=1/>
</br> </br>
<button type="Submit" >Click me!!!
</button>
</center>
</form>
</body>
</html>
// JSPFormData.jsp
<!-- JSP -->
<html>
<body>
<h2><center>
<%
out.println("Welcome "+ request.getParameter("UN")); %>
</center></h2>
</body>
</html>
No comments:
Post a Comment
Don't be a silent reader...
Leave your comments...
Anu