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.

[323 byte] By [sharathb22a] at [2007-11-27 9:22:15]
# 1

[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]

Navy_Codera at 2007-7-12 22:16:36 > top of Java-index,Java Essentials,New To Java...