implemented listing of list members

This commit is contained in:
2022-04-16 23:25:40 +02:00
parent 1282064565
commit f8ff180891
7 changed files with 117 additions and 12 deletions

View File

@@ -33,6 +33,7 @@ public class Web extends HttpServlet {
private static final String REGISTER = "register";
private static final String SUBSCRIBE = "subscribe";
private static final String RELOAD = "reload";
private static final String INSPECT = "inspect";
private static final String IMAP_HOST = "imap_host";
private static final String IMAP_PORT = "imap_port";
private static final String IMAP_USER = "imap_user";
@@ -144,7 +145,6 @@ public class Web extends HttpServlet {
User user = o instanceof User ? (User) o : null;
var data = new HashMap<String,Object>();
if (user != null) data.put(USER,user.safeMap());
var path = req.getPathInfo();
path = (path == null || path.equals("/")) ? INDEX : path.substring(1);
String notes = null;
@@ -183,6 +183,8 @@ public class Web extends HttpServlet {
}
if (user != null){
var list = req.getParameter(LIST);
if (list != null) data.put(LIST,req.getParameter(LIST));
data.put(NOTES,notes);
return loadTemplate(path,data,resp);
}