Are you testing your action with the action mapping you showed? Remember, the
roles are tied to a mapping, not the action class.
Vinicius Carvalho <[EMAIL PROTECTED]> wrote: Well I tried this but did not work:
roles="ADMIN,MANAGER"
type="com.acme.InvoiceList" name="invoiceForm" input="/
Well I tried this but did not work:
And on my action:
String roles[] = mapping.getRoleNames();
Problem is that roles has a zero size array.
What have I done wrong here?
Best Regards
On 6/28/06, Paul Benedict <[EMAIL PROTE
Vinicius,
#1: Do you have any kind of a user object? If so, use the
HttpServletRequestWrapper to wrap it up in the current request (via a filter),
and then delegate its isUserInRole method to the user.
#2: Each action mapping has a "role" attribute; it contains a comma delimited
list of roles
3 matches
Mail list logo