String [] userorgarray = (String[]) userData.get(RequestUtil.EDU_ORG_LEGAL_NAME);
String [] userorgarray = (String[]) userData.get(RequestUtil.ORGANIZATION_NAME);
    public final void doGet(final HttpServletRequest request, final HttpServletResponse response)            throws ServletException, IOException {        if (getAttribs() == null) throw new IOException("feideattribs.xml not parsed");        String ticketId = request.getParameter("moriaID");        if (request.getParameter("logout") != null) {            log.logInfo("Logout received");            final RequestDispatcher rd = getServletContext().getNamedDispatcher("Logout");            rd.forward(request, response);            return;        }        /*         * Makes a Properties object named config, which gets the config         * from the getConfig() method         */        Properties config;        try {            config = getConfig();        } catch (IllegalStateException e) {            config = null;        }        /* Resource bundle. */        String langFromCookie = null;        if (config != null && request.getCookies() != null) {            langFromCookie = RequestUtil.getCookieValue((String) config.get(RequestUtil.PROP_COOKIE_LANG), request.getCookies());        }        /*Use default login language as default for the information servlet */        final ResourceBundle bundle = RequestUtil.getBundle(                RequestUtil.BUNDLE_INFORMATIONSERVLET,                request.getParameter(RequestUtil.PARAM_LANG), langFromCookie, null,                request.getHeader("Accept-Language"), (String) config.get(RequestUtil.PROP_LOGIN_DEFAULT_LANGUAGE));        request.setAttribute("bundle", bundle);        String urlPrefix = (String)config.get(RequestUtil.PROP_INFORMATION_URL_PREFIX);        if ((urlPrefix == null) || (urlPrefix.equals(""))) {            log.logCritical("Required configuration property PROP_INFORMATION_FEIDEATTRIBS_XML is not set");            throw new IllegalStateException();        } else {            request.setAttribute("urlPrefix", urlPrefix);        }               // update cookie if language has changed        boolean changelanguage = false;        if (request.getParameter(RequestUtil.PARAM_LANG) != null) {            response.addCookie(RequestUtil.createCookie(                    (String) config.get(RequestUtil.PROP_COOKIE_LANG),                    request.getParameter(RequestUtil.PARAM_LANG),                    new Integer((String) config.get(RequestUtil.PROP_COOKIE_LANG_TTL)).intValue()));            changelanguage = true;        }        Map userData = null;        // to change language, we have to get a new ticket from the LoginServlet        if (ticketId != null && !changelanguage) {            try {                userData = MoriaController.getUserAttributes(ticketId, PRINCIPAL);            } catch (AuthorizationException e) {                log.logCritical("AuthorizationException");                throw new ServletException(e);            } catch (IllegalInputException e) {                log.logCritical("IllegalInputException");                throw new ServletException(e);            } catch (UnknownTicketException e) {                log.logCritical("UnknownTicketException");                throw new ServletException(e);            } catch (InoperableStateException e) {                log.logCritical("InoperableStateException");                throw new ServletException(e);            }        }        if (userData != null) {            // need userorg as an attribute in the JSP to be able to print            // instructions on where to update the optional or mandatory info            String [] userorgarray = (String[]) userData.get(RequestUtil.EDU_ORG_LEGAL_NAME);            String userorg = bundle.getString("unknown_userorg");            if (userorgarray != null && userorgarray.length > 0) {                userorg = userorgarray[0];            }            request.setAttribute("userorg", userorg);            // Pictures are stored for later use in the JSP            String[] picarr = (String[]) userData.get(new String("jpegPhoto"));            if (picarr != null && picarr.length > 0) {                request.setAttribute("picture", picarr);            }                        Vector tabledata = printTableToVector(userData, bundle);            request.setAttribute("tabledata", tabledata);            /* Configured values */            request.setAttribute(RequestUtil.ATTR_ORGANIZATIONS,                                 RequestUtil.parseConfig(config, RequestUtil.PROP_ORG, bundle.getLocale().getLanguage()));            request.setAttribute(RequestUtil.ATTR_LANGUAGES,                                 RequestUtil.parseConfig(config, RequestUtil.PROP_LANGUAGE, RequestUtil.PROP_COMMON));            request.setAttribute(RequestUtil.ATTR_BASE_URL,                                 config.getProperty(RequestUtil.PROP_INFORMATION_URL_PREFIX) + "?"                                 + config.getProperty(RequestUtil.PROP_LOGIN_TICKET_PARAM) + "=" + ticketId);            request.setAttribute(RequestUtil.ATTR_SELECTED_LANG, bundle.getLocale());            request.setAttribute(RequestUtil.PIC_LINK, config.getProperty(RequestUtil.PIC_LINK));            // only print language menu if SSO is enabled            final String denySSOChoice = RequestUtil.getCookieValue(config.getProperty(RequestUtil.PROP_COOKIE_DENYSSO), request.getCookies());            final boolean denySSO;            if (denySSOChoice == null || denySSOChoice.equals("false") || denySSOChoice.equals("")) {                // Allow SSO.                request.setAttribute(RequestUtil.ATTR_SELECTED_DENYSSO, new Boolean(false));                denySSO = false;            } else {                // Deny SSO.                request.setAttribute(RequestUtil.ATTR_SELECTED_DENYSSO, new Boolean(true));                denySSO = true;            }            // print the table in the JSP            final RequestDispatcher rd = getServletContext().getNamedDispatcher("Information.JSP");            rd.forward(request, response);        } else {            // call doPost() to get the user attributes from the Controller            doPost(request, response);        }    }