* javax.servlet.http.HttpServletResponse)
*/
public ActionForward unspecified(ActionMapping mapping, ActionForm form, HttpServletRequest request,
HttpServletResponse response) throws Exception {
ActionForward fwd = super.unspecified(mapping, form, request, response);
ProfilesForm profilesForm = (ProfilesForm) form;
SessionInfo session = this.getSessionInfo(request);
List globalProfiles = null;
List personalProfiles = null;
if (session.getNavigationContext() == SessionInfo.MANAGEMENT_CONSOLE_CONTEXT) {
profilesForm.setProfileScope(Constants.SCOPE_GLOBAL);
globalProfiles = ProfilesFactory.getInstance().getPropertyProfiles(null, true,
session.getUser().getRealm().getResourceId());
} else {
profilesForm.setProfileScope(Constants.SCOPE_PERSONAL);
globalProfiles = ResourceUtil.filterOwned(ResourceUtil.getGrantedResource(
getSessionInfo(request), getResourceType()));
personalProfiles = ResourceUtil.filterResources(session.getUser(), ProfilesFactory.getInstance().getPropertyProfiles(
session.getUser().getPrincipalName(), true, session.getUser().getRealm().getResourceId()), false);
}
PropertyProfile profile = (PropertyProfile) request.getSession().getAttribute(Constants.SELECTED_PROFILE);
if (profile != null) {
profilesForm.initialize(globalProfiles, personalProfiles, request.getSession(), profile.getResourceId());
} else {
profilesForm.initialize(globalProfiles, personalProfiles, request.getSession(), -1);
}
profilesForm.checkSelectedView(request, response);
return fwd;
}