public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;

    try {
      response.setContentType("text/html;charset=UTF-8");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;
      _jspx_resourceInjector = (org.glassfish.jsp.api.ResourceInjector) application.getAttribute("com.sun.appserv.jsp.resource.injector");

      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("        <html>\n");
      out.write("    <head>\n");
      out.write("        <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n");
      out.write("        <link rel=\"stylesheet\" type=\"text/css\" href=\"labaratorija.css\">\n");
      out.write("        <title>Logovanje sefa labaratorije</title>\n");
      out.write("    </head>\n");
      out.write("    <body>\n");
      out.write("        <div class=\"header\">\n");
      out.write("            hggghffhhf\n");
      out.write("            </div>\n");
      out.write("        <div class=\"telo\">\n");
      out.write("       <p align=\"center\"> Pritisnite Dugme da vidite aktikle koji se nalaze u vasoj labaratoriji\n");
      out.write("        <form name=\"forma\" action=\"logovanjeSefaLabaratorije.jsp\" method=\"post\">\n");
      out.write("            \n");
      out.write("            <br>\n");
      out.write("            <input type=\"submit\" name=\"dugme1\" value=\"prikazivanje Artikla u vasoj labaratoriji\">\n");
      out.write("            </form>\n");
      out.write("    \n");
      out.write("        <form name=\"forma2\" action=\"PretrazivanjePoVremenu\" method=\"post\">\n");
      out.write("         <p align=\"center\">    Unesite datum nabavke:<p>\n");
      out.write("           \n");
      out.write("         \n");
      out.write("          <p align=\"center\">  od <input type=\"text\" name=\"datum1\" value=\"yyyy-MM-dd 00:00:00\"> do <input type=\"text\" name=\"datum2\" value=\"yyyy-MM-dd 00:00:00\">\n");
      out.write("           \n");
      out.write("          \n");
      out.write("            <p align=\"center\"><input type=\"submit\" value=\"Pretrazi artikle po vremenu\">\n");
      out.write("            \n");
      out.write("        </form>\n");
      out.write("    \n");
      out.write("        <form name=\"forma1\" action=\"PrikazivanjeArtika\" method=\"post\">\n");
      out.write("            ");

                if(request.getParameter("dugme1")!=null){
             String ime=(String)session.getAttribute("ime");
            
             
            
             
            Connection con=(Connection)Konekcija.konekcija();
            Statement st=null;
                    ResultSet rs=null;
                    
                     Statement st9=null;
             ResultSet rs9=null;
             st9=con.createStatement();
             rs9=st9.executeQuery("select * from labaratorija where SefLab='"+ime+"'");
             while(rs9.next()){
             String nazivLab=rs9.getString(1);
             
             
                    st=con.createStatement();
                    rs=st.executeQuery("select * from artikal where Labaratorija='"+nazivLab+"'");
                    out.println("<table align='center'>");
                    while(rs.next()){
                        String naziv1=rs.getString(1);
                       
                        
               out.println("<tr>");
                    out.println("<td>");
                    
                    out.println(naziv1);
                    
                    
                      out.println("<td><input type='checkbox' name='check' value="+naziv1+"></td>");

                     
                    out.println("</td>");
                    out.println("</tr>");
                    
                            
                    } 
                  out.println("</table>");
                }
                }
                   
      out.write("\n");
      out.write("            \n");
      out.write("       \n");
      out.write("            <br>\n");
      out.write("                <input type=\"submit\" value=\"prikazi podatke\">\n");
      out.write("             </form>\n");
      out.write("            <br>\n");
      out.write("            <h1 align=\"center\">Popunite zahtev za nabavku Novih artikla</h1>\n");
      out.write("          \n");
      out.write("            \n");
      out.write("            <form name=\"artikli\" action=\"zahtevNovihArtikla\" method=\"post\">\n");
      out.write("                <table border=\"1\" align=\"center\">\n");
      out.write("                    <tr>\n");
      out.write("                        <td>Izaberite vrstu opreme</td>\n");
      out.write("                        <td><select name=\"vrsta\">\n");
      out.write("                                <option value=\"osnovna\">Osnovna                       \n");
      out.write("                                <option value=\"pomocna\">Pomocna\n");
      out.write("                        </select></td>\n");
      out.write("                            \n");
      out.write("                        </tr>\n");
      out.write("                        <tr>\n");
      out.write("                            <td>Naziv</td>\n");
      out.write("                            <td><input type=\"text\" name=\"naziv\"></td>\n");
      out.write("                            </tr>\n");
      out.write("                            <tr>\n");
      out.write("                                <td>Kolicina</td>\n");
      out.write("                                <td><input type=\"text\" name=\"kolicina\"></td>\n");
      out.write("                                </tr>\n");
      out.write("                                <tr>\n");
      out.write("                                    <td>Labaratorija</td>\n");
      out.write("                                    <td><input type=\"text\" name=\"labaratorija\"></td>\n");
      out.write("                                    </tr>\n");
      out.write("                        <tr>\n");
      out.write("                            <td colspan=\"2\"><input type=\"submit\" value=\"podnesite zahtev\"></td>\n");
      out.write("                        \n");
      out.write("                        </tr>\n");
      out.write("                </table>\n");
      out.write("            </form>\n");
      out.write("\n");
      out.write("           \n");
      out.write("            <form name=\"forma4\" action=\"logovanjeSefaLabaratorije.jsp\" method=\"post\">\n");
      out.write("                <table align=\"center\">\n");
      out.write("                    <tr><td>Upisati naziv opreme za koji zelite da promenite status</td>\n");
      out.write("                        <td><input type=\"text\" name=\"naziv2\" size=\"8\"></td></tr>\n");
      out.write("                    <tr>\n");
      out.write("                        <td><input type=\"submit\" value=\"pretrazi\"></td>\n");
      out.write("                        </tr>\n");
      out.write("                        </table>\n");
      out.write("                </form>\n");
      out.write("            <form name=\"forma5\" action=\"PromenaStatusaOpreme\" method=\"post\">\n");
      out.write("                     ");

                String naziv2=request.getParameter("naziv2");
            Connection con3=(Connection)Konekcija.konekcija();
            Statement st2=null;
                    ResultSet rs2=null;
                    
                    st2=con3.createStatement();
                    rs2=st2.executeQuery("select * from artikal where naziv='"+naziv2+"'");
                    out.println("<table align='center'>");
                    while(rs2.next()){
                        String naziv1=rs2.getString(1);
                       session.setAttribute("naziv1", naziv1);
                        
               out.println("<tr>");
                    out.println("<td>");
                    
                    out.println("<font color='blue'>");
                    out.println(naziv1);
                    out.println("</font>");
                    out.println("-Izaberitr status opreme");
                      out.println("<select name='status'>");
                      out.println("<option value='ispravno'>Ispravna");
                      out.println("<option value='neispravno'>Neispravna");
                      out.println("<option value='servis'>Servis");
                      out.println("<option value='otpisivanje'>Otpisivanje");
                      out.println("</select>");
                    out.println("<input type='submit' value='Promeni status'>");
                     
                    out.println("</td>");
                    out.println("</tr>");
                    
                            
                    } 
                  out.println("</table>");
                   
      out.write("\n");
      out.write("                \n");
      out.write("            </form>\n");
      out.write("\n");
      out.write("            <a href=\"index_1.html\">Log out</a>\n");
      out.write("        </div>      \n");
      out.write("                   \n");
      out.write("                   <div class=\"footer\">\n");
      out.write("                       \n");
      out.write("                   </div>\n");
      out.write("    </body>\n");
      out.write("</html>\n");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          out.clearBuffer();
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
        else throw new ServletException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }