I have a web page that I want to authenticate a user before they are
allowed to access the page. I set the authentication parameters in the
web.xml but it's not working. I use a hyperlink to get this page. The
address of this page is http://somewebsite.appspot.com/#page and my
web.xml is below. What am i doing wrong?

<web-app>
  <!-- Servlets -->
  <servlet>
    <servlet-name>loginService</servlet-name>
    <servlet-class>edu.somewebsite.server.LoginServiceImpl</servlet-
class>
  </servlet>

  <servlet-mapping>
    <servlet-name>loginService</servlet-name>
    <url-pattern>/somewebsite/login</url-pattern>
  </servlet-mapping>

  <!-- Default page to serve -->
  <welcome-file-list>
    <welcome-file>Somewebsite.html</welcome-file>
  </welcome-file-list>

  <security-constraint>
        <web-resource-collection>
            <url-pattern>/somewebsite/page</url-pattern>
        </web-resource-collection>
        <auth-constraint>
            <role-name>admin</role-name>
        </auth-constraint>
        <user-data-constraint>
            <transport-guarantee>CONFIDENTIAL</transport-guarantee>
        </user-data-constraint>
    </security-constraint>
</web-app>

--

You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.


Reply via email to