import java.sql.*; import java.text.*; import java.util.*; import javax.servlet.*; import javax.servlet.http.*; import java.io.*; public class Foorumkasutaja extends HttpServlet{ public void doGet(HttpServletRequest kysimus, HttpServletResponse vastus)throws IOException, ServletException{ String ename=kysimus.getParameter("enimi"); String pname=kysimus.getParameter("pnimi"); String mail=kysimus.getParameter("email"); String name=kysimus.getParameter("nimi"); String passw=kysimus.getParameter("salasona"); vastus.setContentType("text/html"); PrintWriter valja=new PrintWriter(vastus.getWriter()); try{ Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection cn= DriverManager.getConnection("jdbc:odbc:king", "", ""); Statement st=cn.createStatement(); String onkasutaja="SELECT nimi,password FROM Kasutajad;"; ResultSet rs=st.executeQuery(onkasutaja); int a = 0; if (ename.equals("") || pname.equals("") || mail.equals("") || name.equals("") || passw.equals("") ){ valja.println ( "