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

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: banking projects in net, banking loan project source code, net banking using java j2ee, m banking source code, online banking source code java, php code for net banking, sms based mobile banking with source code in java,

[-]
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)

Messages In This Thread
Inter net banking java source code - by smart paper boy - 30-08-2011, 02:38 PM

Possibly Related Threads...
Thread Author Replies Views Last Post
  Simple Key Events Java source code smart paper boy 3 3,589 07-02-2017, 03:41 PM
Last Post: NARESHLAFOOT
  Window Events Java source code smart paper boy 1 3,669 02-03-2012, 10:48 AM
Last Post: seminar paper
  UDP server java source code smart paper boy 1 3,806 05-01-2012, 05:50 PM
Last Post: jeslinapeter
  UDP client Java source code smart paper boy 2 3,666 12-12-2011, 09:56 AM
Last Post: seminar addict
  Text Demo Java source code smart paper boy 0 2,073 30-08-2011, 12:44 PM
Last Post: smart paper boy
  Text Area Demo Java source code smart paper boy 0 2,083 30-08-2011, 12:44 PM
Last Post: smart paper boy
  Servlet Database Java source code smart paper boy 0 2,456 30-08-2011, 12:42 PM
Last Post: smart paper boy
  server test Java source code smart paper boy 0 2,258 30-08-2011, 12:42 PM
Last Post: smart paper boy
  Ser To App java source code smart paper boy 0 1,672 30-08-2011, 12:39 PM
Last Post: smart paper boy
  SB Demo java source code smart paper boy 0 1,532 30-08-2011, 12:38 PM
Last Post: smart paper boy

Forum Jump: