Program doesn't execute correctly <p>Sorry for all the long code...BUT...In order for me to work with my program and solve some issues, I need it to actually work. I'm working with a .html and .jsp files to insert data to MYSQL database. Can anybody tell me why I get this: This page cannot be display, make sure address http: //localhost:8081 is correct... ??? Please help, thanks!</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;meta charset="ISO-8859-1"&gt; &lt;title&gt;Help Desk Ticket System&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;script language ="JAVASCRIPT"&gt; function check(form) { if(form.equipment.value =="") { alert("Please enter equipment type") form.equipment.focus() return false } if(form.problem.value =="") { alert("Please enter a description before hitting submit") form.problem.focus() return false } if(form.empid.value =="") { alert("Please enter employee ID.") form.empid.focus() return false } if(form.empfname.value =="") { alert("Please enter a first name.") form.empfname.focus() return false } if(form.emplname.value =="") { alert("Please enter a last name.") form.emplname.focus() return false } if(form.empemail.value =="") { alert("Please enter your email") form.empemail.focus() return false } if(form.empphone.value =="") { alert("Please enter a your phone number.") form.empphone.focus() return false } if(form.empcellphone.value =="") { value = "n/a" } selected = form.empdept.selectedIndex if (selected&lt;=0) { alert("Please choose the department") form.empdept.focus() return false } selected = form.technician.selectedIndex if (selected&lt;=0) { alert("Please choose a technician") form.technician.focus() return false } alert("Your ticket has been created.") return true } &lt;/script&gt; &lt;FORM method="post" action="http://localhost:8081/finalproject/help.jsp" onsubmit="return check(this)"&gt; &lt;h2&gt; Please fill out the following details for your ticket &lt;/h2&gt; &lt;br/&gt; Equipment: &lt;input type="text" name="equipment" /&gt;&lt;br/&gt; &lt;br/&gt; Description of the problem: &lt;br/&gt; &lt;textarea name="problem" rows="4" cols="50"&gt;&lt;/textarea&gt;&lt;br/&gt; &lt;br/&gt; &lt;hr&gt; &lt;br/&gt; Employee ID: &lt;input type = "text" name="empid" /&gt;&lt;br/&gt; Employee First name: &lt;input type = "text" name="empfname" /&gt;&lt;br/&gt; Employee Last name: &lt;input type = "text" name="emplname" /&gt;&lt;br/&gt; Employee email: &lt;input type = "text" name="empemail" /&gt;&lt;br/&gt; employee Phone: &lt;input type = "text" name="empphone" /&gt;&lt;br/&gt; employee cell Phone: &lt;input type = "text" name="empcellphone" /&gt;&lt;br/&gt; &lt;br/&gt; Employee Department: &lt;br/&gt; &lt;select name = "empdept"&gt; &lt;option&gt; Please select the department&lt;/option&gt; &lt;option&gt;Marketing&lt;/option&gt; &lt;option&gt;Human Resources&lt;/option&gt; &lt;option&gt;Operations&lt;/option&gt; &lt;option&gt;Legal&lt;/option&gt; &lt;option&gt;Accounting&lt;/option&gt; &lt;option&gt;Production&lt;/option&gt; &lt;/select&gt; &lt;hr&gt; &lt;br/&gt; Choose Technician: &lt;select name ="technician"&gt; &lt;option value="0"&gt;Select&lt;/option&gt; &lt;option value="12345"&gt;Sierra: Applications &lt;/option&gt; &lt;option value="12344"&gt;Michael: Network&lt;/option&gt; &lt;option value="12343"&gt;Greg: Phones&lt;/option&gt; &lt;option value="12342"&gt;Aaron: Hardware&lt;/option&gt; &lt;option value="12341"&gt;Phil: Database &lt;/option&gt; &lt;/select&gt;&lt;br/&gt; &lt;br/&gt; &lt;br/&gt; &lt;button type="submit"&gt;Submit&lt;/button&gt; &lt;button type="reset" value="Clear Form"&gt;Reset&lt;/button&gt; &lt;/form&gt; &lt;/body&gt; &lt;/html&gt; &lt;%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%&gt; &lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt; &lt;html&gt; &lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"&gt; &lt;title&gt;Insert title here&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;%@ page import="java.sql.*" %&gt; &lt;%@ page import="java.util.Random" %&gt; &lt;% Connection conn = null; Statement st = null; ResultSet rs = null; //Random rand = new Random(); //int randomnumber = rand.nextInt(90000) + 10000; try { Class.forName("com.mysql.jdbc.Driver").newInstance(); conn = DriverManager.getConnection("jdbc:mysql://localhost/helpdesk?user=root&amp;password=password"); st = conn.createStatement(); //String ticket = request.getParameter("ticketid"); String a = request.getParameter("equipment"); String b = request.getParameter("problem"); String c = request.getParameter("empid"); String d = request.getParameter("empfnname"); String e = request.getParameter("emplname"); String f = request.getParameter("empemail"); String g = request.getParameter("empphone"); String h = request.getParameter("empcellphone"); String i = request.getParameter("department"); String j = request.getParameter("technician"); String jointables = ("Select tech_id from technician inner join ticket on technician.tech_id = ticket.tech_id;"); String insert1 = ("insert into ticket (t_date,t_equpipment, t_descript,emp_id,tech_id)" + " values( NOW(),'"+a+"', '"+b+"', '"+c+"', '"+j+"')"); String insert2 = ("insert into employee (emp_id, emp_fname,emp_lname,emp_email, emp_phone,emp_cellphone,emp_dept)" + "values ('"+ c +"','" + d + "','" + e + "','" + f + "','" + g + "','"+ h +"','" + i + "')"); String intodatabase = insert1 + insert2; out.println("&lt;b&gt;Executed the following SQL statement:&lt;/b&gt;&lt;br&gt;"); out.println(intodatabase); //print out the actual sql statement that was generated //Execute the "insert into" sql statement st.executeUpdate(intodatabase); out.println ("&lt;br&gt;&lt;br&gt;&lt;b&gt;Successfully Added the tuple..&lt;/b&gt;"); } catch (java.sql.SQLException ex) { out.println("&lt;br&gt;&lt;b&gt;Ouch, an SQLException was thrown..&lt;/b&gt;"); ex.printStackTrace(); } finally { if (rs != null) rs.close(); if (st != null) st.close(); if (conn != null) conn.close(); } %&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>