Hay, i am new on the stripes. I intent to implement security like Securing
Stripes With ACLs or Security
Interceptor for custom authorization
(http://www.stripesframework.org/pages/viewpage.action?pageId=1114194)
with DynamicMappingFilter and dont work for me. Please help me
implement one of this security with DynamicMappingFilte.
my web.xml is
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<context-param>
<param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name>
<param-value>StripesResources</param-value>
</context-param>
<filter>
<display-name>Stripes Filter</display-name>
<filter-name>StripesSecurityFilter</filter-name>
<filter-class>net.sourceforge.stripes.security.controller.StripesSecurityFilter</filter-class>
<init-param>
<param-name>SecurityManager.Class</param-name>
<param-value>com.security.WebSecurityManager</param-value>
</init-param>
<init-param>
<!-- Set the page that gets forwarded to after a user has been
deemed unauthorized -->
<param-name>UnauthorizedResolutionURL</param-name>
<param-value>jsp/errors/unauthorized.jsp</param-value>
</init-param>
<init-param>
<param-name>ActionResolver.Packages</param-name>
<param-value>com.actions</param-value>
</init-param>
<init-param>
<param-name>Extension.Packages</param-name>
<param-value>
org.stripesbook.reload.extensions,
com.extensions
</param-value>
</init-param>
</filter>
<filter>
<filter-name>DynamicMappingFilter</filter-name>
<filter-class>
net.sourceforge.stripes.controller.DynamicMappingFilter
</filter-class>
</filter>
<filter-mapping>
<filter-name>DynamicMappingFilter</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
<dispatcher>INCLUDE</dispatcher>
</filter-mapping>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
</web-app>
And then i intent use it like
@Secure(roles = "MANAGE")
@UrlBinding("/Home/{$event}")
public class HomeActionBean extends BaseActionBean{
...
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development