<%@ 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; } %> Community @ CrossWire Bible Society
<% 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; %> <% } %> <% for (XMLObject o : users) { User u = (User)o; %> <% for (XMLObject o2 : projects) { Project p = (Project)o2; %> <% } %> <% } %>
<%= p.getFullName() %>
<%=u.getID()%><%=u.getFullName()==null?"":u.getFullName()%>