From cd694d64cf1a9be635df6b15168a5950644e5ce2 Mon Sep 17 00:00:00 2001 From: cirakg Date: Mon, 2 Jan 2023 17:00:24 +0100 Subject: Omogucen prikaz istorije korisnika. --- src/main/webapp/pages/history.jsp | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 src/main/webapp/pages/history.jsp (limited to 'src/main/webapp/pages/history.jsp') diff --git a/src/main/webapp/pages/history.jsp b/src/main/webapp/pages/history.jsp new file mode 100644 index 0000000..7e36faf --- /dev/null +++ b/src/main/webapp/pages/history.jsp @@ -0,0 +1,34 @@ +<%@page import="java.util.ArrayList"%> +<%@page import="pokemon.IService"%> +<%@page import="models.History"%> +<%@page import="models.CONSTS"%> +<%@page import="java.rmi.Naming"%> +<%@ page language="java" contentType="text/html; charset=ISO-8859-1" + pageEncoding="ISO-8859-1"%> + <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> + + + + + + +<% + long userId=(long)session.getAttribute("id"); + IService service=(IService)Naming.lookup(CONSTS.rmiUrl); + ArrayList history=service.getUserHistory(userId); + request.setAttribute("history", history); + + +%> + + + + + + + + + +
+ + \ No newline at end of file -- cgit v1.2.3