<%-- 
    Document   : formbeanconfirm
    Created on : 2011-06-09, 19:45:46
    Author     : Pawel
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<jsp:useBean id="user" class="test.UserInfoBean" scope="session"/>
<jsp:setProperty name="user" property="*"/> 
<%
if (!user.sprawdz())
{
    String queryString = "?";
    queryString += user.getErrorMsg("pesel").equals("") ? "" : "peselmsg="+user.getErrorMsg("pesel")+"&"    ;
    queryString += user.getErrorMsg("email").equals("") ? "" : "emailmsg="+user.getErrorMsg("email");
    response.sendRedirect("formbean.jsp"+queryString);
}
%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <h1>Formularz</h1>
        
        <p>Dane zapisane. Zobacz, co zapisałeś: <a href="formbeanshow.jsp">link</a>.</p>
    </body>
</html>
