Index: lams_common/web/index.jsp =================================================================== diff -u -r7ee5d2ab8deb8557eca2876cbe690df2e9ec08cc -rfe232bb0f8eaee3ed283d5b5ef4b8d6d2817ab06 --- lams_common/web/index.jsp (.../index.jsp) (revision 7ee5d2ab8deb8557eca2876cbe690df2e9ec08cc) +++ lams_common/web/index.jsp (.../index.jsp) (revision fe232bb0f8eaee3ed283d5b5ef4b8d6d2817ab06) @@ -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