Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tapestry Wiki" for change notification.
The following page has been changed by HugoPalma: http://wiki.apache.org/tapestry/Tapestry5HowToIntegrateWithAcegiAndLDAP ------------------------------------------------------------------------------ == Setting up == - The only additional dependency you'll need is the tapestry-acegi integration module that you can find [http://www.localhost.nu/java/tapestry5-acegi here]. At the time of this writing, you'll need to use the 1.1.1-SNAPSHOT release of the module as the final 1.1.1 version hasn't been released yet. If your using maven you can get this version by adding the following to your POM: + The only additional dependency you'll need is the tapestry-spring-security integration module that you can find [http://www.localhost.nu/java/tapestry-spring-security here]. If your using maven you can download it by adding the following to your POM: {{{ <dependency> - <groupId>nu.localhost.tapestry</groupId> + <groupId>nu.localhost.tapestry</groupId> - <artifactId>tapestry5-acegi</artifactId> + <artifactId>tapestry-spring-security</artifactId> + <version>2.0.0</version> + </dependency> + + <dependency> + <groupId>org.springframework.ldap</groupId> + <artifactId>spring-ldap</artifactId> - <version>1.1.1-SNAPSHOT</version> + <version>1.2.1</version> </dependency> ...and... <repository> <id>localhost.nu</id> - <url>http://www.localhost.nu/java/mvn-snapshot</url> + <url>http://www.localhost.nu/java/mvn</url> </repository> }}} == Configuring your application == - First you'll need to add something to the Tapestry filter mapping in your ''web.xml'' file. This is because by default when you specify a filter mapping the filter will actually only be invoked when actual request are made to the configured URL, but not when the [http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/RequestDispatcher.html RequestDispatcher] forwards a request to that URL. Acegi uses FORWARD so you'll have to make you filter mapping look something like this: + First you'll need to add something to the Tapestry filter mapping in your ''web.xml'' file. This is because by default when you specify a filter mapping the filter will actually only be invoked when actual request are made to the configured URL, but not when the [http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/RequestDispatcher.html RequestDispatcher] forwards a request to that URL. Spring Security uses FORWARD so you'll have to make you filter mapping look something like this: {{{ <filter-mapping> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
