Proteccion area aplicacion con security-constraint

"estaisaderezados" <[email protected]>
Newsgroups gmane.comp.java.javaspain
Message-ID <[email protected]>
Tengo una aplicación en struts, y quiero proteger con el web.xml, un
solo fichero jsp de mi aplicación, ¿es posible?

El fichero que quiero proteger es inscripcion.jsp, y esta ubicado en
el directorio raiz.(WebContent)

Estoy tratando de hacerlo de esta manera:

<security-constraint>
<display-name>SecurityConstraint</display-name>
<web-resource-collection>
<web-resource-name>Acceso retringido a la inscripcion</web-resource-name>
<url-pattern>/inscripcion.jsp</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>nombrerole_tomcat-users.xml</role-name>
</auth-constraint>
<user-data-constraint>
<transport-guarantee>NONE</transport-guarantee>
</user-data-constraint>
</security-constraint>
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>Admin Application</realm-name>
</login-config>
<security-role>
<role-name>nombrerole_tomcat-users.xml</role-name>
</security-role>

Pero me da un error 401, si me pueden ayudar lo agradeceria.

Un saludo,
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.