Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Servlet-Interview-Questions Java Hospital management system

Have Programming Question? Ask it here!
 
 
 


manigandan
Java Hospital management system
3 Answer(s)      2 years and 6 months ago
Posted in : Servlet Interview Questions


hospital management


Advertisement
View Answers

January 29, 2012 at 7:05 PM


<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="java.sql.*" %>

<!DOCTYPE html>

<html>

   <body>


        <form action="rejijav.jsp">
            <table border="2" align="center">
                <tr><td>id</td><td><input type="text" name="id" class="txt"/></td></tr>
                <tr><td>fname</td><td><input type="text" name="fname" class="txt"/></td></tr>
                <tr><td>lname</td><td><input type="text" name="lname" class="txt"/></td></tr>
                <tr><td>age</td><td><input type="text" name="age" class="txt"/></td></tr>
                <tr><td>dob</td><td><input type="text" name="dob" class="txt"/></td></tr>
                <tr><td>address</td><td><input type="text" name="address" class="txt"/></td></tr>                          
                <tr><td><input type="submit" value="submit"/></td></tr>
            </table>
            <%
Connection con;
    Statement st;
    ResultSet rs;
    PreparedStatement pst=null;
String id,lname,fname,age,dob,address;
id=request.getParameter("id");
fname=request.getParameter("fname");
lname=request.getParameter("lname");
age=request.getParameter("age");
dob=request.getParameter("dob");
address=request.getParameter("address");
if(id!=null && id!="")
       {
    int id1=Integer.parseInt(id);
    try
       {   
    String Url="jdbc:mysql://localhost:3306/mobile";
    Class.forName("com.mysql.jdbc.Driver");   
    con=DriverManager.getConnection(Url,"root","root123");
    st=con.createStatement();
    if(fname!=null && fname!="")
               {
            pst=con.prepareStatement("update register set fname=? where id=?");
            pst.setString(1,fname);
            pst.setInt(2,id1);
            pst.executeUpdate();
               }
    if(lname!=null && lname!="")
               {
            pst=con.prepareStatement("update register set lname=? where id=?");
            pst.setString(1,lname);
            pst.setInt(2,id1);
            pst.executeUpdate();
              }
    if(age!=null && age!="")
               {
                int age1=Integer.parseInt(age);
                pst=con.prepareStatement("update register set age=? where id=?");
                pst.setInt(1,age1);
                pst.setInt(2,id1);
                pst.executeUpdate();
                }
                 if(dob!=null && dob!="")
                     {
                     pst=con.prepareStatement("update register set dob=? where id=?");
                     pst.setString(1,dob);
                     pst.setInt(2,id1);
                     pst.executeUpdate();
                     }
                if(address!=null && address!="")
                    {
                pst=con.prepareStatement("update register set address=? where id=?");
                pst.setString(1,address);
                pst.setInt(2,id1);
                pst.executeUpdate();
                     }

            out.print("Sucessfull!!!");
}catch(Exception e)
       {
    out.print(e);
       }
}%>
                </form>
       </body>
</html>


January 29, 2012 at 7:05 PM


<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="java.sql.*" %>

<!DOCTYPE html>

<html>

   <body>


        <form action="rejijav.jsp">
            <table border="2" align="center">
                <tr><td>id</td><td><input type="text" name="id" class="txt"/></td></tr>
                <tr><td>fname</td><td><input type="text" name="fname" class="txt"/></td></tr>
                <tr><td>lname</td><td><input type="text" name="lname" class="txt"/></td></tr>
                <tr><td>age</td><td><input type="text" name="age" class="txt"/></td></tr>
                <tr><td>dob</td><td><input type="text" name="dob" class="txt"/></td></tr>
                <tr><td>address</td><td><input type="text" name="address" class="txt"/></td></tr>                          
                <tr><td><input type="submit" value="submit"/></td></tr>
            </table>
            <%
Connection con;
    Statement st;
    ResultSet rs;
    PreparedStatement pst=null;
String id,lname,fname,age,dob,address;
id=request.getParameter("id");
fname=request.getParameter("fname");
lname=request.getParameter("lname");
age=request.getParameter("age");
dob=request.getParameter("dob");
address=request.getParameter("address");
if(id!=null && id!="")
       {
    int id1=Integer.parseInt(id);
    try
       {   
    String Url="jdbc:mysql://localhost:3306/mobile";
    Class.forName("com.mysql.jdbc.Driver");   
    con=DriverManager.getConnection(Url,"root","root123");
    st=con.createStatement();
    if(fname!=null && fname!="")
               {
            pst=con.prepareStatement("update register set fname=? where id=?");
            pst.setString(1,fname);
            pst.setInt(2,id1);
            pst.executeUpdate();
               }
    if(lname!=null && lname!="")
               {
            pst=con.prepareStatement("update register set lname=? where id=?");
            pst.setString(1,lname);
            pst.setInt(2,id1);
            pst.executeUpdate();
              }
    if(age!=null && age!="")
               {
                int age1=Integer.parseInt(age);
                pst=con.prepareStatement("update register set age=? where id=?");
                pst.setInt(1,age1);
                pst.setInt(2,id1);
                pst.executeUpdate();
                }
                 if(dob!=null && dob!="")
                     {
                     pst=con.prepareStatement("update register set dob=? where id=?");
                     pst.setString(1,dob);
                     pst.setInt(2,id1);
                     pst.executeUpdate();
                     }
                if(address!=null && address!="")
                    {
                pst=con.prepareStatement("update register set address=? where id=?");
                pst.setString(1,address);
                pst.setInt(2,id1);
                pst.executeUpdate();
                     }

            out.print("Sucessfull!!!");
}catch(Exception e)
       {
    out.print(e);
       }
}%>
                </form>
       </body>
</html>


January 29, 2012 at 7:07 PM


<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="java.sql.*" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body >
        <form action="delete2.jsp">
        <table>
        <tr><td>id</td><td><input type="text" name="id" class="txt"/></td></tr>

        </table>
        <input type="submit" value="Delete"/>
        </form>
        <%
    Connection con;
    Statement st;
    PreparedStatement pst=null;
    String id=request.getParameter("id");
    if(id!=null && id!="")
               {
        int id1=Integer.parseInt(id);

        try
       {   
    String Url="jdbc:mysql://localhost:3306/mobile";
    Class.forName("com.mysql.jdbc.Driver");   
    con=DriverManager.getConnection(Url,"root","root123");
    st=con.createStatement();
    pst=con.prepareStatement("delete from  register where id=?");
    pst.setInt(1,id1);
    pst.executeUpdate();

    out.println("Deleted Sucessfully");
    }catch(Exception e)
       {
    out.print(e);
       }

}%>
    </body>
</html>


Related Tutorials/Questions & Answers:
Java Hospital management system
Java Hospital management system  hospital management    <%@page contentType="text/html" pageEncoding="UTF-8"%> <%@page import="java.sql.*" %> <!DOCTYPE html> <html> <body>
hospital Management System
hospital Management System  hello sir i want hospital management system Source code in java swing Back-end Oracle 9i. i want these type of model 1. Username and password 2. staff details i. Doctor details ii. nurse
Advertisements
hospital management bill
hospital management bill  bill preperation
hospital management bill
hospital management bill  bill preperation
hospital management bill
hospital management bill  bill preperation
hospital management bill
hospital management bill  bill preperation    <%@page contentType="text/html" pageEncoding="UTF-8"%> <%@page import="java.sql.*" %> <!DOCTYPE html> <html> <head> <meta
Payroll and Leave management system in java web application
Payroll and Leave management system in java web application  Hi Can any one help me with leave management and payroll management system sample source...) as per now to me. And also let me know which technology in java for best fit
for management system
for management system  i need to store some data and to display the stored data and again to modify the data that have been stored and also with either java swing or java awt in format of similar to tat of form
i need attendce management system source code in java
i need attendce management system source code in java  i need attendance management system source code in java
Attendence Management system
Attendence Management system  coding for Attendance management system using java applet
Bank Management System
Bank Management System  I need a Bank Management System Project in Java Swing
Pharmacy Management System
Pharmacy Management System  hi all i wanna Pharmacy management system in java or vb.net or web application >> << thx all
Employee Management System
Employee Management System  coding for employee management system
Employee Management System
Employee Management System  coding for employee management system
coding for employee management system
coding for employee management system  coding for employee management system
library management system
library management system  coding for library management system
material management system
material management system  hi frnds i need a mini project based on material management system if u have the project please post to me on java beginners
web based java application for Leava and Payroll management system
web based java application for Leava and Payroll management system  Hello Team Good Morning, Can any one please help me with the source code for web based java application for Leava and Payroll management system. Thank you
library management system jsp project
library management system jsp project  i need a project of library management system using jsp/java bean
library management system jsp project
library management system jsp project  i need a project of library management system using jsp/java bean
library management system jsp project
library management system jsp project  i need a project of library management system using jsp/java bean
attendance management system
attendance management system  i want to project demo on attendance management system
contact and activity management system
contact and activity management system  how to make a web application on contact and activity management system. can anyone help me
generic workflow management system
generic workflow management system  How to design a generic workflow system for applying scholarship and its processes in online
generic workflow management system
generic workflow management system  How to design a generic workflow system for applying scholarship and its processes in online
Fleek Management System(FMS)
Fleek Management System(FMS)  Hi, Please anybody can reply....I wanna develop a project(FMS) in Java , which was already developed in PHP. Now what technologies should i apply for developing this project. The main aim
Complaint Management System
Complaint Management System  Hi......i have to create a complaint management system where the user calls a toll free number and a computerized voice... with the complaint number. I have no idea as to how I should go about this system
STUDENT MANAGEMENT SYSTEM
STUDENT MANAGEMENT SYSTEM  can any one help me with the coding if this using awt please!!!!!!! STUDENT MANAGEMENT SYSTEM Table details Student (STUDENTID, NAME, ADDRESS, PHONE, MAILID, COURSEID (Foreign Key)) Course (COURSEID
resume management system
resume management system  hey coders im making an web application for managing resumes.. the application should be able to manage all incoming resumes and information from the client.. m using java as the front end and oracle
Hospital project
Hospital project  hello sir i want hospital management system Source code in C # swing Back-end sql sever 2005. i want these type of model 1. Username and password 2. staff details i. Doctor details ii. nurse details iii
Hostel management information system
Hostel management information system  Can u send me mvc based project of hostel management systenm source code
Student Management System
Student Management System  Hi , Friend can i get the solution for connecting login page of JFrames to JDBC
Library Management System
Library Management System  Hello I am developing program of library management system where I need to use C++ but without class. So I am facing problem at two place, One is when there are no books information at that time
attendance management system source code
attendance management system source code  sir i want full ateendance management project please send me source code i am asking so many members... answer so please send code it's very urgent
Java Telephone directory management system
Java Telephone directory management system Here we are going to create a java application for Telephone directory system. For this, we have accepted ID, name...(System.in); int menu = 0; System.out.println("Telephone Directory Management
creating an applet for student management system
a student management system having the following characteristics: The interface...creating an applet for student management system  Write an applet/awt application which displays the interface for the program described below. When
Vehicle fleet management system
a better vehicle fleet management system. This system involves management... management system in his planning.... Management of Fleet: It involves several things, from keeping records
Fleet management system software evaluation
Following article is about Fleet management system software evaluation. People... they are running. And fleet management system software is considered as the spine... Navigation Satellite System). The most important part in the management
Database Management System (DBMS)
Database Management System (DBMS) A Database Management System... management system (RDBMS). A newer kind of DBMS is the object-oriented database management system (ODBMS). The DBMS are categorized according to their data types
Hospital Patient
Hospital Patient  import java.util.ArrayList; import... java.util.Map; import java.util.Scanner; public class Hospital... { System.out.println("::::::::Hospital::::::::"); System.out.println("Enter 1.Add a patient
hospital patient
hospital patient  import java.util.ArrayList; import java.util.Calendar; import java.util.Date; import java.util.Scanner; public class PatientFunction { Scanner s=new Scanner(System.in); public Patient
Best fleet management system
Best fleet management system involves a good coordination between the manager... and less fuel usage. Best fleet management system is the key for the success.... A good fleet management involves taking good care of their vehicles on which
project on bank management system - Swing AWT
project on bank management system  plz give me code to move from by clicking a button on one panel to other panel and the add textfield and label...(); } public SwingFrame(){ JFrame f = new JFrame("Frame in Java Swing"); JPanel p
Open Source content Management System
Management and Publishing System written in 100% pure Java. It is based on open... Open Source content Management System The Open Source Content Management System OpenCms is a professional level Open Source Website Content
Utility Fleet Management System
related to utility fleet management system. People in these businesses always want... utility fleet management system. The paper work hence gets easy and becomes... and stored by using this system. Utility fleet management system helps the owner
How Fleet management System works
If you have a fleet and you are wondering how fleet management system works... to get anxious any more. Fleet management requires some skilled labor, software.... Fleet management is the management of vehicles that are used by private
Outsourcing Process Management,Outsourcing Business Process Management,Outsourcing Process Management System
Outsourcing Process Management Introduction The success... and the pricing before they start on a contract. Communication Management Regular... in instructions and feedback, a system for clarifying doubts- these are all
How GPS is used in Fleet Management system
Most of the people ask this question that how GPS is used in fleet management system and how they can get benefit by its aid. Actually its not rocket science... information about its working. Global Positioning System mostly known by its acronym
Java System class
Java System class  What is the purpose of the System class
fingerprint identification system on java
fingerprint identification system on java  sir i want full "fingerprint ateendance management" project on java please send me source code i am asking so many members but nobody send answer one of my friend suggest ask question
 

 

 

DMCA.com