Index: lams_common/web/index.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_common/web/Attic/index.jsp,v diff -u -r1.4 -r1.5 --- lams_common/web/index.jsp 14 Dec 2004 01:04:51 -0000 1.4 +++ lams_common/web/index.jsp 10 Jan 2005 02:39:00 -0000 1.5 @@ -1,415 +1,21 @@ -<%@ page contentType="text/html; charset=iso-8859-1" language="java" %> -<%@ page import="java.util.List" %> -<%@ page import="org.springframework.web.context.support.WebApplicationContextUtils" %> -<%@ page import="org.springframework.web.context.WebApplicationContext" %> -<%@ page import="com.lamsinternational.lams.util.JspRedirectStrategy" %> -<%@ page import="com.lamsinternational.lams.usermanagement.service.UserManagementService" %> -<%@ page import="com.lamsinternational.lams.usermanagement.*" %> -<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %> -<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c_rt" %> -<%@ page session="true" %> +<%@ taglib uri="/WEB-INF/struts/struts-tiles.tld" prefix="tiles" %> +<%@ page import="com.lamsinternational.lams.security.JspRedirectStrategy" %> +<%@ page import="com.lamsinternational.lams.web.HttpSessionManager" %> - +<%JspRedirectStrategy.welcomePageStatusUpdate(request,response);%> +<%HttpSessionManager.getInstance().updateHttpSessionByLogin(request.getSession(),request.getRemoteUser()); %> + - Welcome :: LAMS - - - - - - + + - - - - - - - - - - - -
- - - -
- - - - - - - - - - -
- <%JspRedirectStrategy.welcomePageStatusUpdate(request,response);%> - <%String login = request.getRemoteUser(); - WebApplicationContext ctx = WebApplicationContextUtils.getWebApplicationContext(request.getSession().getServletContext()); - UserManagementService service = (UserManagementService)ctx.getBean("userManagementServiceTarget"); - User user = service.getUserByLogin(login); - if ( login==null ){%> -

An error has occured. You have tried to log - in but we didn't get the username. Try closing your browser and starting - again.

- <%}%> - - - - - - - - -
-

Welcome <%=user.getFirstName()%>

-

You are logged into LAMS.Please choose a workspace from the buttons on the right.

- -
- - <%List list = service.getOrganisationsForUserByRole(user,Role.SYSADMIN); - if(list.size()>0){%> - - - - - <%}%> - <%list = service.getOrganisationsForUserByRole(user,Role.ADMIN); - if(list.size()>0){%> - - - - - <%}%> - <%list = service.getOrganisationsForUserByRole(user,Role.STAFF); - if(list.size()>0){%> - - - - - <%}%> - <%list = service.getOrganisationsForUserByRole(user,Role.AUTHOR); - if(list.size()>0){%> - - - - - <%}%> - <%list = service.getOrganisationsForUserByRole(user,Role.LEARNER); - if(list.size()>0){%> - - - - - <%}%> -
- - - -
- - - -
- - - -
- - - -
- - - -
-
-
- - - - - - -
- © 2002-2004 LAMS Foundation. - - - This copy of LAMS™ is authorised for use by the registered users only. - Version 1.1
-
-
- -
- - + + + + + + + \ No newline at end of file