Success.jsp – HP Integrity NonStop J-Series User Manual

Page 438

Advertising
background image

<t:outputText value="Age" />
</f:facet>
<t:outputText value="#{EmpBean.age}"></t:outputText>
</t:column>
<t:column headerstyle="background-color:#99CCFF;">
<f:facet name="header">
<t:outputText value="Email" />
</f:facet>
<t:outputText value="#{EmpBean.email}"></t:outputText>
</t:column>
<f:facet name="footer">
<h:outputText value="The End" />
</f:facet>
</t:dataTable>
<br></br>

<t:commandLink id="Link1" action="#{EmpBean.resetUpdate}" immediate="true">
<h:outputText value=" Back >>" />
</t:commandLink>
<br>
</br>
<t:commandLink id="Link2" action="home" immediate="true">
<h:outputText value="Link to Home page >>" />
</t:commandLink>

</h:panelGroup>
</h:panelGrid>
</h:form></center>
</body>
</html>
</f:view>

success.jsp

This page appears when the insert operation is successfully completed.

Replace the contents of the existing success.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:view>
<html>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<head>
<title>Welcome</title>
<link href="mycss.css" rel="stylesheet" type="text/css" />
</head>
<body>
<center><h:form>
<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="SpringFacse" styleClass="style4" />
</f:facet>
</h:column>
</h:dataTable>

</h:panelGrid>

<h:panelGrid width="100%" columns="1" border="0">

<f:verbatim>&nbsp;</f:verbatim>
<h:outputText value=" " />
<h:outputText value=" " />

438 Integrating MyFaces into Spring

Advertising
This manual is related to the following products: