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 ++++++++++++++++++++++++++++++++++ src/main/webapp/pages/userIndex.jsp | 5 +++++ 2 files changed, 39 insertions(+) create mode 100644 src/main/webapp/pages/history.jsp (limited to 'src/main/webapp/pages') 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 diff --git a/src/main/webapp/pages/userIndex.jsp b/src/main/webapp/pages/userIndex.jsp index b06d966..57e4a16 100644 --- a/src/main/webapp/pages/userIndex.jsp +++ b/src/main/webapp/pages/userIndex.jsp @@ -89,5 +89,10 @@ Trenutno izabran pokemon: +


+

Istorija

+ + + \ No newline at end of file -- cgit v1.2.3