Magazine
 
Integrating JSF, Spring and Hibernate
 

param-name>
<param-value>100k</param-value>
<description>Set the threshold size –
files below this limit are stored in memory,
files above this limit are stored on disk.
Format: 10 - 10 bytes
10k - 10 KB
10m - 10 MB
1g - 1 GB
</description>
</init-param>
</filter>
<filter-mapping>
<filter-name>extensionsFilter
</filter-name>
<url-pattern>*.jsf</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>extensionsFilter</filtername>
<url-pattern>/faces/*</url-pattern>
</filter-mapping>
<servlet>
<servlet-name>Faces Servlet</servletname>
<servletclass>
javax.faces.webapp.FacesServlet</
servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servletname>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.jsp</welcomefile>
</welcome-file-list>
</web-app>

6. Now create faces-config.xml and add
the following code.

<?xml version=”1.0"?>
<!DOCTYPE faces-config PUBLIC “-//Sun
Microsystems, Inc.//DTD JavaServer Faces
Config 1.0//EN” “http://java.sun.com/dtd/
web-facesconfig_1_0.dtd” >

 

 

<faces-config>
<application>
<locale-config>
<default-locale>en
</default-locale>
</locale-config>
<messagebundle>
net.roseindia.web.ui.messages
</message-bundle>
</application>
<managed-bean>
<managed-bean-name>Bean
</managed-bean-name>
<managed-beanclass>
net.roseindia.web.ui.Bean
</managed-bean-class>
<managed-bean-scope>session
</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>CheckValidUser
</managed-bean-name>
<managed-bean-class>
net.roseindia.web.ui.CheckValidUser
</managed-bean-class>
<managed-bean-scope>session
</managed-bean-scope>
</managed-bean>
<navigation-rule>
<from-view-id>/pages/login.jsp
</from-view-id>
<navigation-case>
<from-outcome>reg
</from-outcome>
<to-view-id>/pages/
registration.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>success</from-outcome>
<to-view-id>/pages/
successLogin.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>failure</from-outcome>
<to-view-id>/pages/login.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>

Jan 2008 | Java Jazz Up | 56
previous
index
next
 
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