The source code of ShowPerson.jsp : <%-- ShowPerson.jsp --%> <html> <head> <title>ShowPerson details from page bean</title> </head> <body> <h2>ShowPerson details from page bean</h2> <jsp:useBean id="person" class="beans.PersonBean" scope="page"/> <%-- page means just within this service method --%> <h2>First using getProperty to fetch default field values from instantiation of 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> ${person.address} <%-- JSP 2.0 Expression Language --%> </p> <h2>Now after using setProperty to update the age and address</h2> <jsp:setProperty name="person" property="age" value="99"/> <jsp:setProperty name="person" property="address" value="<%= \"Path\"+\"foot\" %>"/> <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>