I have the following in the web.xml
file:
<security-constraint>
<web-resource-collection> <web-resource-name>Manage Albums</web-resource-name> <url-pattern>/secure/manageAlbums/*</url-pattern> <http-method>HEAD</http-method> <http-method>GET</http-method> <http-method>POST</http-method> <http-method>PUT</http-method> <http-method>DELETE</http-method> </web-resource-collection> <auth-constraint> <role-name>AlbumManager</role-name> </auth-constraint> </security-constraint> This is my login file:
<form method="POST"
action="">
Username: <input type="text" name="j_username"><br> Password: <input type="password" name="j_password"><br> <input type="submit" name="Log In" value="Log In"><br> </form> If I click on the following link: <a
href="">Secure manageAlbums
Page</a>
It brings me to my login page and works as it
should.
If I click on the following link: <a
href="">Secure manageAlbums Page
Action</a>
With the following in the actions.xml
file:
<action
name="test.SecurityTest"
alias="SecurityTest">
<view name="success">/secure/manageAlbums/default.jsp</view> </action> The above gives me a "The page cannot be displayed
error". Http 500 error.
Any ideas? Is there a better
way?
|