geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From artoo <Artur_Harasim...@porta.com.pl>
Subject Re: Struts2 on Geronimo: problem with roles
Date Tue, 06 Jan 2009 09:28:33 GMT


djencks wrote:
> 
> Could you show us your web.xml and indicate the urls you are using to  
> test this with?
> 
> thanks
> david jencks
> 

Hi, 
sorry for long time waiting.
this is my web.xml file:

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID"
version="2.5">
  <display-name>warKontraktZam</display-name>
  <welcome-file-list>
    <welcome-file>index.html</welcome-file>
    <welcome-file>index.htm</welcome-file>
    <welcome-file>index.jsp</welcome-file>
    <welcome-file>default.html</welcome-file>
    <welcome-file>default.htm</welcome-file>
    <welcome-file>default.jsp</welcome-file>
  </welcome-file-list>
  <filter>
    <filter-name>struts2</filter-name>
   
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
  </filter>
  <filter-mapping>
    <filter-name>struts2</filter-name>
    <url-pattern>*.action</url-pattern>
  </filter-mapping>
  <listener>
   
<listener-class>org.apache.struts2.tiles.StrutsTilesListener</listener-class>
  </listener>
  <security-constraint>
    <web-resource-collection>
      <web-resource-name>unProtected</web-resource-name>
      <url-pattern>/images/*</url-pattern>
      <url-pattern>/css/*</url-pattern>
      <url-pattern>/Login</url-pattern>
      <url-pattern>/Logout</url-pattern>
    </web-resource-collection>
  </security-constraint>
  <security-constraint>
    <web-resource-collection>
      <web-resource-name>Protected</web-resource-name>
      <url-pattern>/*</url-pattern>
      <http-method>GET</http-method>
      <http-method>POST</http-method>
      <http-method>PUT</http-method>
    </web-resource-collection>
    <auth-constraint>
      <role-name>KontraktZam</role-name>
    </auth-constraint>
  </security-constraint>
  <login-config>
    <auth-method>BASIC</auth-method>
    <form-login-config>
      <form-login-page>/WEB-INF/jsp/login.jsp</form-login-page>
      <form-error-page>/WEB-INF/jsp/login.jsp?error=1</form-error-page>
    </form-login-config>
  </login-config>
  <security-role>
    <role-name>KontraktZam</role-name>
  </security-role>
</web-app>

-- 
View this message in context: http://www.nabble.com/Struts2-on-Geronimo%3A-problem-with-roles-tp21073777s134p21307172.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Mime
View raw message