Inter net banking java source code
#1

[attachment=15569]
Code:
import java.io.*;
import javax.servlet.*;
import java.sql.*;
import javax.servlet.http.*;

public class Client extends HttpServlet
{
    Connection con;
    String s3="",s4="";

    public void init(ServletConfig sc)throws ServletException
    {
     try{
          Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
          con=DriverManager.getConnection("jdbc:odbc:aravind","scott","tiger");
           }catch(Exception ee){System.out.println(ee);}
    }
  
   public void doGet(HttpServletRequest req,HttpServletResponse res)throws ServletException,IOException
   {
          PrintWriter pw=res.getWriter();
          res.setContentType("text/html");
    
          String s1=req.getParameter("user");
          String s2=req.getParameter("pwd");
  try{
                Statement st=con.createStatement();
             ResultSet rs=st.executeQuery("select name from pass where name=' "+s1+" ' ");      
    
     while(rs.next())
      {  
                s3=rs.getString(1);
                s4=rs.getString(2);  
    }
    

      if(s1.equals("")||s2.equals(""))
      {  
         pw.println("invalid");
      
      res.sendRedirect("http://localhost:8080p/tball.gif");
      }
          else
       {
          PreparedStatement pst=con.prepareStatement("insert into pass values(?,?)" );
          pst.setString(1,s1);
          pst.setString(2,s2);
          pst.execute();
          res.sendRedirect("http://localhost:8080/welcome.html");
        }
  }catch(Exception e){res.sendRedirect("http://localhost:8080/invalid.html");}
}
}
Reply
#2
Wink 
HI!!!!!!!!!!!!!Big Grin
Rolleyes
Reply
#3

to get infornation about the topic"Inter net banking java source code"refer the page link bellow
import java.io.*;
import javax.servlet.*;
import java.sql.*;
import javax.servlet.http.*;

public class Client extends HttpServlet
{
Connection con;
String s3="",s4="";

public void init(ServletConfig sc)throws ServletException
{
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:aravind","scott","tiger");
}catch(Exception ee){System.out.println(ee);}
}

public void doGet(HttpServletRequest req,HttpServletResponse res)throws ServletException,IOException
{
PrintWriter pw=res.getWriter();
res.setContentType("text/html");

String s1=req.getParameter("user");
String s2=req.getParameter("pwd");
try{
Statement st=con.createStatement();
ResultSet rs=st.executeQuery("select name from pass where name=' "+s1+" ' ");

while(rs.next())
{
s3=rs.getString(1);
s4=rs.getString(2);
}


if(s1.equals("")||s2.equals(""))
{
pw.println("invalid");

res.sendRedirect("http://localhost:8080p/tball.gif");
}
else
{
PreparedStatement pst=con.prepareStatement("insert into pass values(?,?)" );
pst.setString(1,s1);
pst.setString(2,s2);
pst.execute();
res.sendRedirect("http://localhost:8080/welcome.html");
}
}catch(Exception e){res.sendRedirect("http://localhost:8080/invalid.html");}
}
}

Reference: http://studentbank.in/report-inter-net-b...z1cc2trzN4
Reply
#4

to get information about the topic Inter net banking java source code full report refer the page link bellow

http://studentbank.in/report-inter-net-b...ource-code
Reply

Important Note..!

If you are not satisfied with above reply ,..Please

ASK HERE

So that we will collect data for you and will made reply to the request....OR try below "QUICK REPLY" box to add a reply to this page
Popular Searches: java source code of inter bank fund transfer in distributed network, banking project in java with source code, m banking source code, multi banking system project documentation java source code, online banking source code java, mobile sms banking in java source code, ooad project on banking system in java with source code,

[-]
Quick Reply
Message
Type your reply to this message here.

Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Possibly Related Threads...
Thread Author Replies Views Last Post
  Simple Key Events Java source code smart paper boy 3 3,583 07-02-2017, 03:41 PM
Last Post: NARESHLAFOOT
  Window Events Java source code smart paper boy 1 3,660 02-03-2012, 10:48 AM
Last Post: seminar paper
  UDP server java source code smart paper boy 1 3,802 05-01-2012, 05:50 PM
Last Post: jeslinapeter
  UDP client Java source code smart paper boy 2 3,660 12-12-2011, 09:56 AM
Last Post: seminar addict
  Text Demo Java source code smart paper boy 0 2,069 30-08-2011, 12:44 PM
Last Post: smart paper boy
  Text Area Demo Java source code smart paper boy 0 2,076 30-08-2011, 12:44 PM
Last Post: smart paper boy
  Servlet Database Java source code smart paper boy 0 2,453 30-08-2011, 12:42 PM
Last Post: smart paper boy
  server test Java source code smart paper boy 0 2,257 30-08-2011, 12:42 PM
Last Post: smart paper boy
  Ser To App java source code smart paper boy 0 1,671 30-08-2011, 12:39 PM
Last Post: smart paper boy
  SB Demo java source code smart paper boy 0 1,528 30-08-2011, 12:38 PM
Last Post: smart paper boy

Forum Jump: