diff --git a/hosp/CHA_Hospital.jpg b/hosp/CHA_Hospital.jpg new file mode 100644 index 0000000..414c255 Binary files /dev/null and b/hosp/CHA_Hospital.jpg differ diff --git a/hosp/WebContent/1.jpg b/hosp/WebContent/1.jpg new file mode 100644 index 0000000..a66e002 Binary files /dev/null and b/hosp/WebContent/1.jpg differ diff --git a/hosp/WebContent/2057&v=fit512.jpg b/hosp/WebContent/2057&v=fit512.jpg new file mode 100644 index 0000000..a10bee0 Binary files /dev/null and b/hosp/WebContent/2057&v=fit512.jpg differ diff --git a/hosp/WebContent/210_medical_doctor_decal__59388.png b/hosp/WebContent/210_medical_doctor_decal__59388.png new file mode 100644 index 0000000..b38ba86 Binary files /dev/null and b/hosp/WebContent/210_medical_doctor_decal__59388.png differ diff --git a/hosp/WebContent/ArtGalleries.jpg b/hosp/WebContent/ArtGalleries.jpg new file mode 100644 index 0000000..1c55b11 Binary files /dev/null and b/hosp/WebContent/ArtGalleries.jpg differ diff --git a/hosp/WebContent/DEPT.jsp b/hosp/WebContent/DEPT.jsp new file mode 100644 index 0000000..875bd4a --- /dev/null +++ b/hosp/WebContent/DEPT.jsp @@ -0,0 +1,212 @@ +<%@ page language="java" contentType="text/html; charset=ISO-8859-1" + pageEncoding="ISO-8859-1" import="java.sql.*"%> + + + + +DEPARTMENT INFORMATION WINDOW + + + +

DEPARTMENT INFORMATION

+
+<%!String a="",b="",d="",e="",f="",g="",h="",i="",j=""; %> +


+ + + + + + +<% +try{ + + a=request.getParameter("Button1"); + String str1= request.getParameter("t1"); + String str2= request.getParameter("t2"); + String str3= request.getParameter("t3"); + String str4= request.getParameter("t4"); + String str5= request.getParameter("t5"); + Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); + Connection c=DriverManager.getConnection ("jdbc:odbc:abc", "root", "data"); + Statement s= c.createStatement(); + if(a.equals("ADD DEPARTMENT PROFILE")) + { + + if(str1!=""&&str2!=""&&str3!=""&&str4!=""&&str5!="") + { + String sql="insert into department values("+str1+",'"+str2+"','"+str3+"','"+str4+"',"+str5+")"; + out.println(sql); + s.execute(sql); + %> + <% + } + else + { + %> + <% + } + } + else if(a.equals("DELETE DEPARTMENT PROFILE")) + { + if(str1!="") + { + String sq="select * from department where dept_id="+str1+""; + ResultSet rs1=s.executeQuery(sq); + if(rs1.next()) + { + + String sql="delete from department where dept_id="+str1+""; + s.execute(sql); + %> + <% + } + else + { + %> + <% + } + } + else + { + %> + <% + } + } + else if(a.equals("EDIT DEPARTMENT PROFILE")) + { + if(str1!="") + { + String sq="select * from department where dept_id="+str1+""; + ResultSet rs1=s.executeQuery(sq); + if(rs1.next()) + { + String sql="delete from department where dept_id="+str1+""; + s.execute(sql); + String sql1="insert into department values("+str1+",'"+str2+"','"+str3+"','"+str4+"',"+str5+")"; + s.execute(sql1); + %> + <% + } + else + { + %> + <% + } + } + else + { + %> + <% + } + } + }catch(Exception e) {} + +%> +
DEPARTMENT ID
+

DEPARTMENT DETAILS

+
+

+

+

+

+<% +try +{ a=request.getParameter("Button1"); + if(a.equals("SEARCH DEPARTMENT PROFILE")) + { + String str1= request.getParameter("t1"); + Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); + Connection c=DriverManager.getConnection ("jdbc:odbc:abc", "root", "data"); + Statement s= c.createStatement(); + if(str1!="") + { + String sql2="select * from department where dept_id='"+str1+"'"; + ResultSet r=s.executeQuery(sql2); + if(r.next()) + { + j=r.getString(1); + b=r.getString(2); + d=r.getString(3); + e=r.getString(4); + f=r.getString(5); + } + else + { + %> + <% + } + + } + else + { + %> + <% + } + } +}catch(Exception e) {} +%> + +
+DEPARTMENT NAME>
+DEPARTMENT DOCTOR>
+DEPARTMENT HEAD>
+PHONE NO>
+
+

DEPARTMENT PROFILE TABLE

+ + + + + + + +<% +try +{ + String str1= request.getParameter("t1"); + Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); + Connection c=DriverManager.getConnection ("jdbc:odbc:abc", "root", "data"); + Statement s= c.createStatement(); + String q="select * from department"; + ResultSet rs9=s.executeQuery(q); + while(rs9.next()) + {%> + + <% + for (int i=1; i<=5; i++) + { + out.println( "<% +}catch(Exception e) {} +%> +
DEPT IDDEPT NAMEDEPT DOCTORDEPT HEADDEPT PHONE
" + rs9.getString (i) ); + + } + }%>
+ + +
+ +
+ + \ No newline at end of file diff --git a/hosp/WebContent/Hospital main entrance-blue sky.jpg b/hosp/WebContent/Hospital main entrance-blue sky.jpg new file mode 100644 index 0000000..a7678e1 Binary files /dev/null and b/hosp/WebContent/Hospital main entrance-blue sky.jpg differ diff --git a/hosp/WebContent/META-INF/MANIFEST.MF b/hosp/WebContent/META-INF/MANIFEST.MF new file mode 100644 index 0000000..5e94951 --- /dev/null +++ b/hosp/WebContent/META-INF/MANIFEST.MF @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +Class-Path: + diff --git a/hosp/WebContent/META-INF/bill.html b/hosp/WebContent/META-INF/bill.html new file mode 100644 index 0000000..be52950 --- /dev/null +++ b/hosp/WebContent/META-INF/bill.html @@ -0,0 +1,10 @@ + + + + +Insert title here + + + + + \ No newline at end of file diff --git a/hosp/WebContent/University_College_Hospital.jpg b/hosp/WebContent/University_College_Hospital.jpg new file mode 100644 index 0000000..21b57ab Binary files /dev/null and b/hosp/WebContent/University_College_Hospital.jpg differ diff --git a/hosp/WebContent/WEB-INF/addpat.jsp b/hosp/WebContent/WEB-INF/addpat.jsp new file mode 100644 index 0000000..cdce7c1 --- /dev/null +++ b/hosp/WebContent/WEB-INF/addpat.jsp @@ -0,0 +1,12 @@ +<%@ page language="java" contentType="text/html; charset=ISO-8859-1" + pageEncoding="ISO-8859-1"%> + + + + +Insert title here + + + + + \ No newline at end of file diff --git a/hosp/WebContent/WEB-INF/adpat.jsp b/hosp/WebContent/WEB-INF/adpat.jsp new file mode 100644 index 0000000..1f19a3f --- /dev/null +++ b/hosp/WebContent/WEB-INF/adpat.jsp @@ -0,0 +1,22 @@ +<%@ page language="java" contentType="text/html; charset=ISO-8859-1" + pageEncoding="ISO-8859-1"%> + + + + +Insert title here + + +

ADD PATIENT

+PATIENT ID
+PATIENT NAME
+PATIENT DEPARTMENT
+CONTACT NO
+GENDER
+DATE OF BIRTH
+DOCTOR FEE
+FATHERS NAME
+BLOOD GROUP
+ + + \ No newline at end of file diff --git a/hosp/WebContent/WEB-INF/attnd.jsp b/hosp/WebContent/WEB-INF/attnd.jsp new file mode 100644 index 0000000..642749e --- /dev/null +++ b/hosp/WebContent/WEB-INF/attnd.jsp @@ -0,0 +1,19 @@ +<%@ page language="java" contentType="text/html; charset=ISO-8859-1" + pageEncoding="ISO-8859-1"%> + + + + +Insert title here + + +PATIENT ID
+PATIENT NAME
+PATIENT DEPARTMENT
+CONTACT NO
+GENDER
+ + \ No newline at end of file diff --git a/hosp/WebContent/WEB-INF/bill.jsp b/hosp/WebContent/WEB-INF/bill.jsp new file mode 100644 index 0000000..4956d7e --- /dev/null +++ b/hosp/WebContent/WEB-INF/bill.jsp @@ -0,0 +1,12 @@ +<%@ page language="java" contentType="text/html; charset=ISO-8859-1" + pageEncoding="ISO-8859-1"%> + + + + +Insert title here + + + + + \ No newline at end of file diff --git a/hosp/WebContent/WEB-INF/dropdown.js b/hosp/WebContent/WEB-INF/dropdown.js new file mode 100644 index 0000000..762a9a2 --- /dev/null +++ b/hosp/WebContent/WEB-INF/dropdown.js @@ -0,0 +1,58 @@ +var DDSPEED = 10; +var DDTIMER = 15; + +// main function to handle the mouse events // +function ddMenu(id,d){ + var h = document.getElementById(id + '-ddheader'); + var c = document.getElementById(id + '-ddcontent'); + clearInterval(c.timer); + if(d == 1){ + clearTimeout(h.timer); + if(c.maxh && c.maxh <= c.offsetHeight){return} + else if(!c.maxh){ + c.style.display = 'block'; + c.style.height = 'auto'; + c.maxh = c.offsetHeight; + c.style.height = '0px'; + } + c.timer = setInterval(function(){ddSlide(c,1)},DDTIMER); + }else{ + h.timer = setTimeout(function(){ddCollapse(c)},50); + } +} + +// collapse the menu // +function ddCollapse(c){ + c.timer = setInterval(function(){ddSlide(c,-1)},DDTIMER); +} + +// cancel the collapse if a user rolls over the dropdown // +function cancelHide(id){ + var h = document.getElementById(id + '-ddheader'); + var c = document.getElementById(id + '-ddcontent'); + clearTimeout(h.timer); + clearInterval(c.timer); + if(c.offsetHeight < c.maxh){ + c.timer = setInterval(function(){ddSlide(c,1)},DDTIMER); + } +} + +// incrementally expand/contract the dropdown and change the opacity // +function ddSlide(c,d){ + var currh = c.offsetHeight; + var dist; + if(d == 1){ + dist = (Math.round((c.maxh - currh) / DDSPEED)); + }else{ + dist = (Math.round(currh / DDSPEED)); + } + if(dist <= 1 && d == 1){ + dist = 1; + } + c.style.height = currh + (dist * d) + 'px'; + c.style.opacity = currh / c.maxh; + c.style.filter = 'alpha(opacity=' + (currh * 100 / c.maxh) + ')'; + if((currh < 2 && d != 1) || (currh > (c.maxh - 2) && d == 1)){ + clearInterval(c.timer); + } +} \ No newline at end of file diff --git a/hosp/WebContent/WEB-INF/empattnd.jsp b/hosp/WebContent/WEB-INF/empattnd.jsp new file mode 100644 index 0000000..642749e --- /dev/null +++ b/hosp/WebContent/WEB-INF/empattnd.jsp @@ -0,0 +1,19 @@ +<%@ page language="java" contentType="text/html; charset=ISO-8859-1" + pageEncoding="ISO-8859-1"%> + + + + +Insert title here + + +PATIENT ID
+PATIENT NAME
+PATIENT DEPARTMENT
+CONTACT NO
+GENDER
+ + \ No newline at end of file diff --git a/hosp/WebContent/WEB-INF/web.xml b/hosp/WebContent/WEB-INF/web.xml new file mode 100644 index 0000000..6d27e79 --- /dev/null +++ b/hosp/WebContent/WEB-INF/web.xml @@ -0,0 +1,39 @@ + + + + hosp + + + + + as + as + + as + + + + + + srv1 + srv1 + + srv1 + + + as + /as + + + srv1 + /srv1 + + + index.html + index.htm + index.jsp + default.html + default.htm + default.jsp + + diff --git a/hosp/WebContent/addmed.jsp b/hosp/WebContent/addmed.jsp new file mode 100644 index 0000000..b526e48 --- /dev/null +++ b/hosp/WebContent/addmed.jsp @@ -0,0 +1,239 @@ +<%@ page language="java" contentType="text/html; charset=ISO-8859-1" + pageEncoding="ISO-8859-1" import="java.sql.*"%> + + + + +MEDICINE WINDOW + + +
+
+ + +
+

MEDICINE DATABASE

+
+


+ + + + +
+<%!String a="",b="",d="",e="",f="",g="",h="",i="",j=""; %> + +


+ + + + + + + + + +<% +try{ + + a=request.getParameter("Button1"); + String str1= request.getParameter("t1"); + String str2= request.getParameter("t2"); + String str3= request.getParameter("t3"); + String str4= request.getParameter("t4"); + String str5= request.getParameter("t5"); + String str6= request.getParameter("t6"); + String str7= request.getParameter("t7"); + Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); + Connection c=DriverManager.getConnection ("jdbc:odbc:abc", "root", "data"); + Statement s= c.createStatement(); + if(a.equals("ADD MEDICINE PROFILE")) + { + + if(str1!=""&&str2!=""&&str3!=""&&str4!=""&&str5!=""&&str6!=""&&str7!="") + { + String sql="insert into medicine values("+str1+",'"+str2+"','"+str3+"','"+str4+"','"+str5+"','"+str6+"',"+str7+")"; + out.println(sql); + s.execute(sql); + %> + <% + } + else + { + %> + <% + } + } + else if(a.equals("DELETE MEDICINE PROFILE")) + { + if(str1!="") + { + String sq="select * from medicine where med_code="+str1+""; + ResultSet rs1=s.executeQuery(sq); + if(rs1.next()) + { + + String sql="delete from medicine where med_code="+str1+""; + s.execute(sql); + %> + <% + } + else + { + %> + <% + } + } + else + { + %> + <% + } + } + else if(a.equals("EDIT MEDICINE PROFILE")) + { + if(str1!="") + { + String sq="select * from medicine where med_code="+str1+""; + ResultSet rs1=s.executeQuery(sq); + if(rs1.next()) + { + String sql="delete from medicine where med_code="+str1+""; + s.execute(sql); + String sql1="insert into medicine values("+str1+",'"+str2+"','"+str3+"','"+str4+"','"+str5+"','"+str6+"',"+str7+")"; + s.execute(sql1); + %> + <% + } + else + { + %> + <% + } + } + else + { + %> + <% + } + } + }catch(Exception e) {} + +%> + +
MEDICINE ID>
+

MEDICINE DETAILS

+
+

+

+

+

+<% +try +{ a=request.getParameter("Button1"); + if(a.equals("SEARCH MEDICINE PROFILE")) + { + String str1= request.getParameter("t1"); + Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); + Connection c=DriverManager.getConnection ("jdbc:odbc:abc", "root", "data"); + Statement s= c.createStatement(); + if(str1!="") + { + String sql2="select * from medicine where med_code='"+str1+"'"; + ResultSet r=s.executeQuery(sql2); + if(r.next()) + { + j=r.getString(1); + b=r.getString(2); + d=r.getString(3); + e=r.getString(4); + f=r.getString(5); + g=r.getString(6); + h=r.getString(7); + } + else + { + %> + <% + } + + } + else + { + %> + <% + } + } +}catch(Exception e) {} +%> + +
+
+
+MEDICINE NAME>
+MANUFACTURER>
+DATE OF MANUFACTURE>
+MEDICINE TYPE>
+EXPIRY DATE>
+BATCH NO>
+
+ +
+

DEPARTMENT PROFILE TABLE

+ + + + + + + + + +<% +try +{ + String str1= request.getParameter("t1"); + Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); + Connection c=DriverManager.getConnection ("jdbc:odbc:abc", "root", "data"); + Statement s= c.createStatement(); + String q="select * from medicine"; + ResultSet rs9=s.executeQuery(q); + while(rs9.next()) + {%> + + <% + for (int i=1; i<=7; i++) + { + out.println( "<% +}catch(Exception e) {} +%> + + +
MEDICINE IDMEDICINE NAMEMANUFACTURERDATE OF MANUFACTUREMEDICINE TYPEEXPIRY DATEBATCH NO
" + rs9.getString (i) ); + + } + }%>
+ +
+
+ + \ No newline at end of file diff --git a/hosp/WebContent/addoc.jsp b/hosp/WebContent/addoc.jsp new file mode 100644 index 0000000..a7d28bd --- /dev/null +++ b/hosp/WebContent/addoc.jsp @@ -0,0 +1,209 @@ +<%@ page language="java" contentType="text/html; charset=ISO-8859-1" + pageEncoding="ISO-8859-1" import="java.sql.*"%> + + + + +DOCTORS INFORMATION WINDOW + + +
+ + +
+

DOCTOR PROFILE WINDOW

+
+


+ + + + +
+
+<%!String a="",b="",d="",e="",f="",g="",h="",i="",j=""; %> + +


+ + + + + + + + + +<% +try{ + + a=request.getParameter("Button1"); + String str1= request.getParameter("t1"); + String str2= request.getParameter("t2"); + String str3= request.getParameter("t3"); + String str4= request.getParameter("t4"); + String str5= request.getParameter("t5"); + String str6= request.getParameter("t6"); + String str7= request.getParameter("t7"); + String str8= request.getParameter("t8"); + Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); + Connection c=DriverManager.getConnection ("jdbc:odbc:abc", "root", "data"); + Statement s= c.createStatement(); + if(a.equals("ADD DOCTOR PROFILE")) + { + + if(str1!=""&&str2!=""&&str3!=""&&str4!=""&&str5!=""&&str6!=""&&str7!=""&&str8!="") + { + String sql="insert into doctor values("+str1+",'"+str2+"','"+str3+"','"+str4+"',"+str5+",'"+str6+"','"+str7+"',"+str8+")"; + out.println(sql); + s.execute(sql); + %> + <% + } + else + { + %> + <% + } + } + else if(a.equals("DELETE DOCTOR PROFILE")) + { + if(str1!="") + { + String sq="select * from doctor where doc_id="+str1+""; + ResultSet rs1=s.executeQuery(sq); + if(rs1.next()) + { + + String sql="delete from doctor where doc_id="+str1+""; + s.execute(sql); + %> + <% + } + else + { + %> + <% + } + } + else + { + %> + <% + } + } + else if(a.equals("EDIT DOCTOR PROFILE")) + { + if(str1!="") + { + String sq="select * from doctor where doc_id="+str1+""; + ResultSet rs1=s.executeQuery(sq); + if(rs1.next()) + { + String sql="delete from doctor where doc_id="+str1+""; + s.execute(sql); + String sql1="insert into doctor values("+str1+",'"+str2+"','"+str3+"','"+str4+"',"+str5+",'"+str6+"','"+str7+"',"+str8+")"; + s.execute(sql1); + %> + <% + } + else + { + %> + <% + } + } + else + { + %> + <% + } + } + }catch(Exception e) {} + +%> + +
DOCTOR ID
+

DOCTOR DETAILS

+
+

+

+

+

+<% +try +{ a=request.getParameter("Button1"); + if(a.equals("SEARCH DOCTOR PROFILE")) + { + String str1= request.getParameter("t1"); + Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); + Connection c=DriverManager.getConnection ("jdbc:odbc:abc", "root", "data"); + Statement s= c.createStatement(); + if(str1!="") + { + String sql2="select * from doctor where doc_id='"+str1+"'"; + ResultSet r=s.executeQuery(sql2); + if(r.next()) + { + j=r.getString(1); + b=r.getString(2); + d=r.getString(3); + e=r.getString(4); + f=r.getString(5); + g=r.getString(6); + h=r.getString(7); + i=r.getString(8); + } + else + { + %> + <% + } + + } + else + { + %> + <% + } + } +}catch(Exception e) {} +%> + +
+
+
+DOCTOR NAME>
+DOCTOR EDUQUALIFICATION>
+DATE OF BIRTH>
+SALARY>
+FATHER'S NAME>
+EMAIL ID>
+DEPARTMENT ID>
+
+
+ +
+
+ + + + diff --git a/hosp/WebContent/addpt.jsp b/hosp/WebContent/addpt.jsp new file mode 100644 index 0000000..31b54fd --- /dev/null +++ b/hosp/WebContent/addpt.jsp @@ -0,0 +1,313 @@ +<%@ page language="java" contentType="text/html; charset=ISO-8859-1" + pageEncoding="ISO-8859-1" import="java.sql.*"%> + + + + +ADMIT NEW PATIENT + + + +
+<%!String a="",b="",d="",e="",f="",g="",h="",i="",j=""; %> +
+ + + + +
+

ADMIT NEW PATIENT

+
+

+ + +
+

ADD NEW PATIENT

+ + + +<% +try +{ a=request.getParameter("button1"); + if(a.equals("EDIT PATIENT DETAILS")) + { + String str1= request.getParameter("t1"); + String str2= request.getParameter("t2"); + String str3= request.getParameter("t3"); + String str4= request.getParameter("t4"); + String str5= request.getParameter("t5"); + String str6= request.getParameter("t6"); + String str7= request.getParameter("t7"); + String str8= request.getParameter("t8"); + Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); + Connection c=DriverManager.getConnection ("jdbc:odbc:abc", "root", "data"); + Statement s= c.createStatement(); + if(str1!="") + { + String sql2="select * from patient where patient_id='"+str1+"'"; + ResultSet rs1=s.executeQuery(sql2); + if(rs1.next()) + { + + String sql1="select * from department where dept_id='"+str6+"'"; + ResultSet rs=s.executeQuery(sql1); + if(rs.next()) + { + String sq="delete from patient where patient_id='"+str1+"'"; + s.execute(sq); + String sql="insert into patient values("+str1+",'"+str2+"','"+str3+"','"+str4+"','"+str5+"','"+str7+"','"+str6+"','"+str8+"')"; + s.execute(sql); + %> + <% + + } + else + { + %> + <% + } + } + else + { + %> + <% + } + } + else + { + %> + <% + } + } +}catch(Exception e) {} + +%> + + + + + +
+


+

PATIENT DETAILS

+ +
+<% +try +{ a=request.getParameter("button1"); + if(a.equals("SEARCH PATIENT")) + { + String str1= request.getParameter("t1"); + + Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); + Connection c=DriverManager.getConnection ("jdbc:odbc:abc", "root", "data"); + Statement s= c.createStatement(); + if(str1!="") + { + String sql2="select * from patient where patient_id='"+str1+"'"; + ResultSet r=s.executeQuery(sql2); + if(r.next()) + { + j=r.getString(1); + b=r.getString(2); + d=r.getString(3); + e=r.getString(4); + f=r.getString(5); + g=r.getString(6); + h=r.getString(7); + i=r.getString(8); + } + else + { + %> + <% + } + + } + else + { + %> + <% + } + } +}catch(Exception e) {} +%> +PATIENT ID >
+PATIENT NAME >
+DATE OF BIRTH >
+DOCTOR FEE >
+FATHER'S NAME >
+DEPARTMENT ID >
+BLOOD GROUP >
+GENDER

+ +
+
+
+
+

BED ALLOCATION DETAILS

+PATIENT ID
+BED NO
+DATE OF ALLOCTN
+CHARGES
+ROOM TYPE
+
+<% +try +{ + a=request.getParameter("button1"); + + if(a.equals("ADMIT PATIENT AND ALLOT BED")) + { + String str1= request.getParameter("t1"); + String str2= request.getParameter("t2"); + String str3= request.getParameter("t3"); + String str4= request.getParameter("t4"); + String str5= request.getParameter("t5"); + String str6= request.getParameter("t6"); + String str7= request.getParameter("t7"); + String str8= request.getParameter("t8"); + String str11= request.getParameter("t9"); + String str12= request.getParameter("t10"); + String str13= request.getParameter("t11"); + String str14= request.getParameter("t12"); + String str15= request.getParameter("t13"); + Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); + Connection c=DriverManager.getConnection ("jdbc:odbc:abc", "root", "data"); + Statement s= c.createStatement(); + if(str1!=""&&str2!=""&&str3!=""&&str4!=""&&str5!=""&&str6!=""&&str7!=""&&str8!=""&&str11!=""&&str12!=""&&str13!=""&&str14!=""&&str15!="") + { + String sq1="select * from department where dept_id="+str6+""; + ResultSet r4=s.executeQuery(sq1); + if(r4.next()) + { + String sq2="select * from rooms where bed_no ="+str12+""; + ResultSet r5=s.executeQuery(sq2); + if(r5.next()) + { + %> + <% + } + else + { + String sq4="insert into patient values("+str1+",'"+str2+"','"+str3+"','"+str4+"','"+str5+"','"+str7+"','"+str6+"','"+str8+"','A')"; + out.println(sq4); + s.execute(sq4); + String sq3="insert into rooms values("+str11+","+str12+",'"+str15+"',"+str14+",'"+str13+"')"; + out.println(sq3); + s.execute(sq3); + %> + <% + } + } + else + { + %> + <% + } + } + else + { + %> + <% + } + } + +}catch(Exception e) {} +%> +

PATIENTS ADMITTED IN HOSPITAL

+ + + + + + + + + + +<% + try + { + Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); + Connection c= DriverManager.getConnection("jdbc:odbc:abc", "root", "data"); + Statement s=c.createStatement(); + String sql1="select * from patient"; + ResultSet rs=s.executeQuery(sql1); + while(rs.next()) + {%> + + <% + for (int i=1; i<=8; i++) + { + out.println( "<% + + }catch(Exception e) { } +%> + + +
PATIENT IDPATIENT NAMEDATE OF BIRTHDOCTOR'S FEEFATHER'S NAMEBLOOD GROUPDEPARTMENT IDSEX
" + rs.getString (i) ); + + } + }%>
+


+

BEDS OCCUPIED IN HOSPITAL ACCOMODATION

+ + + + + + +<% + try + { + Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); + Connection c= DriverManager.getConnection("jdbc:odbc:abc", "root", "data"); + Statement s=c.createStatement(); + String sql1="select * from rooms"; + ResultSet rs=s.executeQuery(sql1); + while(rs.next()) + {%> + + <% + for (int i=1; i<=5; i++) + { + out.println( "<% + + }catch(Exception e) { } +%> +
PATIENT IDBED NOROOM TYPECHARGESALLOCATION DATE
" + rs.getString (i) ); + + } + }%>
+ + +
+
+
+ + + \ No newline at end of file diff --git a/hosp/WebContent/adnurse.jsp b/hosp/WebContent/adnurse.jsp new file mode 100644 index 0000000..7d20a0e --- /dev/null +++ b/hosp/WebContent/adnurse.jsp @@ -0,0 +1,204 @@ +<%@ page language="java" contentType="text/html; charset=ISO-8859-1" + pageEncoding="ISO-8859-1" import="java.sql.*"%> + + + + +NURSE PROFILE WINDOW + + +
+ + +
+

NURSE PROFILE WINDOW

+
+


1 + + + + +
+
+<%!String a="",b="",d="",e="",f="",g="",h="",i="",j=""; %> + +


+ + + + + + + + + +<% +try{ + + a=request.getParameter("Button1"); + String str1= request.getParameter("t1"); + String str2= request.getParameter("t2"); + String str3= request.getParameter("t3"); + String str4= request.getParameter("t4"); + String str5= request.getParameter("t5"); + String str6= request.getParameter("t6"); + String str7= request.getParameter("t7"); + Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); + Connection c=DriverManager.getConnection ("jdbc:odbc:abc", "root", "data"); + Statement s= c.createStatement(); + if(a.equals("ADD NURSE PROFILE")) + { + + if(str1!=""&&str2!=""&&str3!=""&&str4!=""&&str5!=""&&str6!=""&&str7!="") + { + String sql="insert into nurse values("+str1+",'"+str2+"','"+str3+"','"+str4+"',"+str5+",'"+str6+"',"+str7+")"; + out.println(sql); + s.execute(sql); + %> + <% + } + else + { + %> + <% + } + } + else if(a.equals("DELETE NURSE PROFILE")) + { + if(str1!="") + { + String sq="select * from nurse where nur_id="+str1+""; + ResultSet rs1=s.executeQuery(sq); + if(rs1.next()) + { + + String sql="delete from nurse where nur_id="+str1+""; + s.execute(sql); + %> + <% + } + else + { + %> + <% + } + } + else + { + %> + <% + } + } + else if(a.equals("EDIT NURSE PROFILE")) + { + if(str1!="") + { + String sq="select * from nurse where nur_id="+str1+""; + ResultSet rs1=s.executeQuery(sq); + if(rs1.next()) + { + String sql="delete from nurse where nur_id="+str1+""; + s.execute(sql); + String sql1="insert into nurse values("+str1+",'"+str2+"','"+str3+"','"+str4+"',"+str5+",'"+str6+"',"+str7+")"; + s.execute(sql1); + %> + <% + } + else + { + %> + <% + } + } + else + { + %> + <% + } + } + }catch(Exception e) {} + +%> + +
NURSE ID
+

NURSE DETAILS

+
+

+

+

+

+<% +try +{ a=request.getParameter("Button1"); + if(a.equals("SEARCH NURSE PROFILE")) + { + String str1= request.getParameter("t1"); + Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); + Connection c=DriverManager.getConnection ("jdbc:odbc:abc", "root", "data"); + Statement s= c.createStatement(); + if(str1!="") + { + String sql2="select * from nurse where nur_id='"+str1+"'"; + ResultSet r=s.executeQuery(sql2); + if(r.next()) + { + j=r.getString(1); + b=r.getString(2); + d=r.getString(3); + e=r.getString(4); + f=r.getString(5); + g=r.getString(6); + h=r.getString(7); + } + else + { + %> + <% + } + + } + else + { + %> + <% + } + } +}catch(Exception e) {} +%> + +
+
+
+NURSE NAME>
+NURSE EDUQUALIFICATION>
+DATE OF BIRTH>
+SALARY>
+FATHER'S NAME>
+DEPARTMENT ID>
+
+
+ +
+
+ + \ No newline at end of file diff --git a/hosp/WebContent/apponit.jsp b/hosp/WebContent/apponit.jsp new file mode 100644 index 0000000..2ba9179 --- /dev/null +++ b/hosp/WebContent/apponit.jsp @@ -0,0 +1,17 @@ +<%@ page language="java" contentType="text/html; charset=ISO-8859-1" + pageEncoding="ISO-8859-1"%> + + + + +Insert title here + + +

SET APPOINMENT

+PATIENT ID
+DOCTOR ID
+DATE
+DESCRIPTION
+PRESCRIPTION
+ + \ No newline at end of file diff --git a/hosp/WebContent/bill.jsp b/hosp/WebContent/bill.jsp new file mode 100644 index 0000000..1e8ac34 --- /dev/null +++ b/hosp/WebContent/bill.jsp @@ -0,0 +1,82 @@ +<%@ page language="java" contentType="text/html; charset=ISO-8859-1" + pageEncoding="ISO-8859-1" import="java.sql.*"%> + + + + +BILL WINDOW + + +
+

FORTIS HOSPITAL

+

BILL RECEIPT

+<%! String abc,a,b,d,e,g,h,i,j,k,z; int m1=0,f=0,l=0;%> +<% + String b=(String)session.getAttribute("abc"); +%> +<% +try +{ + Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); + Connection c=DriverManager.getConnection ("jdbc:odbc:abc", "root", "data"); + Statement s= c.createStatement(); + String sq="select * from patient where patient_id="+b; + ResultSet rs=s.executeQuery(sq); + if(rs.next()) + { + z=rs.getString(1); + d=rs.getString(2); + e=rs.getString(3); + f=Integer.parseInt(rs.getString(4)); + g=rs.getString(5); + h=rs.getString(6); + i=rs.getString(7); + j=rs.getString(8);l=f+500+3000; + m1=3000; + } + +}catch(Exception e){ out.println(e);} +%> + + + + + + + + + + + + + + + + + + + + + + + +
+

PATIENT DETAILS

+ +
PATIENT ID
<%=z%>
PATIENT NAME
<%=d%>
DATE OF BIRTH
<%=e %>
FATHER's NAME
<%=g %>
BLOOD GROUP
<%=h %>
DEPARTMENT ID
<%=i %>
SEX
<%=j %>
+

BILL DETAILS

+
+
+DOCTOR FEE=<%=f%>

+ACCOMODATION CHARGES=<%=m1%>

+MAINTAINENCE FEE= Rs500

+TOTAL FEES=<%=l%> + + + +ACCOUNTS MANAGER +
+
+
+ + \ No newline at end of file diff --git a/hosp/WebContent/blue_background.jpg b/hosp/WebContent/blue_background.jpg new file mode 100644 index 0000000..665d978 Binary files /dev/null and b/hosp/WebContent/blue_background.jpg differ diff --git a/hosp/WebContent/cfiles23725.jpg b/hosp/WebContent/cfiles23725.jpg new file mode 100644 index 0000000..141869e Binary files /dev/null and b/hosp/WebContent/cfiles23725.jpg differ diff --git a/hosp/WebContent/compaqblue7vy.jpg b/hosp/WebContent/compaqblue7vy.jpg new file mode 100644 index 0000000..d0ae9c3 Binary files /dev/null and b/hosp/WebContent/compaqblue7vy.jpg differ diff --git a/hosp/WebContent/dischrg.jsp b/hosp/WebContent/dischrg.jsp new file mode 100644 index 0000000..9d8a156 --- /dev/null +++ b/hosp/WebContent/dischrg.jsp @@ -0,0 +1,117 @@ +<%@ page language="java" contentType="text/html; charset=ISO-8859-1" + pageEncoding="ISO-8859-1" import="java.sql.*"%> + + + + +DISCHARGE WINDOW + + + +
+<%! String a,str1,b,d,e,abc; %> +
+ + + + +
+

DISCHARGE PATIENT

+
+



+ + + + + + + <% + } + else + { + %> + <% + } + } + else + { + %> + <% + } + } + }catch(Exception e){} +%> + +<% +try +{ + a=request.getParameter("button1"); + if(a.equals("DISCHARGE")) + { + Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); + Connection c=DriverManager.getConnection ("jdbc:odbc:abc", "root", "data"); + Statement s= c.createStatement(); + + String sql="delete from rooms where patient_id="+str1+""; + //String sq2="update table patient set status='D' where patient_id="+str1+""; + //s.execute(sq2); + s.execute(sql); + %> + + <% + session.setAttribute("abc",str1); + %> + + + +<% + } +}catch(Exception e){ } +%> +
+ENTER THE PATIENT ID TO DISCHARGE--
+



+
+<% + try{ + a=request.getParameter("button1"); + if(a.equals("ENTER")) + { + str1= request.getParameter("t1"); + Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); + Connection c=DriverManager.getConnection ("jdbc:odbc:abc", "root", "data"); + Statement s= c.createStatement(); + if(str1!="") + { + String sq="select * from patient where patient_id="+str1+""; + ResultSet rs1=s.executeQuery(sq); + if(rs1.next()) + { + out.println("PATIENT ID="+rs1.getString(1)); %>
<% + out.println("PATIENT NAME="+rs1.getString(2)); %>
<% + out.println("DATE OF BIRTH="+rs1.getString(3)); %>
<% + out.println("DOCTOR FEE ="+rs1.getString(4)); %>
<% + out.println("FATHER'S NAME ="+rs1.getString(5)); %>
<% + out.println("DEPARTMENT ID="+rs1.getString(6)); %>
<% + out.println("BLOOD GROUP ="+rs1.getString(7)); %>
<% + out.println("GENDER ="+rs1.getString(8)); %>
<% + %>
+

ARE YOU SURE YOU WANT TO DISCHARGE PATIENT

+ + +
+
+
+ + \ No newline at end of file diff --git a/hosp/WebContent/docrep.jsp b/hosp/WebContent/docrep.jsp new file mode 100644 index 0000000..4956d7e --- /dev/null +++ b/hosp/WebContent/docrep.jsp @@ -0,0 +1,12 @@ +<%@ page language="java" contentType="text/html; charset=ISO-8859-1" + pageEncoding="ISO-8859-1"%> + + + + +Insert title here + + + + + \ No newline at end of file diff --git a/hosp/WebContent/dropdown.css b/hosp/WebContent/dropdown.css new file mode 100644 index 0000000..8edccc7 --- /dev/null +++ b/hosp/WebContent/dropdown.css @@ -0,0 +1,11 @@ +body {margin:25px; font:12px Verdana, Arial, Helvetica} +* {padding:0; margin:0} +.dropdown {float:left; padding-right:5px} +.dropdown dt {width:188px; border:2px solid #9ac1c9; padding:8px; font-weight:bold; cursor:pointer;} +.dropdown dt:hover {background:url(images/header_over.gif)} +.dropdown dd {position:absolute; overflow:hidden; width:208px; display:none; background:#fff; z-index:200; opacity:0} +.dropdown ul {width:204px; border:2px solid #9ac1c9; list-style:none; border-top:none} +.dropdown li {display:inline} +.dropdown a, .dropdown a:active, .dropdown a:visited {display:block; padding:5px; color:#333; text-decoration:none; background:#eaf0f2; width:194px} +.dropdown a:hover {background:#d9e1e4; color:#000} +.dropdown .underline {border-bottom:1px solid #b9d6dc} \ No newline at end of file diff --git a/hosp/WebContent/dropdown.js b/hosp/WebContent/dropdown.js new file mode 100644 index 0000000..762a9a2 --- /dev/null +++ b/hosp/WebContent/dropdown.js @@ -0,0 +1,58 @@ +var DDSPEED = 10; +var DDTIMER = 15; + +// main function to handle the mouse events // +function ddMenu(id,d){ + var h = document.getElementById(id + '-ddheader'); + var c = document.getElementById(id + '-ddcontent'); + clearInterval(c.timer); + if(d == 1){ + clearTimeout(h.timer); + if(c.maxh && c.maxh <= c.offsetHeight){return} + else if(!c.maxh){ + c.style.display = 'block'; + c.style.height = 'auto'; + c.maxh = c.offsetHeight; + c.style.height = '0px'; + } + c.timer = setInterval(function(){ddSlide(c,1)},DDTIMER); + }else{ + h.timer = setTimeout(function(){ddCollapse(c)},50); + } +} + +// collapse the menu // +function ddCollapse(c){ + c.timer = setInterval(function(){ddSlide(c,-1)},DDTIMER); +} + +// cancel the collapse if a user rolls over the dropdown // +function cancelHide(id){ + var h = document.getElementById(id + '-ddheader'); + var c = document.getElementById(id + '-ddcontent'); + clearTimeout(h.timer); + clearInterval(c.timer); + if(c.offsetHeight < c.maxh){ + c.timer = setInterval(function(){ddSlide(c,1)},DDTIMER); + } +} + +// incrementally expand/contract the dropdown and change the opacity // +function ddSlide(c,d){ + var currh = c.offsetHeight; + var dist; + if(d == 1){ + dist = (Math.round((c.maxh - currh) / DDSPEED)); + }else{ + dist = (Math.round(currh / DDSPEED)); + } + if(dist <= 1 && d == 1){ + dist = 1; + } + c.style.height = currh + (dist * d) + 'px'; + c.style.opacity = currh / c.maxh; + c.style.filter = 'alpha(opacity=' + (currh * 100 / c.maxh) + ')'; + if((currh < 2 && d != 1) || (currh > (c.maxh - 2) && d == 1)){ + clearInterval(c.timer); + } +} \ No newline at end of file diff --git a/hosp/WebContent/editdoc.jsp b/hosp/WebContent/editdoc.jsp new file mode 100644 index 0000000..d56a8a5 --- /dev/null +++ b/hosp/WebContent/editdoc.jsp @@ -0,0 +1,37 @@ +<%@ page language="java" contentType="text/html; charset=ISO-8859-1" + pageEncoding="ISO-8859-1"import="java.sql.*"%> + + + + +Insert title here + + +ENTER DOCTOR ID TO EDIT 
+<% +int k=0; +try{ + String str1= request.getParameter("t1"); + Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); + Connection c=DriverManager.getConnection ("jdbc:odbc:abc", "root", "data"); + Statement s= c.createStatement(); + if(str1!="") + { + String sql="select * from doctor where doc_id="+str1+")"; + s.execute(sql); + out.println ("Insert Successful"); + k=1; + } + }catch(Exception e) { out.println(e); } + +%> +DOCTOR NAME
+DOCTOR EDUQUALIFICATION
+DATE OF BIRTH
+FATHER'S NAME
+PHONE NO
+SALARY
+EMAIL ID
+ + + \ No newline at end of file diff --git a/hosp/WebContent/empattn.jsp b/hosp/WebContent/empattn.jsp new file mode 100644 index 0000000..642749e --- /dev/null +++ b/hosp/WebContent/empattn.jsp @@ -0,0 +1,19 @@ +<%@ page language="java" contentType="text/html; charset=ISO-8859-1" + pageEncoding="ISO-8859-1"%> + + + + +Insert title here + + +PATIENT ID
+PATIENT NAME
+PATIENT DEPARTMENT
+CONTACT NO
+GENDER
+ + \ No newline at end of file diff --git a/hosp/WebContent/foliage-swirls-000145-light-sky-blue.jpg b/hosp/WebContent/foliage-swirls-000145-light-sky-blue.jpg new file mode 100644 index 0000000..f527077 Binary files /dev/null and b/hosp/WebContent/foliage-swirls-000145-light-sky-blue.jpg differ diff --git a/hosp/WebContent/home.jsp b/hosp/WebContent/home.jsp new file mode 100644 index 0000000..36d70f8 --- /dev/null +++ b/hosp/WebContent/home.jsp @@ -0,0 +1,100 @@ +<%@ page language="java" contentType="text/html; charset=ISO-8859-1" + pageEncoding="ISO-8859-1"%> + + + + +WELCOME TO HOSPITAL MANAGEMENT SYSTEM + + + + + +
+ + + + + + + +

HOSPITAL MANAGEMENT SYSTEM

+
+
+
+
+
+
+


+ + + +
+
+
+ + \ No newline at end of file diff --git a/hosp/WebContent/home_6.swf b/hosp/WebContent/home_6.swf new file mode 100644 index 0000000..c356bda Binary files /dev/null and b/hosp/WebContent/home_6.swf differ diff --git a/hosp/WebContent/light-blue-wallpaper.jpg b/hosp/WebContent/light-blue-wallpaper.jpg new file mode 100644 index 0000000..189caa0 Binary files /dev/null and b/hosp/WebContent/light-blue-wallpaper.jpg differ diff --git a/hosp/WebContent/medical_doctor.jpg b/hosp/WebContent/medical_doctor.jpg new file mode 100644 index 0000000..be7ec93 Binary files /dev/null and b/hosp/WebContent/medical_doctor.jpg differ diff --git a/hosp/WebContent/medrep.jsp b/hosp/WebContent/medrep.jsp new file mode 100644 index 0000000..4956d7e --- /dev/null +++ b/hosp/WebContent/medrep.jsp @@ -0,0 +1,12 @@ +<%@ page language="java" contentType="text/html; charset=ISO-8859-1" + pageEncoding="ISO-8859-1"%> + + + + +Insert title here + + + + + \ No newline at end of file diff --git a/hosp/WebContent/nurse.jpg b/hosp/WebContent/nurse.jpg new file mode 100644 index 0000000..f527077 Binary files /dev/null and b/hosp/WebContent/nurse.jpg differ diff --git a/hosp/WebContent/oestfold_hospital_arkitema260109_1.jpg b/hosp/WebContent/oestfold_hospital_arkitema260109_1.jpg new file mode 100644 index 0000000..c2b40e5 Binary files /dev/null and b/hosp/WebContent/oestfold_hospital_arkitema260109_1.jpg differ diff --git a/hosp/WebContent/patrep.jsp b/hosp/WebContent/patrep.jsp new file mode 100644 index 0000000..4956d7e --- /dev/null +++ b/hosp/WebContent/patrep.jsp @@ -0,0 +1,12 @@ +<%@ page language="java" contentType="text/html; charset=ISO-8859-1" + pageEncoding="ISO-8859-1"%> + + + + +Insert title here + + + + + \ No newline at end of file diff --git a/hosp/WebContent/sd.jsp b/hosp/WebContent/sd.jsp new file mode 100644 index 0000000..4956d7e --- /dev/null +++ b/hosp/WebContent/sd.jsp @@ -0,0 +1,12 @@ +<%@ page language="java" contentType="text/html; charset=ISO-8859-1" + pageEncoding="ISO-8859-1"%> + + + + +Insert title here + + + + + \ No newline at end of file diff --git a/hosp/WebContent/transactn.jsp b/hosp/WebContent/transactn.jsp new file mode 100644 index 0000000..e5239aa --- /dev/null +++ b/hosp/WebContent/transactn.jsp @@ -0,0 +1,54 @@ +<%@ page language="java" contentType="text/html; charset=ISO-8859-1" + pageEncoding="ISO-8859-1"%> + + + + +Insert title here + + +
+ + + + +
+

TRANSACTION WINDOW

+
+
+ + + + +
+
+
+ + + + + +
+

+ +PATIENT ID
+PATIENT NAME
+DEPARTMENT ID
+CONTACT NO
+BILL NO
+TOTAL AMOUNT
+DATE
+DOCTOR FEE
+MEDICINE FEE
+MODE
+
+
+
+
+
+ + + + + + \ No newline at end of file diff --git a/hosp/build/classes/as.class b/hosp/build/classes/as.class new file mode 100644 index 0000000..c5a61a5 Binary files /dev/null and b/hosp/build/classes/as.class differ diff --git a/hosp/build/classes/srv1.class b/hosp/build/classes/srv1.class new file mode 100644 index 0000000..3080e01 Binary files /dev/null and b/hosp/build/classes/srv1.class differ diff --git a/hosp/home_6.swf b/hosp/home_6.swf new file mode 100644 index 0000000..c356bda Binary files /dev/null and b/hosp/home_6.swf differ diff --git a/hosp/src/as.java b/hosp/src/as.java new file mode 100644 index 0000000..a43398a --- /dev/null +++ b/hosp/src/as.java @@ -0,0 +1,47 @@ + + +import java.io.IOException; +import java.sql.Connection; +import java.sql.DriverManager; + +import javax.servlet.ServletException; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; + +/** + * Servlet implementation class for Servlet: as + * + */ + public class as extends javax.servlet.http.HttpServlet implements javax.servlet.Servlet { + static final long serialVersionUID = 1L; + + /* (non-Java-doc) + * @see javax.servlet.http.HttpServlet#HttpServlet() + */ + public as() { + super(); + } + + /* (non-Java-doc) + * @see javax.servlet.http.HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response) + */ + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + // TODO Auto-generated method stub + } + + /* (non-Java-doc) + * @see javax.servlet.http.HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response) + */ + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + try{ + Class.forName ("sun.jdbc.odbc.JdbcOdbcDriver"); + Connection c= DriverManager.getConnection ("jdbc:odbc:abc", "root", "root"); + Statement s= c.createStatement(); + String sql="insert into student values("+roll+",'"+str2+"')"; + s.execute (sql); + out.println ("Insert Successful"); + }catch(Exception e) { } + + // TODO Auto-generated method stub + } +} \ No newline at end of file diff --git a/hosp/src/srv1.java b/hosp/src/srv1.java new file mode 100644 index 0000000..a0f49e3 --- /dev/null +++ b/hosp/src/srv1.java @@ -0,0 +1,48 @@ + + +import java.sql.Connection; +import java.sql.DriverManager; +import java.io.IOException; +import javax.servlet.ServletException; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; + +/** + * Servlet implementation class for Servlet: srv1 + * + */ + public class srv1 extends javax.servlet.http.HttpServlet implements javax.servlet.Servlet { + static final long serialVersionUID = 1L; + + /* (non-Java-doc) + * @see javax.servlet.http.HttpServlet#HttpServlet() + */ + public srv1() { + super(); + } + + /* (non-Java-doc) + * @see javax.servlet.http.HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response) + */ + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + // TODO Auto-generated method stub + } + + /* (non-Java-doc) + * @see javax.servlet.http.HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response) + */ + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + + try{ + Class.forName ("sun.jdbc.odbc.JdbcOdbcDriver"); + Connection c= DriverManager.getConnection ("jdbc:odbc:abc", "root", "root"); + Statement s= c.createStatement(); + String sql="select * from department where "; + s.execute (sql); + out.println ("Insert Successful"); + }catch(Exception e) { } + + // TODO Auto-generated method stub + + } +} \ No newline at end of file