Re: How to do authentication in different way for different action classes

2003-04-04 Thread Max Cooper
That should work fine. /Content/*.do will still be considered an exact pattern, and will be matched before the *.do extension pattern (no matter what order they appear in the web.xml file). Only stuff that doesn't match /Content/*.do but does match *.do will be secured in the example. You could

RE: How to do authentication in different way for different action classes

2003-04-04 Thread Rajendra Kadam
Hi Max, Thanks for a explaining this in great detail. Still I'm not able to solve my issue. Here is problem with more description : My current web.xml looks like : security-constraint web-resource-collection web-resource-nameCCO/web-resource-name

Re: How to do authentication in different way for different action classes

2003-04-04 Thread Max Cooper
Well, since it won't be protected under any of the other url-patterns, you could simply remove this security-constraint: security-constraint web-resource-collection web-resource-namePublic Resources/web-resource-name url-pattern/pim/welcome.do/url-pattern

Re: How to do authentication in different way for different action classes

2003-04-03 Thread Max Cooper
You should keep *.do for your servlet mapping. Assuming you are using container-managed security, you can do something like this for your security constraints: security-constraint web-resource-collection web-resource-nameSecured Resources/web-resource-name

RE: How to do authentication in different way for different action classes

2003-04-03 Thread Mick . Knutson
Would this be valid then: security-constraint web-resource-collection web-resource-nameSecured Resources/web-resource-name url-pattern*.do/url-pattern /web-resource-collection auth-constraint role-namestrutsuser/role-name /auth-constraint