aboutsummaryrefslogtreecommitdiff
path: root/src/main/webapp/index.jsp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/webapp/index.jsp')
-rw-r--r--src/main/webapp/index.jsp14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/main/webapp/index.jsp b/src/main/webapp/index.jsp
index 9e758a4..68385f6 100644
--- a/src/main/webapp/index.jsp
+++ b/src/main/webapp/index.jsp
@@ -1,6 +1,9 @@
+<%@page import="java.util.ArrayList"%>
+<%@page import="models.Monster"%>
+<%@page import="models.User"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
- <%@page import="pokemon.Database"%>
+ <%@page import="database.Database"%>
<!DOCTYPE html>
<% %>
<html>
@@ -11,9 +14,14 @@
<body>
<%
-Database d=Database.getInstance();
+Database db=Database.getInstance();
+
+ArrayList<Monster> m=db.getMonsters();
+
+for(Monster mon:m){
+ out.println(mon+"<br>");
+}
-out.print(d.getUsername());
%>