- long startTime = (new java.util.Date()).getTime();
- long sessionConnectTime=0;
-
- // get the configration - this could conflict if 2 mirs are in the
- // VM maybe? to be checked. -mh
- // -- they would have different servlet contexts, so the following is
- // no problem (br1)
- if(getServletContext().getAttribute("mir.confed") == null) {
- getConfig(req);
- }
-
- session = req.getSession();
-
- if(session.getAttribute("Language")==null){
- if (req.getParameter("language")!=null) {
- setLanguage(session, req.getParameter("language"));
- }
- else {
- setLanguage(session, getAcceptLanguage(req));
- }
- }
-
- if (req.getParameter("language")!=null)
- setLocale(session, new Locale(req.getParameter("language"), "") );