Index: lams_common/web/index.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_common/web/Attic/index.jsp,v diff -u -r1.1 -r1.2 --- lams_common/web/index.jsp 7 Dec 2004 07:12:41 -0000 1.1 +++ lams_common/web/index.jsp 12 Dec 2004 05:17:37 -0000 1.2 @@ -1,13 +1,414 @@ <%@ page contentType="text/html; charset=iso-8859-1" language="java" %> -<%@ taglib uri="/WEB-INF/jstl/c.tld" prefix="c" %> -<%@ taglib uri="/WEB-INF/jstl/c_rt.tld" prefix="c_rt" %> +<%@ 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" %> + -Welcome :: LAMS - - - -

Hellooo...

+ Welcome :: LAMS + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + + + + + + + + +
+ <%JspRedirectStrategy.welcomePageStatusUpdate(request,response);%> + <%String login = request.getRemoteUser(); + WebApplicationContext ctx = WebApplicationContextUtils.getWebApplicationContext(request.getSession().getServletContext()); + UserManagementService service = (UserManagementService)ctx.getBean("userManagementService"); + 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