meena n
Updaetails
0 Answer(s)      4 years and 10 months ago
Posted in : Java Interview Questions
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <[email protected] 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>
<form action="<%=request.getContextPath()%>/Controller" method="post">
<input type="hidden" name="page" value="updatedetails"/>
<table>
<tr><td>First Name:</td><td><input type="text" name="fname" value="<%=resultObject.getFname() %>"/></td></tr>
<tr><td>Last Name:</td><td><input type="text" name="lname" value="<%=resultObject.getLname() %>"/></td></tr>
<tr><td>Age:</td><td><input type="text" name="age" value="<%=resultObject.getAge() %>"/></td></tr>
<tr><td>Gender:</td><td><input type="text" name="gender" value="<%=resultObject.getGender() %>"/></td></tr>
<tr><td>Phone:</td><td><input type="text" name="phone" value="<%=resultObject.getPhone() %>"/></td></tr>
<tr><td colspan="2"><input type="submit" value="Update Details"/></td></tr></table>
</form>
</center>



</body>
</html>

Ads

View Answers









Related Tutorials/Questions & Answers: