Jsp and Servlet
Hi all
I am new to java
I am creating a simple form using jsp and servlets
It contains three fields like username firstname and lastname
when i enter and click the submit button i want it to display in the
next jsp page
can anybody help me in doing so.
Thank you in advace.
[nobr]<form method = "post" action = "myservlet.jsp">
Name: <input type = "text" size = 30 name = "username"/><br>
Age: <input type = "text" size = 10 name = "age"/><br>
<input type = "submit" value="Submit">
For your jsp:
<html>
<body>
Username: <%= request.getParameter("username") %><br>
Age: <%= request.getParameter("age") %><br>
</body>
</html>
[/nobr]