From 47e6d5e28afe054381b28004cc21a83a121f1124 Mon Sep 17 00:00:00 2001 From: LO Kam Tao Leo Date: Wed, 2 Feb 2022 10:01:09 +0000 Subject: [PATCH] Get a list of existing projects --- WebContent/index.jsp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/WebContent/index.jsp b/WebContent/index.jsp index 3a029d4..ace6681 100644 --- a/WebContent/index.jsp +++ b/WebContent/index.jsp @@ -25,6 +25,9 @@ }); } }); + $.get('<%=request.getContextPath()%>/projects', function(data){ + console.log("There are "+data.projects.length+" projects"); + }); }