The source code of ShowPersonFromForm.jsp : <!-- ShowPersonFromForm.jsp --> <!-- Can test this with request: http://tomcat.cs.stir.ac.uk:8080/sbj/ShowPersonFromForm.jsp?age=33&address=4B63 --> <html> <head> <title>ShowPerson details from form request data</title> </head> <body> <h2>ShowPerson details from form request data</h2> <jsp:useBean id="person" class="beans.PersonBean" scope="page"/> <!-- page means just within this service method --> <h2>First use getProperty to fetch default field values from the bean</h2> <p> <b>Name is:</b> <jsp:getProperty name="person" property="name"/> <br /> <b>Age is:</b> <jsp:getProperty name="person" property="age"/> <br /> <b>Address is:</b> <jsp:getProperty name="person" property="address"/> </p> <h2>Now set the age and address bean properties from the form data</h2> <jsp:setProperty name="person" property="age"/> <jsp:setProperty name="person" property="address"/> <p> <b>Name is:</b> <jsp:getProperty name="person" property="name"/> <br /> <b>Age is:</b> <jsp:getProperty name="person" property="age"/> <br /> <b>Address is:</b> <jsp:getProperty name="person" property="address"/> </p> </body> </html>