<%@ page import="org.crosswire.xml.XMLRepo" %> <%@ page import="org.crosswire.community.data.User" %> <%@ page import="org.crosswire.community.data.Project" %> <% { String pid=request.getParameter("pid"); XMLRepo repo = XMLRepo.instance(pageContext); User user = (User)session.getAttribute("user"); if (user == null || !"scribe".equals(user.getID())) { out.print("No Access."); return; } Project p = null; if (pid != null) { p = (Project)repo.get(new Project(pid)); } if (p == null) p = new Project(); String id = request.getParameter("id"); String fullName = request.getParameter("fullname"); String email = request.getParameter("email"); if (id != null) p.setID(id); if (fullName != null) p.setFullName(fullName); if (email != null) p.setEMail(email); if (p.getID() == null) { out.print("Project ID Required."); return; } repo.save(p); } %> Project Saved.