<%@page contentType="text/html;charset=UTF-8" language="java"
%><%@taglib prefix="jstl" uri="http://java.sun.com/jsp/jstl/core"
%><%@taglib prefix="spring" uri="http://www.springframework.org/tags/form"
%><!doctype html>

<jsp:useBean id="ukazkaForm"
             type="net.sevecek.zakladniwebapp.UkazkaForm"
             scope="request"/>
<jstl:url var="cssLink" value="/css/styly.css"/>    <%-- css setting in any subpage - use ${cssLink} --%>
<jstl:url var="rootLink" value="/"/>                <%-- back to HP from anywhere - use ${rootLink}  --%>
<jstl:url var="imagesLink" value="/images"/>        <%-- images dir setting in any subpage - use ${imagesLink}  --%>

<html lang="cs">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="${cssLink}">
    <link rel="icon" href="${imagesLink}/favicon.png">
    <title>Výchozí webová stránka | Java 2 web </title>
</head>
<body>
    <div class="page">
        <h1>Formulár uživatele</h1>

        <h2>Zadej jméno a příjmení</h2>

        <form method="post">
            <input name="krestniJmeno" value="${ukazkaForm.krestniJmeno}"><spring:errors path="ukazkaForm.krestniJmeno"/>
            <br/>
            <input name="prijmeni" value="${ukazkaForm.prijmeni}"><spring:errors path="ukazkaForm.prijmeni"/>
            <br/>
            <input name="vek" value="${ukazkaForm.vek}"><spring:errors path="ukazkaForm.vek"/>
            <br/>
            <input type="submit" value="Odeslat">
        </form>
    </div>
</body>
</html>
