salut ,
j`aimerais savoir est il possible de rediriger l`utilisateur selon son role a un page bien define grâce spring security , c`est a dire si l`utilisateur qui va se connecter , selon son rôle une page sera affichée selon son rôle .
j`ai utilisé spring security mais cette idée ne fonctionne pas ?? j`au un fichier redirect.jsp et je l`ai définie dans un fichier web.xml
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
 
    <welcome-file-list>
        <welcome-file>redirect.jsp</welcome-file>
    </welcome-file-list>
et voici un exemple de spring-security
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
 
		<security:http >
	<security:form-login login-page="/Authentification.htm" authentication-failure-url="/accessDenied.htm?login_error=true" />
	<security:intercept-url pattern="/acceuil.htm" access="ROLE_ADMIN,ROLE_USER"  />
	<security:intercept-url pattern="/employees/list.htm" access="ROLE_ADMIN"  />
 
 
	</security:http>
	<security:authentication-provider>
		<security:password-encoder hash="md5" >
			<security:salt-source system-wide="MySalt"/>
		</security:password-encoder>
 
		<security:jdbc-user-service data-source-ref="dataSource"
authorities-by-username-query="select username, authority from employees where username =?"
users-by-username-query="select username, password, enabled from employees where username =?"/>
	</security:authentication-provider>
 
	<security:global-method-security secured-annotations="enabled">
		<security:protect-pointcut
			expression="execution(* com.springsource..*Service.*(..))"
			access="ROLE_USER" />
	</security:global-method-security>
qlq 1 a une idée ??