<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@page import="com.beans.SampleBean" %> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Your Information</title> <% SampleBean resultObject=(SampleBean)request.getAttribute("result"); %> </head> <body> <center><table cellpadding="10" cellspacing="10" border="1"> <tr><th>First Name</th><th>Last Name</th><th>Age</th><th>Gender</th><th>Phone</th></tr> <tr><th><%=resultObject.getFname() %></th><th><%=resultObject.getLname() %></th><th><%=resultObject.getAge() %></th><th><%=resultObject.getGender() %></th><th><%=resultObject.getPhone() %></th></tr> </table> </center> </body> </html>
Ads