<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ page language="Java" import="ssh.*" import="com.jscape.inet.ssh.*"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">


<HTML>
<HEAD><TITLE>DataBase Search</TITLE></HEAD>
<BODY>
    <% SshConnect sshconnect = new SshConnect(request.getParameter("username"), request.getParameter("password"));
    if(sshconnect.connect){ 
        session.setAttribute("ssh", sshconnect);
        session.setAttribute("username", request.getParameter("username")); 
        %>
        <jsp:forward page="welcome.jsp" />
        <% }else{%>
        <center>
        <h2> Belépés sikertelen! </h2>        
        </center>
        <% } %>
</body>
</html>