web.xml - Multiple url-patterns each with its own struts-config file -
i working on struts 1.3 web application has 2 interfaces 1 regular staff , probationary staff. these can looked @ 2 modules having interfaces in common , others different.
instead of putting authorization rules on application, wondering if can control access resources using multiple configuration files. need implement following behaviour:
for urls /application/regular/* application should use struts-regular-config.xml file work out mapping. urls /application/probationary/* should user struts-prob-config.xml file work out mapping.
so need action servlet work 2 different config files 1 each 2 url-patterns have. how can done? many in advance.
try approach instead of creating different/multiple url pattern , urls different users.
- use same url users.divide projects modules , sub modules using ajax tags.
- create 1 new class rolepermission define roles , permission different users. eg, whether user has access module x or not.
also use parameter/fields roleid, rolename,isallowed,securitygroup defining rolespermission.
Comments
Post a Comment