Skip to content
Permalink
857a39a528
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
40 lines (36 sloc) 1.45 KB
<%@page import="java.util.List"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>ABC AIRCRAFT SERVICE</title>
</head>
<body>
<%@page import="com.login.SessionClass,com.login.LoginEntity"%>
<%
int id = Integer.parseInt(request.getParameter("id"));
LoginEntity loginEntity= SessionClass.getRecordById(id);
%>
<h1>Edit Form</h1>
<form action="edituser.jsp" method="post">
<tr><td>Id:</td><td>
<input type="text" name="name" value="<%= loginEntity.getId()%>"/></td></tr>
<tr><td>Name:</td><td>
<input type="text" name="name" value="<%= loginEntity.getName()%>"/></td></tr>
<tr><td>Age:</td><td>
<input type="text" name="age" value="<%= loginEntity.getAge()%>"/></td></tr>
<tr><td>Manufacture Year:</td><td>
<input type="text" name="myear" value="<%= loginEntity.getMyear()%>"/></td></tr>
<tr><td>Aircraft Type:</td><td>
<input type="text" name="type" value="<%= loginEntity.getType()%>"/></td></tr>
<tr><td>Running Hours:</td><td>
<input type="text" name="time" value="<%= loginEntity.getTime()%>"/></td></tr>
<tr><td>Maintenance Scheduled/Unscheduled:</td><td>
<input type="text" name="schedule" value="<%= loginEntity.getSchedule()%>"/></td></tr>
<tr><td colspan="2"><input type="submit" value="Edit User"/></td></tr>
</form>
</body>
</html>
</body>
</html>