summaryrefslogtreecommitdiff
path: root/Year_3/TSDWL/WSDL/CountryClient/build/web/list.jsp
blob: e3406b416af421edfebe3bbaa4867870051f770a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<%-- 
    Document   : list
    Created on : Jan 19, 2022, 9:57:20 PM
    Author     : dcariotti
--%>

<%@page import="org.oorsprong.websamples.TCountryCodeAndName"%>
<%@page import="java.util.List"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Countries list</title>
    </head>
    <body>
        <h1>Countries list</h1>
        <% List<TCountryCodeAndName> languages = (List<TCountryCodeAndName>) request.getAttribute("countries"); %>
        <% for (TCountryCodeAndName language : languages) { %>
        <p><%= language.getSName()%> <a href="/CountryClient/SearchCapital?iso=<%= language.getSISOCode() %>">Search capital</a></p>
        <% } %>
        
    </body>
</html>