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: documentation for net banking, multi banking system project documentation java source code, source code for mobile banking in java, res irc44, ppt for net banking, net banking using java j2ee, seminar on cloud net banking,

[-]
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,587 07-02-2017, 03:41 PM
Last Post: NARESHLAFOOT
  Window Events Java source code smart paper boy 1 3,663 02-03-2012, 10:48 AM
Last Post: seminar paper
  UDP server java source code smart paper boy 1 3,804 05-01-2012, 05:50 PM
Last Post: jeslinapeter
  UDP client Java source code smart paper boy 2 3,665 12-12-2011, 09:56 AM
Last Post: seminar addict
  Text Demo Java source code smart paper boy 0 2,070 30-08-2011, 12:44 PM
Last Post: smart paper boy
  Text Area Demo Java source code smart paper boy 0 2,081 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,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,529 30-08-2011, 12:38 PM
Last Post: smart paper boy

Forum Jump: