Empupdate.jsp – HP Integrity NonStop J-Series User Manual
Page 296

<br />
</f:verbatim>
<h:message for="age" styleClass="errors" />
</h:panelGroup>
<h:outputText value="email" styleClass="style2" />
<h:panelGroup>
<h:inputText id="email" value="#{EmpBean.email}" size="27"
required="true" />
<f:verbatim>
<br />
</f:verbatim>
<h:message for="email" styleClass="errors" />
</h:panelGroup>
<h:outputText value=" " />
<h:commandButton value="submit" action="#{EmpBean.register}" />
</h:panelGrid>
<br>
</br>
<t:commandLink id="Link1" action="home" immediate="true">
<h:outputText value="Link to Home page >>" />
</t:commandLink>
</h:panelGroup>
</h:panelGrid>
</h:form></center>
</body>
</html>
</f:view>
empUpdate.jsp
This page enables you to retrieve or delete the existing employee details from the database. It
contains the EmployeeID and Action (Retrieve/Delete) fields.
You should provide the required values in each of the fields. If you enter incorrect values in any
of the fields, the respective error message appears on the page.
Replace the contents of the existing empUpdate.jsp file with the code given below:
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<f:loadBundle basename="com.hp.empinfo.web.message" var="message"/>
<f:view>
<html>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<head>
<title>Record Updation</title>
<link href="mycss.css" rel="stylesheet" type="text/css"/>
</head>
<body ><center>
<h:form id="UpdateForm">
<h:panelGrid width="100%" columns="1" border="0">
<h:dataTable id="dt1" border="0" cellpadding="0" cellspacing="0" var="ab">
<h:column>
<f:facet name="header">
<h:outputText value="SpringFaces" styleClass="style4"/>
</f:facet>
</h:column>
</h:dataTable>
</h:panelGrid>
296 Integrating Frameworks