|
Integrating JSF, Spring and Hibernate |
|
Login Successful Page:
successLogin.jsp: This is the code for
above page. This is simple page in which only
welcome string is shown to the user.
<%@ 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" style=”padding-left:10px;
padding-top:10px; “ styleClass=”top_bg”>
<h:dataTable id=”dt1" border=”0" |
|
cellpadding=”0" cellspacing=”0" var=”ab”>
<h:column>
<f:facet name=”header”>
<h:outputText value=”RoseIndia”
styleClass=”style4"/>
</f:facet>
</h:column>
</h:dataTable>
</h:panelGrid>
<h:panelGrid width=”100%” columns=”1"
border=”0" >
<f:verbatim> </f:verbatim>
<h:outputText value=” “/><h:outputText
value=” “/><h:outputText value=” “/>
</h:panelGrid>
<h:outputText value=”Welcome .....”
style=”color:green; font-weight:bold”/>
</h:form>
</center>
</body>
</html>
</f:view>
Registration Page:
This page comes to the user if the user is not
registered with the site. The user clicks the
link named “New User?” and so registration
page is opened. The figure below is
registration page:
|
|
Jan
2008 | Java Jazz Up |61 |
|
|
View All Topics |
All Pages of this Issue |
Pages:
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30,
31,
32,
33,
34,
35,
36,
37,
38,
39,
40,
41,
42,
43,
44,
45,
46,
47,
48,
49,
50,
51,
52,
53 ,
54,
55,
56,
57,
58,
59,
60,
61,
62,
63 ,
64,
65 ,
66 ,
67 ,
68 ,
69 ,
70 ,
71 ,
72 ,
73 ,
74 ,
75 ,
76 ,
77 ,
78 ,
79 ,
80 ,
81 ,
82 ,
83,
84 ,
85 ,
86,
87 ,
88,
89 ,
90 ,
91 ,
92 ,
93 ,
94 ,
95 ,
96 ,
97 ,
98 ,
99 ,
100 ,
101 ,
102 ,
103,
104 ,
105 ,
106,
107,
Download PDF |
|
|
|
|
|
|
|
|
|