%@ page import="java.text.SimpleDateFormat" %> <%@ page import="org.crosswire.xml.XMLRepo"%> <%@ page import="org.crosswire.xml.XMLObject"%> <%@ page import="org.crosswire.community.data.Project"%> <%@ page import="org.crosswire.community.data.User"%> <% String _root = session.getServletContext().getContextPath(); String _action = (String)request.getParameter("action"); if ("logout".equals(_action)) {session.setAttribute("user", null);} User _user = (User)session.getAttribute("user"); if (_user == null || !"scribe".equals(_user.getID())) { out.print("
"); return; } %><% XMLRepo repo = XMLRepo.instance(pageContext); XMLObject[] projects = repo.getObjects(new Project()); XMLObject[] users = repo.getObjects(new User()); for (XMLObject o : projects) { Project p = (Project) o; %> | <%= p.getFullName() %> | <% } %>|
---|---|---|
<%=u.getID()%> | <%=u.getFullName()==null?"":u.getFullName()%> | <% for (XMLObject o2 : projects) { Project p = (Project)o2; %><% } %> |