Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <security:http auto-config="true" access-denied-page="/login/loginerror.jspx">
- <security:intercept-url pattern="/restricted/**" access="ROLE_SU"/>
- <security:form-login login-page="/login/login.jspx"
- default-target-url="/restricted/equipment.jspx"/>
- <security:logout logout-success-url="/logoutSuccess.jspx"/>
- </security:http>
- <security:authentication-provider user-service-ref="userDetailsService"/>
- <bean id="userDetailsService" class="com.teach.security.UserDetailsServiceImpl">
- <property name="rolesDao" ref="RolesDAO"/>
- </bean>
- public void login()
- {
- FacesContext.getCurrentInstance().getExternalConte xt().redirect("/spring- authentication/j_spring_security_check?j_username=" + userId + "&j_password=" + password);
- }
Add Comment
Please, Sign In to add comment