Beruflich Dokumente
Kultur Dokumente
90530306694
Introduction
The main objective of the proposed solution is to be automated the various functions and activities of the organization through Internet. The solution will facilitate to the customers and the account holders with the different modules. This solution is very much necessary for the private sector banks and the corporate sector. The industry will take a new shape and explore like never before. Using the solution the customers and account holders can generate various kinds of reports.
1.1
Purpose:
SGU is a huge step forward in terms of convenience and safety in the organization. Most industry have website and most of these web sites have areas for online banking customers. Though it cannot take care of every type of transaction for you, it does provide a great deal of ease for tedious tasks that would require you to go to the bank frequently. You can manage all of your accounts this way and transfer money in between them. It will show the history of an account for the last thirty days. If you need the date beyond then and you do not have your paper statement, you will have to go to the organization. Tellers can print you out the previous month. Beyond one month, the supervisor will have to assist you. With online shopping, though, it reduces your need for this.
1.2
Scope:
The scope of this project is limited to the activities of the operations unit of the banking system.Which include opening of Account, Update profiles, Customers details of the organization and pay. The Internet provides a secure medium for shopping various items from the organization, and also update their personal details through the Internets.
Shivrani Arambam
SGU
90530306694
2. Literature Survey
2.1 About JAVA
Initially the language was called as oak but it was renamed as Java in 1995. The primary motivation of this language was the need for a platform-independent (i.e., architecture neutral) language that could be used to create software to be embedded in various consumer electronic devices. Java is a programmers language. Java is cohesive and consistent. Except for those constraints imposed by the Internet environment, Java gives the programmer, full control. Finally, Java is to Internet programming where C was to system programming.
JAVA CAN BE USED TO CREATE TWO TYPES OF PROGRAMS APPLICATIONS AND APPLETS: An application is a program that runs on our Computer under the
operating system of that computer. It is more or less like one creating using C or C++. Javas ability to create Applets makes it important. An Applet is an application designed to be transmitted over the Internet and executed by a Java compatible web browser. An applet is actually a tiny Java program, dynamically downloaded across the network, just like an image. But the difference is, it is an intelligent program, not just a media file. It can react to the user input and dynamically change.
SGU
90530306694
private information, such as credit card numbers, bank account balances, and passwords. Java answers both these concerns by providing a firewall between a network application and your computer. When you use a Java-compatible Web browser, you can safely download Java applets without fear of virus infection or malicious intent.
PORTABILITY
For programs to be dynamically downloaded to all the various types of platforms connected to the Internet, some means of generating portable executable code is needed .As you will see, the same mechanism that helps ensure security also helps create portability. Indeed, Javas solution to these two problems is both elegant and efficient.
Shivrani Arambam
SGU
90530306694
Overall Description
Javabytecode
.Class
JavaVM
Java programming uses to produce byte codes and executes them. The first box indicates that the Java source code is located in a. Java file that is processed with a Java compiler called javac. The Java compiler produces a file called a. class file, which contains the byte code. The. Class file is then loaded across the network or loaded locally on your machine into the execution environment is the Java virtual machine, which interprets and executes the byte code 2.1. 2 JAVA ARCHITECTURE Java architecture provides a portable, robust, high performing environment for development. Java provides portability by compiling the byte codes for the Java Virtual Machine, which is then interpreted on each platform by the run-time environment. Java is a dynamic system, able to load code when needed from a machine in the same room or across the planet. 2.1.3COMPILATION OF CODE When you compile the code, the Java compiler creates machine code (called byte code) for a hypothetical machine called Java Virtual Machine (JVM). The JVM is supposed to execute the byte code. The JVM is created for overcoming the issue of portability. The code is written and compiled for one machine and interpreted on all machines. This machine is called Java Virtual Machine.
Shivrani Arambam
SGU
90530306694
PC Compiler
Source Code .. .. ..
Macintosh Compiler
SPARC
Compiler
During run-time the Java interpreter tricks the bytecode file into thinking that it is running on a Java Virtual Machine. In reality this could be a Intel Pentium Windows 95 or SunSARC station running Solaris or Apple Macintosh running system and all could receive code from any computer through Internet and run the Applets.
SIMPLE
Java was designed to be easy for the Professional programmer to learn and to use effectively. If you are an experienced C++ programmer, learning Java will be even easier. Because Java inherits the C/C++ syntax and many of the object oriented features of C++. Most of the confusing concepts from C++ are either left out of Java or implemented in a cleaner, more approachable manner. In Java there are a small number of clearly defined ways to accomplish a given task.
OBJECT ORIENTED
Java was not designed to be source-code compatible with any other language. This allowed the Java team the freedom to design with a blank slate. One outcome of this was a clean usable, pragmatic approach to objects. The object model in Java is simple and easy to extend, while simple types, such as integers, are kept as highperformance non-objects.
Shivrani Arambam
SGU
90530306694
ROBUST
The multi-platform environment of the Web places extraordinary demands on a program, because the program must execute reliably in a variety of systems. The ability to create robust programs was given a high priority in the design of Java. Java is strictly typed language; it checks your code at compile time and run time. Java virtually eliminates the problems of memory management and deallocation, which is completely automatic. In a well-written Java program, all run time errors can and should be managed by your program.
2.2 Servlets
INTRODUCTION
The Java web server is JavaSoft's own web Server. The Java web server is just a part of a larger framework, intended to provide you not just with a web server, but also with tools. To build customized network servers for any Internet or Intranet client/server system. Servlets are to a web server, how applets are to the browser.
ABOUT SERVLETS
Servlets provide a Java-based solution used to address the problems currently associated with doing serverside programming, including inextensible scripting solutions, platform-specific APIs, and incomplete interfaces. Servlets are objects that conform to a specific interface that can be plugged into a Java-based server. Servlets are to the server-side what applets are to the client-side - object byte codes that can be dynamically loaded off the net. They differ from applets in that they are faceless objects (without graphics or a GUI component). They serve as platform independent, dynamically loadable, plugable helper byte code objects on the server side that can be used to dynamically extend server-side functionality. For example, an HTTP Servlets can be used to generate dynamic HTML content. When you use Servlets to do dynamic content you get the following advantages:
Theyre faster and cleaner than CGI scripts They use a standard API (the Servlets API) They provide all the advantages of Java (run on a variety of servers without needing to be rewritten).
ATTRACTIVENESS OF SERVLETS
There are many features of Servlets that make them easy and attractive to use. These include:
SGU
90530306694 Can be loaded and invoked from a local disk or remotely across the network. Can be linked together, or chained, so that one Servlets can call another Servlets, or several Servlets in sequence.
Can be called dynamically from within HTML pages, using server-side include tags. Are secure - even when downloading across the network, the Servlets security model and Servlets sandbox protect your system from unfriendly behavior.
The protocol being used to transmit on the net How it is loaded The server environment it will be running in
These qualities are important, because it allows the Servlet API to be embedded in many different kinds of servers. There are other advantages to the Servlet API as well. These include:
Its extensible - you can inherit all your functionality from the base classes made available to you.
FEATURES OF SERVLETS
Servlets are fast. Since Servlets only need to be loaded once, they offer much better performance over their CGI counterparts.
Servlets are platform independent. Servlets are extensible. Java is a robust, object-oriented programming language, which easily can be extended to suit your needs
LOADING SERVLETS
Servlets can be loaded from three places from a directory that is on the CLASSPATH. The CLASSPATH of the JavaWebServer includes service root/classes/ which is where the system classes reside. From the <SERVICE_ROOT /Servlets/ directory. This is *not* in the server's class path. A class loader is used to create Servlets from this directory. New Servlets can be added - existing Servlets can be recompiled and the server will notice these changes.
7 Shivrani Arambam
SGU
90530306694
From a remote location. For this a code base like http: // nine.eng / classes / foo / is required in addition to the Servlets class name. Refer to the admin GUI docs on Servlet section to see how to set this up.
INVOKING SERVLETS
A Servlet invoker is a Servlet that invokes the "service" method on a named Servlet. If the Servlet is not loaded in the server, then the invoker first loads the Servlet (either from local disk or from the network) and the then invokes the "service" method. Also like applets, local Servlets in the server can be identified by just the class name. In other words, if a Servlet name is not absolute, it is treated as local. A client can invoke Servlets in the following ways:
The client can ask for a document that is served by the Servlet. The client (browser) can invoke the Servlet directly using a URL, once it has been mapped using the Servlet Aliases section of the admin GUI.
The Servlet can be invoked through server side include tags. The Servlet can be invoked by placing it in the Servlets/ directory. The Servlet can be invoked by using it in a filter chain.
2.3 JavaScript
JavaScript is a script-based programming language that was developed by Netscape Communication Corporation. JavaScript was originally called Live Script and renamed as JavaScript to indicate its relationship with Java. JavaScript supports the development of both client and server components of Webbased applications. On the client side, it can be used to write programs that are executed by a Web browser within the context of a Web page. On the server side, it can be used to write Web server programs that can process information submitted by a Web browser and then updates the browsers display accordingly Even though JavaScript supports both client and server Web programming, we prefer JavaScript at Client side programming since most of the browsers supports it. JavaScript is almost as easy to learn as HTML, and JavaScript statements can be included in HTML documents by enclosing the statements between a pair of scripting tags <SCRIPTS>..</SCRIPT>. <SCRIPT LANGUAGE = JavaScript>
8 Shivrani Arambam
SGU
90530306694
JAVASCRIPT STATEMENTS
</SCRIPT> Here are a few things we can do with JavaScript :
Validate the contents of a form and make calculations. Add scrolling or changing messages to the Browsers status line. Animate images or rotate images that change when we move the mouse over them. Detect the browser in use and display different content for different browsers. Detect installed plug-ins and notify the user if a plug-in is required.
separate languages. They are both useful for different things; in fact they can be used together to combine their advantages.
ADVANTAGES
JavaScript can be used for Sever-side and Client-side scripting. It is more flexible than VBScript. JavaScript is the default scripting languages at Client-side since all the browsers supports it.
SGU
90530306694
HTML provides tags (special codes) to make the document look attractive. HTML tags are not casesensitive. Using graphics, fonts, different sizes, color, etc., can enhance the presentation of the document. Anything that is not a tag is part of the document itself.
ADVANTAGES
A HTML document is small and hence easy to send over the net. It is small because it does not include formatted information. HTML is platform independent. HTML tags are not case-sensitive.
10
Shivrani Arambam
SGU
90530306694
2.4
JDBC
JDBC is a Java API for executing SQL statements. (As a point of interest, JDBC is a trademarked name and is not an acronym; nevertheless, JDBC is often thought of as standing for Java Database Connectivity. It consists of a set of classes and interfaces written in the Java programming language. JDBC provides a standard API for tool/database developers and makes it possible to write database applications using a pure Java API. Using JDBC, it is easy to send SQL statements to virtually any relational database. One can write a single program using the JDBC API, and the program will be able to send SQL statements to the appropriate database. The combinations of Java and JDBC lets a programmer write it once and run it anywhere.
FUNCTIONS OF JDBC
Simply put, JDBC makes it possible to do three things:
Establish a connection with a database Send SQL statements Process the results.
11
Shivrani Arambam
SGU
90530306694
4. A Java API like JDBC is needed in order to enable a "pure Java" solution. When ODBC is used, the ODBC driver manager and drivers must be manually installed on every client machine. When the JDBC driver is written completely in Java, however, JDBC code is automatically installable, portable, and secure on all Java platforms from network computers to mainframes.
JDBC-ODBC BRIDGE
If possible, use a Pure Java JDBC driver instead of the Bridge and an ODBC driver. This completely eliminates the client configuration required by ODBC. It also eliminates the potential that the Java VM could be corrupted by an error in the native code brought in by the Bridge (that is, the Bridge native library, the ODBC driver manager library, the ODBC driver library, and the database client library).
FEATURES OF JSP:
12 Shivrani Arambam
SGU
90530306694
PORTABILITY
Java Server Pages files can be run on any web server or web-enabled application server that provides support for them. Dubbed the JSP engine, this support involves recognition, translation, and management of the Java Server Page lifecycle and its interaction components.
COMPONENTS
It was mentioned earlier that the Java Server Pages architecture can include reusable Java components. The architecture also allows for the embedding of a scripting language directly into the Java Server Pages file. The components current supported include Java Beans, and Servlets.
PROCESSING
A Java Server Pages file is essentially an HTML document with JSP scripting or tags. The Java Server Pages file has a JSP extension to the server as a Java Server Pages file. Before the page is served, the Java Server Pages syntax is parsed and processed into a Servlet on the server side. The Servlet that is generated outputs real content in straight HTML for responding to the client.
ACCESS MODELS
A Java Server Pages file may be accessed in at least two different ways. A clients request comes directly into a Java Server Page. In this scenario, suppose the page accesses reusable Java Bean components that perform particular well-defined computations like accessing a database. The result of the Beans computations, called result sets is stored within the Bean as properties. The page uses such Beans to generate dynamic content and present it back to the client. In both of the above cases, the page could also contain any valid Java code. Java Server Pages architecture encourages separation of content from presentation.
SGU
90530306694
JDBC CONNECTIVITY The JDBC provides database-independent connectivity between the J2EE platform and a wide of tabular data sources. JDBC technology allows an Application Component Provider range to: Perform connection and authentication to a database server Manager transactions Move SQL statements to a database engine for preprocessing and execution Execute stored procedures
Overview
Consider the follow scenario :
Developer A writes a service that performs some useful function. He regularly updates this service, adding new features and improving existing ones. Developer B wishes to use the service provided by Developer A. However, it's inconvenient for A to supply B with an update every time.
Java RMI provides a very easy solution! Since RMI can dynamically load new classes, Developer B can let RMI handle updates automatically for him. Developer A places the new classes in a web directory, where RMI can fetch the new updates as they are required.
Fig. 2.3 Connections made when client uses RMI Figure 1 shows the connections made by the client when using RMI. Firstly, the client must contact an RMI registry, and request the name of the service. Developer B won't know the exact location of the RMI service, but he knows enough to contact Developer A's registry. This will point him in the direction of the service he wants to call..
14
Shivrani Arambam
SGU
90530306694
Developer A's service changes regularly, so Developer B doesn't have a copy of the class. Not to worry, because the client automatically fetches the new subclass from a webserver where the two developers share classes. The new class is loaded into memory, and the client is ready to use the new class. This happens transparently for Developer B - no extra code need to be written to fetch the class
15
Shivrani Arambam
SGU
90530306694
3. System Analysis
3.1 EXISTING SYSTEM:
In the existing system the transactions are done only manually but in proposed system we have to computerize all the banking transaction using the software Online Banking.
3.1.1 DIS-ADVANTAGES:
1. Lack of security of data. 2. More man power 3. Time consuming 4. Damage of machines due to lack of attention. 5. Consumes large volume of pare work.
3.2.1 ADVANTAGES:
The following are the advantages of proposed system 1. The user can access the system at any time, because its 24-hour online from anywhere in the world. 2. The customer can save his money and time that is a valuable one in todays day- to day life. 3. It provides easy to use and user friendly interface for the user. 4. Minimum time required 5. Better service 6. Security of data 7. Greater efficiency.
16
Shivrani Arambam
SGU
90530306694
HARDWARE REQUIREMENTS
Processor Speed Hard Disk RAM : Pentium 2. GHz or above :800 MHz :80 GB :512 MB
17
Shivrani Arambam
SGU
90530306694
5.System Design
5.1
1. 2. 3. 4. 5. 6. 7. 8.
System specification:
Pentium 4 with minimum 1.x GHz processor or equivalent processor Minimum 128 MB RAM (1 GB RAM recommended) Hard disk with minimum 1 GB free space NIC (network interface card) connected to network pentium III Ram : 64 MB. Hard disk : 10.2 GB. Monitor : SVGA color monitor. Keyboard : 105 standard mouse.
2. Login page:
2.1Registered User: Registered user can directly login into its account. The user need to Provide its username and password in order to authenticate itself.
2.2 Registration:
To open an account user needs to register itself and provide specific Information. Input: Customer details Output: Customer details including its account number. 3.Comany: Company 4.Products: In products, various items are sold here in accruate price. 5.Quality Assure : Quality for the products are best. 6. Close account form: In close account form, a customer can close its account permanently.its details will be permanently deleted from the organization database.
SGU
90530306694
UML Diagram:
( id,pwd )
( ok ) Authenticated
19
Shivrani Arambam
SGU
90530306694
Customer
login
Account creation
Check account
Anslyse products
Update database
Organization Database
Organization Database
show details
Customer
Account details
20
Shivrani Arambam
SGU
90530306694
Implementation
Implementation is the process of having systems personnel check out and put new equipment into use, train users, install the new app. Depending on the size of the organization that will be involved in using the application and the risk associated with its use, systems developers may choose to test the operation in only one area of the firm, say in one department or with only one or two persons.
1.HOME PAGE:
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Global Banking ..</title> <link href="style.css" rel="stylesheet" type="text/css"> <script type="text/javascript"> function ctck() { var sds = document.getElementById("dum"); } </script> </head> <body> <div id="top_links"> <div id="header"> <br/> <h2>Welcome To</h2> <h2>CORPORATE ONLINE BANK</h2> <A href="index.html"><IMG SRC="images/home1.gif"></IMG></A> </div> <div id="navigation"> <ul> <li><a href="create.html">NEW ACCOUNT</a></li> <li><a href="balance1.jsp">BALANCE</a></li> <li><a href="deposit1.jsp">DEPOSIT</a></li> <li><a href="withdraw1.jsp">WITHDRAW</a></li> <li><a href="transfer1.jsp">TRANSFER</a></li> <li><a href="closeac1.jsp">CLOSE A/C</a></li> <li><a href="about.jsp">Contact Us</a></li> </ul> </div> <table style="width:897px; background:#FFFFFF; margin:0 auto;"> <tr> <td width="300" valign="top" style="border-right:#666666 1px dotted;"> <div id="services"><h1>Services</h1><br> <marquee><img src="images/image_22.gif"><img><img src="images/image_23.gif"><img><img src="images/image_24.gif"><img><img src="images/image_25.gif"><img><img src="images/image_26.gif"><img><img src="images/image_27.gif"><img><img src="images/image_28.gif"><img></marquee></div>
21 Shivrani Arambam
SGU
90530306694
</td><td width="1200" valign="top"> <table><% try { Connection con1=GetCon.getCon(); PreparedStatement ps1=con1.prepareStatement("Select max(accountno) from newaccount"); ResultSet rs1=ps1.executeQuery(); while(rs1.next()){ int accountno=rs1.getInt(1); request.setAttribute("accountno",accountno);} Integer accountno=(Integer)request.getAttribute("accountno"); Connection con=GetCon.getCon(); PreparedStatement ps=con.prepareStatement("Select * from NEWACCOUNT where accountno='"+accountno+"'"); ResultSet rs=ps.executeQuery(); out.print("<table align='left' cellspacing='5' cellpadding='5'>"); while(rs.next()){ session.setAttribute("accountno",accountno); System.out.print(accountno); out.print("<tr>"); out.print("<td><b> Welcome"+" "+" " + rs.getString(2) + "...!!!your account has been opened.<b></td>"); out.println("<br>"); out.print("</tr>"); out.print("<tr>"); out.println("<td>Your Account no.:" + rs.getInt(1) +"</td>" ); out.println("<br>"); out.print("</tr>"); out.print("</tr>"); } out.print("</table>"); } catch (SQLException e) { e.printStackTrace(); } %><td width="299" valign="top"> <div id="welcome" style="border-right:#666666 1px dotted;"><h1>Welcome</h1><br> <center><img src="images/globe_10.gif" alt="business" width="196" height="106"></center><br><p>Online Banking is an Indian diversified financial services company headquartered in Mumbai, Maharashtra. It is the second largest bank in India by assets and third largest by market capitalization. It offers a wide range of banking products and financial services to corporate and retail customers through a variety of delivery channels and through its specialized subsidiaries in the areas of investment banking, life and non-life insurance, venture capital and asset management.</p> </div> </td> </table> %></table> <%@ page import="java.sql.*"%> <%@ page import="java.io.*" %> <%@ page import="javax.servlet.*"%> <%@ page import="g.*" %>
22
Shivrani Arambam
SGU
90530306694
REGISTER PAGE:
package g; import java.sql.*; public class RegisterUser { static int status=0; static int accountno=001; public static int register(String username,String password,String repassword,double amount,String adderess,double phone){ Connection con=GetCon.getCon(); PreparedStatement ps; try {ps = con.prepareStatement("Insert into NEWACCOUNT values(?,?,?,?,?,?,?)"); ps.setInt(1,accountno); ps.setString(2,username); ps.setString(3,password); ps.setString(4,repassword); ps.setDouble(5,amount); ps.setString(6,adderess); ps.setDouble(7,phone); status=ps.executeUpdate(); } catch (SQLException e) { e.printStackTrace();} return status;} } LOGIC CODE: <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Global Banking ..</title> <link href="style.css" rel="stylesheet" type="text/css"> <script type="text/javascript"> function ctck() { var sds = document.getElementById("dum"); } </script> </head> <body> <div id="top_links"> <div id="header"> <br/> <h2>Welcome To</h2> <h2>CORPORATE ONLINE BANK</h2> <A href="index.html"><IMG SRC="images/home1.gif"></IMG></A> </div> <div id="navigation"> <ul> <li><a href="create.html">NEW ACCOUNT</a></li> <li><a href="balance1.jsp">BALANCE</a></li> <li><a href="deposit1.jsp">DEPOSIT</a></li> <li><a href="withdraw1.jsp">WITHDRAW</a></li>
23 Shivrani Arambam
SGU
90530306694
<li><a href="transfer1.jsp">TRANSFER</a></li> <li><a href="closeac1.jsp">CLOSE A/C</a></li> <li><a href="about.jsp">Contact Us</a></li> </ul> </div> <table style="width:897px; background:#FFFFFF; margin:0 auto;"> <tr> <td width="300" valign="top" style="border-right:#666666 1px dotted;"><div id="services"><h1>Services</h1><br> <marquee><img src="images/image_22.gif"><img><img src="images/image_23.gif"><img><img src="images/image_24.gif"><img><img src="images/image_25.gif"><img><img src="images/image_26.gif"><img><img src="images/image_27.gif"><img><img src="images/image_28.gif"><img></marquee> </div> </td> <td width="1200" valign="top"> <table><% try { Connection con1=GetCon.getCon(); PreparedStatement ps1=con1.prepareStatement("Select max(accountno) from newaccount"); ResultSet rs1=ps1.executeQuery(); while(rs1.next()){ int accountno=rs1.getInt(1); request.setAttribute("accountno",accountno); } Integer accountno=(Integer)request.getAttribute("accountno"); Connection con=GetCon.getCon(); PreparedStatement ps=con.prepareStatement("Select * from NEWACCOUNT where accountno='"+accountno+"'"); ResultSet rs=ps.executeQuery(); out.print("<table align='left' cellspacing='5' cellpadding='5'>"); while(rs.next()){ session.setAttribute("accountno",accountno); System.out.print(accountno); out.print("<tr>"); out.print("<td><b> Welcome"+" "+" " + rs.getString(2) + "...!!!your account has been opened.<b></td>"); out.println("<br>"); out.print("</tr>"); out.print("<tr>"); out.println("<td>Your Account no.:" + rs.getInt(1) +"</td>" ); out.println("<br>"); out.print("</tr>"); out.print("</tr>"); } out.print("</table>"); } catch (SQLException e) { e.printStackTrace(); } %><td width="299" valign="top"><div id="welcome" style="border-right:#666666 1px dotted;"><h1>Welcome</h1><br>
24 Shivrani Arambam
SGU
90530306694
<center><img src="images/globe_10.gif" alt="business" width="196" height="106"></center><br> <p>Online Banking is an Indian diversified financial services company headquartered in Mumbai, Maharashtra. It is the second largest bank in India by assets and third largest by market capitalization. It offers a wide range of banking products and financial services to corporate and retail customers through a variety of delivery channels and through its specialized subsidiaries in the areas of investment banking, life and non-life insurance, venture capital and asset management.</p></div></td> </table>%></table> <%@ page import="java.sql.*"%> <%@ page import="java.io.*" %> <%@ page import="javax.servlet.*"%> <%@ page import="g.*" %>
25
Shivrani Arambam
SGU
90530306694
OPERATION CODE:
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>JSP Page</title> <title>Global Banking ..</title> <link href="style.css" rel="stylesheet" type="text/css"> <script type="text/javascript"> function ctck() { var sds = document.getElementById("dum"); } </script> </head> <body> <div id="top_links"> <div id="header"> <br/> <h2>Welcome To</h2> <h2>CORPORATE ONLINE BANK</h2> <A href="index.html"><IMG SRC="images/home1.gif"></IMG></A> </div> <div id="navigation"> <ul> <li><a href="login.jsp">LOGIN</a></li> <li><a href="balance1.jsp">BALANCE</a></li> <li><a href="deposit1.jsp">DEPOSIT</a></li> <li><a href="withdraw1.jsp">WITHDRAW</a></li> <li><a href="transfer1.jsp">TRANSFER</a></li> <li><a href="closeac1.jsp">CLOSE A/C</a></li> <li><a href="logout.jsp">LOGOUT</a></li> </ul> </div> <table style="width:897px; background:#FFFFFF; margin:0 auto;"> <tr><td width="300" valign="top" style="border-right:#666666 1px dotted;"> <div id="services"><h1>Services</h1><br> <marquee><img src="images/image_22.gif"><img><img src="images/image_23.gif"><img><img src="images/image_24.gif"><img><img src="images/image_25.gif"><img><img src="images/image_26.gif"><img><img src="images/image_27.gif"><img><img src="images/image_28.gif"><img></marquee> </div> </td> <td width="1200" valign="top"> <div id="welcome" style="border-right:#666666 1px dotted;"><h1>LOGIN</h1><br <table align="center" bgcolor="white"> <tr></tr><tr> <td> <form name=F1 onSubmit="return dil(this)" action="CreateServlet" > <table cellspacing="5" cellpadding="3"> <tr><td><b>
26 Shivrani Arambam
SGU
90530306694
<% out.print("Welcome"+ " "+" "+ session.getAttribute("k")+"!!"); %> </b></td></tr><tr><td><b>You can now perform your operations. </table> </form> </td></tr> </table> </div> </td> <td width="299" valign="top"> <div id="welcome" style="border-right:#666666 1px dotted;"><h1>Welcome</h1><br> <center><i mg src="images/globe_10.gif" alt="business" width="196" height="106"></center><br> <p>Online Banking is an Indian diversified financial services company headquartered in Mumbai, Maharashtra. It is the second largest bank in India by assets and third largest by market capitalization. It offers a wide range of banking products and financial services to corporate and retail customers through a variety of delivery channels and through its specialized subsidiaries in the areas of investment banking, life and non-life insurance, venture capital and asset management.</p> </div> </td> </tr></table> <div id="footer_top"> <div id="footer_navigation"> </div> <div id="footer_copyright" > Copyright 2012 Corporate Online Bank, India | Disclaimer | Privacy Policy</div> </div> <script type="text/javascript"> document.onload = ctck(); </script> </div> </body> </html>
27
Shivrani Arambam
SGU
90530306694
LOGIN CODE:
<%@page import="java.sql.*;"%> <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>JSP Page</title> </head> <body> <% try { String user=request.getParameter("user"); String pass=request.getParameter("pass"); Connection con=null; String str="select * from newaccount where username='"+user+"' and password='"+pass+"'"; Class.forName("oracle.jdbc.driver.OracleDriver"); con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","system","raghav"); Statement st=con.createStatement(); ResultSet rs=st.executeQuery(str); int count=0; while(rs.next()) {count++;} if(count>0) { session.setAttribute("k",user); session.setAttribute("l",pass); response.sendRedirect("operations.jsp");} else {out.print("not a valid user");}} catch(Exception ee) {}%> </body></html>
28
Shivrani Arambam
SGU
90530306694
BALANCE CODE:
<html> <head> <SCRIPT LANGUAGE="JavaScript"> function dil(form) { for(var i=0; i<form.elements.length; i++) {if(form.elements[i].value == "") { alert("Fill out all Fields") document.F1.accountno.focus() return false } } if(isNaN(document.F1.accountno.value)) { alert("Accountno must be number & can't be null") document.F1.accountno.value="" document.F1.accountno.focus() return false } if(!isNaN(document.F1.username.value)) { alert("User Name must be char's & can't be null") document.F1.username.value="" document.F1.username.focus() return false } if(!isNaN(document.F1.password.value)) { alert("Password must be char's & can't be null") document.F1.password.value=" " document.F1.password.focus() return false } return true } </SCRIPT> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Global Banking ..</title> <link href="style.css" rel="stylesheet" type="text/css"> <script type="text/javascript"> function ctck() { var sds = document.getElementById("dum"); } </script> </head> <body> <div id="top_links"> <div id="header">
29 Shivrani Arambam
SGU
90530306694
<br/> <h2>Welcome To</h2> <h2>CORPORATE ONLINE BANK</h2> <A href="index.html"><IMG SRC="images/home1.gif"></IMG></A> </div> <div id="navigation"> <ul> <li><a href="balance1.jsp">BALANCE</a></li> <li><a href="deposit1.jsp">DEPOSIT</a></li> <li><a href="withdraw1.jsp">WITHDRAW</a></li> <li><a href="transfer1.jsp">TRANSFER</a></li> <li><a href="closeac1.jsp">CLOSE A/C</a></li> <li><a href="about.jsp">ABOUT US</a></li> <li><a href="logout.jsp">LOGOUT</a></li> </ul> </div> <table style="width:897px; background:#FFFFFF; margin:0 auto;"> <tr> <td width="300" valign="top" style="border-right:#666666 1px dotted;"> <div id="services"><h1>Services</h1><br> <marquee><img src="images/image_22.gif"><img><img src="images/image_23.gif"><img><img src="images/image_24.gif"><img><img src="images/image_25.gif"><img><img src="images/image_26.gif"><img><img src="images/image_27.gif"><img><img src="images/image_28.gif"><img></marquee> </div> </td> <td width="1200" valign="top"> <div id="welcome" style="border-right:#666666 1px dotted;"><h1>BALANCE FORM</h1><br> <table align="center" bgcolor="white"><tr</tr><tr> <td><div><%if(request.getAttribute("balance")!=null) { out.print(request.getAttribute("balance")); } %></div> <form name=F1 onSubmit="return dil(this)" action="balance.jsp" > <table cellspacing="5" cellpadding="3"> <tr><td>ACCOUNT NO:</td><td><input type="text" name="accountno"/></td></tr> <tr><td>USER NAME:</td><td><input type="text" name="username"/></td></tr> <tr><td>PASSWORD:</td><td><input type="password" name="password"/></td></tr> <tr><td></td><td><input type="submit" value="Submit"/> <INPUT TYPE=RESET VALUE="CLEAR"></td></tr> </table> </form> </td> </tr> </table> </div> </td>
30 Shivrani Arambam
SGU
90530306694
<td width="299" valign="top"> <div id="welcome" style="border-right:#666666 1px dotted;"><h1>Welcome</h1><br> <center><img src="images/globe_10.gif" alt="business" width="196" height="106"></center><br> <p>Online Banking is an Indian diversified financial services company headquartered in Mumbai, Maharashtra. It is the second largest bank in India by assets and third largest by market capitalization. It offers a wide range of banking products and financial services to corporate and retail customers through a variety of delivery channels and through its specialized subsidiaries in the areas of investment banking, life and non-life insurance, venture capital and asset management.</p> </div></td> </tr></table> <div id="footer_top"> <div id="footer_navigation"> </div> <div id="footer_copyright" > Copyright 2012 Corporate Online Bank, India | Disclaimer | Privacy Policy</div> </div> <script type="text/javascript"> document.onload = ctck(); </script> </div> </body> </html>
31
Shivrani Arambam
SGU
90530306694
LOGIC CODE:
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Global Banking ..</title> <link href="style.css" rel="stylesheet" type="text/css"> <script type="text/javascript"> function ctck() { var sds = document.getElementById("dum"); } </script> </head> <body> <div id="top_links">
<div id="header"> <br/> <h2>Welcome To</h2> <h2>CORPORATE ONLINE BANK</h2> <A href="index.html"><IMG SRC="images/home1.gif"></IMG></A> </div> <div id="navigation"> <ul> <li><a href="balance1.jsp">BALANCE</a></li> <li><a href="deposit1.jsp">DEPOSIT</a></li> <li><a href="withdraw1.jsp">WITHDRAW</a></li> <li><a href="transfer1.jsp">TRANSFER</a></li> <li><a href="closeac1.jsp">CLOSE A/C</a></li> <li><a href="about.jsp">ABOUT US</a></li> <li><a href="logout.jsp">LOGOUT</a></li> </ul> </div> <table style="width:897px; background:#FFFFFF; margin:0 auto;"> <tr><td width="300" valign="top" style="border-right:#666666 1px dotted;"> <div id="services"><h1>Services</h1><br><ul> <li><a href="#"></a></li> <li><a href="#"></a></li> <li><a href="#"></a></li> </ul> </div></td><td width="1200" valign="top"> <table><% String num=request.getParameter("accountno");int accountno=Integer.parseInt(num); String username=request.getParameter("username");
32 Shivrani Arambam
SGU
90530306694
String password=request.getParameter("password"); boolean status=verifyLogin1.checkLogin(accountno,username,password); try { if(status==true){ out.print("Welcome " + username); Connection con=GetCon.getCon(); PreparedStatement ps=con.prepareStatement("Select * from NEWACCOUNT where accountno=?"); ps.setInt(1,accountno); ResultSet rs=ps.executeQuery(); out.print("<table align='left' cellspacing='5' cellpadding='5'>"); out.print("<tr><th>ACCOUNT NO</th><th>USERNAME</th><th>AMOUNT</th><th>ADDRESS</th><th>PHONE</th></tr>"); while(rs.next()){ int accountno1=rs.getInt(1); session.setAttribute("accountno",accountno1); System.out.print(accountno); out.print("<tr>"); out.print("<td>" + rs.getInt(1) + "</td>"); out.print("<td>" + rs.getString(2) + "</td>"); out.print("<td>" + rs.getInt(5) + "</td>"); out.print("<td>" + rs.getString(6) + "</td>"); out.print("<td>" + rs.getInt(7) + "</td>"); out.print("</tr>"); } out.print("</table>");} else{ out.print("Please check your username and Password"); request.setAttribute("balance","Please check your username and Password"); %> <jsp:forward page="balance1.jsp"></jsp:forward> <% } }catch (SQLException e) { e.printStackTrace(); } %></table><% %> </table> <%@ page import="java.sql.*"%> <%@ page import="java.io.*" %> <%@ page import="javax.servlet.*"%> <%@ page import="g.*" %>
33
Shivrani Arambam
SGU
90530306694
DEPOSIT CODE:
<html> <head> <SCRIPT LANGUAGE="JavaScript"> function dil(form) { for(var i=0; i<form.elements.length; i++) { if(form.elements[i].value == "") alert("Fill out all Fields") document.F1.accountno.focus() return false } if(isNaN(document.F1.accountno.value)) { alert("A/C No. must be number & can't be null") document.F1.accountno.value="" document.F1.accountno.focus() return false } if(!isNaN(document.F1.username.value)) {alert("User Name must be char's & can't be null") document.F1.username.value="" document.F1.username.focus() return false } if(!isNaN(document.F1.password.value)) { alert("Password must be char's & can't be null") document.F1.password.value="" document.F1.password.focus() return false } if(isNaN(document.F1.amount.value)) {alert("Amount must be number & can't be null") document.F1.amount.value="" document.F1.amount.focus() return false } return true } </SCRIPT> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Global Banking ..</title> <link href="style.css" rel="stylesheet" type="text/css"> <script type="text/javascript"> function ctck() { var sds = document.getElementById("dum"); } </script></head> <body> <div id="top_links">
34
Shivrani Arambam
SGU
90530306694
<div id="header"><br/> <h2>Welcome To</h2> <h2>CORPORATE ONLINE BANK</h2> <A href="index.html"><IMG SRC="images/home1.gif"></IMG></A> </div> <div id="navigation"> <ul> <li><a href="balance1.jsp">BALANCE</a></li> <li><a href="deposit1.jsp">DEPOSIT</a></li> <li><a href="withdraw1.jsp">WITHDRAW</a></li> <li><a href="transfer1.jsp">TRANSFER</a></li> <li><a href="closeac1.jsp">CLOSE A/C</a></li> <li><a href="about.jsp">ABOUT US</a></li> <li><a href="logout.jsp">LOGOUT</a></li> </ul> </div> <table style="width:897px; background:#FFFFFF; margin:0 auto;"> <tr> <td width="300" valign="top" style="border-right:#666666 1px dotted;"> <div id="services"><h1>Services</h1><br> <marquee><img src="images/image_22.gif"><img><img src="images/image_23.gif"><img><img src="images/image_24.gif"><img><img src="images/image_25.gif"><img><img src="images/image_26.gif"><img><img src="images/image_27.gif"><img><img src="images/image_28.gif"><img></marquee> </div> </td> <td width="1200" valign="top"> <div id="welcome" style="border-right:#666666 1px dotted;"><h1>DEPOSIT FORM</h1><br><table align="center" bgcolor="white"><tr> </tr><tr> <td><div><%if(request.getAttribute("balance")!=null) { out.print(request.getAttribute("balance")); } %></div> <form name=F1 onSubmit="return dil(this)" action="deposit.jsp" > <table cellspacing="5" cellpadding="3"> <tr><td>ACCOUNT NO:</td><td><input type="text" name="accountno"/></td></tr> <tr><td>USER NAME:</td><td><input type="text" name="username"/></td></tr> <tr><td>PASSWORD:</td><td><input type="password" name="password"/></td></tr> <tr><td>AMOUNT:</td><td><input type="text" name="amount"/></td></tr><!-- Gender:<br/><br/> Male<input type="radio" name="gender" value="male"> Female<input type="radio" name="gender" value="female"/><br/><br/> --> <tr><td></td><td><input type="submit" value="Submit"/> <INPUT TYPE=RESET VALUE="CLEAR"></td></tr> </table> </form> </td></tr></table> </div> </td> <td width="299" valign="top"> <div id="welcome" style="border-right:#666666 1px dotted;"><h1>Welcome</h1><br>
35 Shivrani Arambam
SGU
90530306694
<center><img src="images/globe_10.gif" alt="business" width="196"height="106"></center><br> <p>Online banking (or Internet banking or E-banking) allows customers of a financial institution to conduct financial transactions on a secure website operated by the institution, which can be a retail or virtual bank, credit union or building society.It may include of any transactions related to online usage To access online banking, the customer would go to the financial institution's website, and enter the online banking facility using the customer number and password. Some financial institutions have set up additional security steps for access, but there is no consistency to the approach adopted. </p></div> </td> </tr></table> <div id="footer_top"> <div id="footer_navigation"> </div> <div id="footer_copyright" > Copyright 2012 Corporate Online Bank, India | Disclaimer | Privacy Policy</div> </div><script type="text/javascript"> document.onload = ctck(); </script> </div> </body> </html>
LOGIC CODE:
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Global Banking ..</title> <link href="style.css" rel="stylesheet" type="text/css"> <script type="text/javascript"> function ctck() { var sds = document.getElementById("dum") } </script> </head> <body> <div id="top_links"> <div id="header"><br/> <h2>Welcome To</h2> <h2>CORPORATE ONLINE BANK</h2> </div><div id="navigation"> <ul> <li><a href="balance1.jsp">BALANCE</a></li> <li><a href="deposit1.jsp">DEPOSIT</a></li> <li><a href="withdraw1.jsp">WITHDRAW</a></li> <li><a href="transfer1.jsp">TRANSFER</a></li> <li><a href="closeac1.jsp">CLOSE A/C</a></li> <li><a href="about.jsp">ABOUT US</a></li> <li><a href="logout.jsp">LOGOUT</a></li>
36 Shivrani Arambam
SGU
90530306694
</ul> </div> <table style="width:897px; background:#FFFFFF; margin:0 auto;"> <tr><td width="300" valign="top" style="border-right:#666666 1px dotted;"> <div id="services"><h1>Services</h1><br> <ul> <li><a href="#"></a></li> <li><a href="#"></a></li> <li><a href="#"></a></li> </ul> </div> </td> <td width="1200" valign="top"> <table><% String num=request.getParameter("accountno");int accountno=Integer.parseInt(num); String username=request.getParameter("username"); String password=request.getParameter("password"); String amoun=request.getParameter("amount"); int accoun=Integer.parseInt(amoun); boolean status=verifyLogin1.checkLogin(accountno,username,password); try { if(status==true){ out.print("Welcome " + username); Connection con=GetCon.getCon(); PreparedStatement ps=con.prepareStatement("Select * from NEWACCOUNT where accountno=?"); ps.setInt(1,accountno); ResultSet rs=ps.executeQuery(); int dataamount=0; if(rs.next()){ dataamount=accoun+rs.getInt(5); } Connection con1=GetCon.getCon(); PreparedStatement ps1=con1.prepareStatement("update NEWACCOUNT set amount=? where accountno='"+accountno+"'"); ps1.setInt(1,dataamount); ps1.executeUpdate(); ResultSet rs1=ps1.executeQuery(); if(rs1.next()){ out.print("your balance has increase"); request.setAttribute("totaldataamount",dataamount); request.setAttribute("balance","your balance has increase"); %> <jsp:forward page="Totalbalance.jsp"></jsp:forward> <% }}else{ out.print("Please check your username and Password"); request.setAttribute("balance","Please check your username and Password"); %> <jsp:forward page="deposit1.jsp"></jsp:forward> <% }}catch (SQLException e) { e.printStackTrace();
37 Shivrani Arambam
SGU
90530306694
} %></table><% %> </table> <%@ page import="java.sql.*"%> <%@ page import="java.io.*" %> <%@ page import="javax.servlet.*"%> <%@ page import="g.*" %>
38
Shivrani Arambam
SGU
90530306694
WITHDRAW CODE:
<html> <head> <SCRIPT LANGUAGE="JavaScript"> function dil(form) { for(var i=0; i<form.elements.length; i++) { if(form.elements[i].value == ""){alert("Fill out all Fields") document.F1.accountno.focus() return false} } if(isNaN(document.F1.accountno.value)) { alert("A/C No. must be number & can't be null") document.F1.accountno.value="" document.F1.accountno.focus() return false} if(!isNaN(document.F1.username.value)) { alert("User Name must be char's & can't be null") document.F1.username.value="" document.F1.username.focus() return false } if(!isNaN(document.F1.password.value)) {alert("Password must be char's & can't be null") document.F1.password.value="" document.F1.password.focus() return false } if(isNaN(document.F1.amount.value)) {alert("Amount must be number & can't be null") document.F1.amount.value="" document.F1.amount.focus() return false} return true } </SCRIPT> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Global Banking ..</title> <link href="style.css" rel="stylesheet" type="text/css"> <script type="text/javascript"> function ctck() {var sds = document.getElementById("dum"); } </script> </head><body><div id="top_links"> <div id="header"> <br/> <h2>Welcome To</h2> <h2>CORPORATE ONLINE BANK</h2> <A href="index.html"><IMG SRC="images/home1.gif"></IMG></A> </div> <div id="navigation"> <ul> <li><a href="balance1.jsp">BALANCE</a></li> <li><a href="deposit1.jsp">DEPOSIT</a></li>
39 Shivrani Arambam
SGU
90530306694
<li><a href="withdraw1.jsp">WITHDRAW</a></li> <li><a href="transfer1.jsp">TRANSFER</a></li> <li><a href="closeac1.jsp">CLOSE A/C</a></li> <li><a href="about.jsp">ABOUT US</a></li> <li><a href="logout.jsp">LOGOUT</a></li> </ul> </div> <table style="width:897px; background:#FFFFFF; margin:0 auto;"> <tr> <td width="300" valign="top" style="border-right:#666666 1px dotted;"> <div id="services"><h1>Services</h1><br> <marquee><img src="images/image_22.gif"><img><img src="images/image_23.gif"><img><img src="images/image_24.gif"><img><img src="images/image_25.gif"><img><img src="images/image_26.gif"><img><img src="images/image_27.gif"><img><img src="images/image_28.gif"><img></marquee></div></td> <td width="1200" valign="top"> <div id="welcome" style="border-right:#666666 1px dotted;"><h1>WITHDRAW FORM</h1><br> <table align="center" bgcolor="white"> <tr></tr><tr> <td> <div><%if(request.getAttribute("balance")!=null) {out.print(request.getAttribute("balance")); } %></div> <form name=F1 onSubmit="return dil(this)" action="withdraw.jsp" > <table cellspacing="5" cellpadding="3"> <tr><td> ACCOUNT NO: </td><td><input type="text" name="accountno"/></td></tr> <tr><td>USER NAME: </td><td><input type="text" name="username"/></td></tr> <tr><td>PASSWORD:</td><td><input type="password" name="password"/></td></tr> <tr><td>AMOUNT:</td><td><input type="text" name="amount"/></td></tr> <tr><td></td><td><input type="submit" value="Submit"/> <INPUT TYPE=RESET VALUE="CLEAR"></td></tr> </table> </form></td></tr> </table> </div></td><td width="299" valign="top"> <div id="welcome" style="border-right:#666666 1px dotted;"><h1>Welcome</h1><br> <center><img src="images/globe_10.gif" alt="business" width="196" height="106"></center><br> <p>Online Banking is an Indian diversified financial services company headquartered in Mumbai, Maharashtra. It is the second largest bank in India by assets and third largest by market capitalization. It offers a wide range of banking products and financial services to corporate and retail customers through a variety of delivery channels and through its specialized subsidiaries in the areas of investment banking, life and non-life insurance, venture capital and asset management.</p> </div></td></tr></table> <div id="footer_top"> <div id="footer_navigation"></div> <div id="footer_copyright" > Copyright 2012 Corporate Online Bank, India | Disclaimer | Privacy Policy</div> </div> <script type="text/javascript"> document.onload = ctck();
40 Shivrani Arambam
SGU
90530306694
</script> </div> </body> </html> LOGIC CODE: <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Global Banking ..</title> <link href="style.css" rel="stylesheet" type="text/css"> <script type="text/javascript"> function ctck() { var sds = document.getElementById("dum"); } </script></head> <body> <div id="top_links"> <div id="header"> <br/> <h2>Welcome To</h2> <h2>CORPORATE ONLINE BANK</h2> </div> <div id="navigation"> <ul> <li><a href="balance1.jsp">BALANCE</a></li> <li><a href="deposit1.jsp">DEPOSIT</a></li> <li><a href="withdraw1.jsp">WITHDRAW</a></li> <li><a href="transfer1.jsp">TRANSFER</a></li> <li><a href="closeac1.jsp">CLOSE A/C</a></li> <li><a href="about.jsp">ABOUT US</a></li> <li><a href="logout.jsp">LOGOUT</a></li> </ul> </div> <table style="width:897px; background:#FFFFFF; margin:0 auto;"> <tr> width="300" valign="top" style="border-right:#666666 1px dotted;"> <div id="services"><h1>Services</h1><br><ul> <li><a href="#"></a></li> <li><a href="#"></a></li> <li><a href="#"></a></li> </ul> </div> </td> <td width="1200" valign="top"> <table><% String num=request.getParameter("accountno"); int accountno=Integer.parseInt(num); String username=request.getParameter("username"); String password=request.getParameter("password");
41 Shivrani Arambam
SGU
90530306694
String amoun=request.getParameter("amount"); int accoun=Integer.parseInt(amoun); boolean status=verifyLogin1.checkLogin(accountno,username,password); try { if(status==true){ out.print("Welcome " + username); Connection con=GetCon.getCon(); PreparedStatement ps=con.prepareStatement("Select * from NEWACCOUNT where accountno=?") ps.setInt(1,accountno); ResultSet rs=ps.executeQuery(); int dataamount=0; if(rs.next()){dataamount=rs.getInt(5)-accoun; } Connection con1=GetCon.getCon(); PreparedStatement ps1=con1.prepareStatement("update NEWACCOUNT set amount=? where accountno='"+accountno+"'"); ps1.setInt(1,dataamount); ps1.executeUpdate(); ResultSet rs1=ps1.executeQuery(); if(rs1.next()){ out.print("your balance has increase"); request.setAttribute("totaldataamount",dataamount); request.setAttribute("balance","your balance has decrease");%> <jsp:forward page="Totalbalance.jsp"></jsp:forward><% }}else{ out.print("Please check your username and Password"); request.setAttribute("balance","Please check your username and Password"); %> <jsp:forward page="withdraw1.jsp"></jsp:forward> <% } }catch (SQLException e) { e.printStackTrace();} %></table><% %> </table> <%@ page import="java.sql.*"%> <%@ page import="java.io.*" %> <%@ page import="javax.servlet.*"%> <%@ page import="g.*" %>
42
Shivrani Arambam
SGU
90530306694
TRANSFER CODE:
<html> <head> <SCRIPT LANGUAGE="JavaScript"> function dil(form) { for(var i=0; i<form.elements.length; i++) { if(form.elements[i].value == "") {alert("Fill out all Fields") document.F1.accountno.focus() return false} } if(isNaN(document.F1.accountno.value)) { alert("A/C No. must be number & can't be null") document.F1.accountno.value="" document.F 1.accountno.focus() return false } if(!isNaN(document.F1.username.value)) { alert("User Name must be char's & can't be null") document.F1.username.value="" document.F1.username.focus() return false} if(!isNaN(document.F1.password.value)) { alert("Password must be char's & can't be null") document.F1.password.value="" document.F1.password.focus() return false } if(isNaN(document.F1.taccountno.value)) { alert("target account must be number & can't be null" document.F1.taccountno.value="" document.F1.taccountno.focus() return false } if(document.F1.accountno.value == document.F1.taccountno.value) {alert("Change target accountno"); document.F1.taccountno.value="" document.F1.taccountno.focus() return false }
if(isNaN(document.F1.amount.value)) { alert("Amount must be number & can't be null") document.F1.amount.value="" document.F1.amount.focus() return false } return true }
43 Shivrani Arambam
SGU
90530306694
</SCRIPT> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Global Banking ..</title> <link href="style.css" rel="stylesheet" type="text/css"> <script type="text/javascript"> function ctck() { var sds = document.getElementById("dum");} </script> </head> <body> <div id="top_links"> <div id="header"> <br/> <h2>Welcome To</h2><h2>CORPORATE ONLINE BANK</h2> <A href="index.html"><IMG SRC="images/home1.gif"></IMG></A> </div> <div id="navigation"> <ul> <li><a href="create.html">NEW ACCOUNT</a></li> <li><a href="balance1.jsp">BALANCE</a></li> <li><a href="deposit1.jsp">DEPOSIT</a></li> <li><a href="withdraw1.jsp">WITHDRAW</a></li> <li><a href="transfer1.jsp">TRANSFER</a></li> <li><a href="closeac1.jsp">CLOSE A/C</a></li> <li><a href="about.jsp">ABOUT US</a></li> <li><a href="logout.jsp">LOGOUT</a></li> </ul> </div> <table style="width:800px; background:#FFFFFF; margin:0 auto;"> <tr><td width="100" valign="top" style="border-right:#666666 1px dotted;"> <div id="services"><h1>Services</h1><br> <marquee><img src="images/image_22.gif"><img><img src="images/image_23.gif"><img><img src="images/image_24.gif"><img><img src="images/image_25.gif"><img><img src="images/image_26.gif"><img><img src="images/image_27.gif"><img><img src="images/image_28.gif"><img></marquee> </div> </td> <td width="450" valign="top"> <div id="welcome" style="border-right:#666666 1px dotted;"><h1>TRANSFER FORM</h1><br> <table align="center" bgcolor="white"><tr></tr> <tr> <td><div><%if(request.getAttribute("balance")!=null) { out.print(request.getAttribute("balance"));} %></div> <form name=F1 onSubmit="return dil(this)" action="transfer.jsp" > <table cellspacing="5" cellpadding="3"> <tr><td>A CCOUNT NO:</td><td><input type="text" name="accountno"/></td></tr> <tr><td>USER NAME:</td><td><input type="text" name="username"/></td></tr> <tr><td>PASSWORD:</td><td><input type="password" name="password"/></td></tr>
44 Shivrani Arambam
SGU
90530306694
<tr><td>TARGET ACCOUNT NO:</td><td><input type="text" name="taccountno"/></td></tr> <tr><td>AMOUNT:</td><td><input type="text" name="amount"/></td></tr> <!-- Gender:<br/><br/> Male<input type="radio" name="gender" value="male"> Female<input type="radio" name="gender" value="female"/><br/><br/> --> <tr><td></td><td><input type="submit" value="Submit"/> <INPUT TYPE=RESET VALUE="CLEAR"></td></tr> </table> </form> </td> </tr> </table> </div> </td> <td width="250" valign="top"> <div id="welcome" style="border-right:#666666 1px dotted;"><h1>Welcome</h1><br> <center><i mg src="images/globe_10.gif" alt="business" width="196" height="106"></center><br> <p>Online Banking is an Indian diversified financial services company headquartered in Mumbai, Maharashtra. It is the second largest bank in India by assets and third largest by market capitalization. It offers a wide range of banking products and financial services to corporate and retail customers through a variety of delivery channels and through its specialized subsidiaries in the areas of investment banking, life and non-life insurance, venture capital and asset management.</p></div> </td> </tr></table> <div id="footer_top"> <div id="footer_navigation"> </div> <div id="footer_copyright"> Copyright 2012 Corporate Online Bank, India | Disclaimer | Privacy Policy</div> </div> <script type="text/javascript"> document.onload = ctck(); </script> </div> </body> </html> LOGIC CODE: <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Global Banking ..</title> <link href="style.css" rel="stylesheet" type="text/css"> <script type="text/javascript"> function ctck() { var sds = document.getElementById("dum"); } </script> </head>
45 Shivrani Arambam
SGU
90530306694
<body> <div id="top_links"> <div id="header"> <br/> <h2>Welcome To</h2> <h2>CORPORATE ONLINE BANK</h2> </div> <div id="navigation"> <ul> <li><a href="balance1.jsp">BALANCE</a></li> <li><a href="deposit1.jsp">DEPOSIT</a></li> <li><a href="withdraw1.jsp">WITHDRAW</a></li> <li><a href="transfer1.jsp">TRANSFER</a></li> <li><a href="closeac1.jsp">CLOSE A/C</a></li> <li><a href="about.jsp">ABOUT US</a></li> <li><a href="logout.jsp">LOGOUT</a></li> </ul> </div> <table style="width:897px; background:#FFFFFF; margin:0 auto;"> <tr> <td width="300" valign="top" style="border-right:#666666 1px dotted;"> <div id="services"><h1>Services</h1><br> <ul> <li><a href="#"></a></li> <li><a href="#"></a></li> <li><a href="#"></a></li> </ul> </div> </td> <td width="1200" valign="top"> <table><% String num=request.getParameter("accountno"); int accountno=Integer.parseInt(num); String username=request.getParameter("username"); String password=request.getParameter("password"); String num1=request.getParameter("taccountno"); int taccountno=Integer.parseInt(num1); String amoun=request.getParameter("amount"); int accoun=Integer.parseInt(amoun); boolean status=verifyLogin1.checkLogin(accountno,username,password); try { if(status==true){ out.print("Welcome " + username); out.print(" TARGET ACCOUNT NO DOES NOT EXSIT --> " + taccountno); %> <A href='index.html'><IMG SRC='images/home1.gif'></IMG></A> <% Connection con=GetCon.getCon(); PreparedStatement ps=con.prepareStatement("Select * from NEWACCOUNT where accountno='"+taccountno+"'"); ResultSet rs=ps.executeQuery(); int dataamount=0;
46 Shivrani Arambam
SGU
90530306694
if(rs.next()){ dataamount=accoun+rs.getInt(5); } Connection con1=GetCon.getCon(); PreparedStatement ps1=con1.prepareStatement("update NEWACCOUNT set amount=? where accountno='"+taccountno+"'"); ps1.setInt(1,dataamount); ps1.executeUpdate(); ResultSet rs1=ps1.executeQuery(); if(rs1.next()){} System.out.println("data amonut"+dataamount); request.setAttribute("target account A ",dataamount); Connection con2=GetCon.getCon(); PreparedStatement ps2=con2.prepareStatement("Select * from NEWACCOUNT where accountno=?"); ps2.setInt(1,accountno); ResultSet rs2=ps2.executeQuery(); int dataamount1=0; if(rs2.next()){ dataamount1=rs2.getInt(5)-accoun; System.out.println(dataamount1);} Connection con3=GetCon.getCon(); PreparedStatement ps3=con3.prepareStatement("update NEWACCOUNT set amount=? where accountno='"+accountno+"'"); ps3.setInt(1,dataamount1); ps3.executeUpdate() ResultSet rs3=ps3.executeQuery(); if(rs3.next()){ request.setAttribute("target account A",dataamount); request.setAttribute("account B",dataamount1); %> <jsp:forward page="tbalance.jsp"></jsp:forward><% }}else{ out.print("Please check your username and Password and target accountno"); request.setAttribute("balance","Please check your username and Password and target acountno"); %> <jsp:forward page="transfer1.jsp"></jsp:forward> <% } }catch (SQLException e) { e.printStackTrace();} %></table> </table> <%@ page import="java.sql.*"%> <%@ page import="java.io.*" %> <%@ page import="javax.servlet.*"%> <%@ page import="g.*" %>
47
Shivrani Arambam
SGU
90530306694
SGU
90530306694
</div> <div id="navigation"> <ul> <li><a href="create.html">NEW ACCOUNT</a></li> <li><a href="balance1.jsp">BALANCE</a></li> <li><a href="deposit1.jsp">DEPOSIT</a></li> <li><a href="withdraw1.jsp">WITHDRAW</a></li> <li><a href="transfer1.jsp">TRANSFER</a></li> <li><a href="closeac1.jsp">CLOSE A/C</a></li> <li><a href="about.jsp">ABOUT US</a></li> </ul> </div> <table style="width:897px; background:#FFFFFF; margin:0 auto;"> <tr><td width="300" valign="top" style="border-right:#666666 1px dotted;"> <div id="services"><h1>Services</h1><br> <marquee><img src="images/image_22.gif"><img><img src="images/image_23.gif"><img><img src="images/image_24.gif"><img><img src="images/image_25.gif"><img><img src="images/image_26.gif"><img><img src="images/image_27.gif"><img><img src="images/image_28.gif"><img></marquee> </div> </td> <td width="1200" valign="top"> <div id="welcome" style="border-right:#666666 1px dotted;"><h1>CLOSE ACCOUNT FORM</h1><br> <table align="center" bgcolor="white"> <tr></tr> <tr> <td> <div><%if(request.getAttribute("balance")!=null) { out.print(request.getAttribute("balance"));} %></div> <form name=F1 onSubmit="return dil(this)" action="closeac.jsp" > <table cellspacing="5" cellpadding="3"> <tr><td>A CCOUNT NO:</td><td><input type="text" name="accountno"/></td></tr><tr><td>USER NAME:</td><td><input type="text" name="username"/></td></tr> <tr><td>PASSWORD:</td><td><input type="password" name="password"/></td></tr> <tr><td></td><td><input type="submit" value="Submit" <INPUT TYPE=RESET VALUE="CLEAR"></td></tr> </table> </form> </tr></tr> </table> </div> </td> <td width="299" valign="top"> <div id="welcome" style="border-right:#666666 1px dotted;"><h1>Welcome</h1><br> <center><i mg src="images/globe_10.gif" alt="business" width="196" height="106"></center><br> <p>Online Banking is an Indian diversified financial services company headquartered in Mumbai, Maharashtra. It is the second largest bank in India by assets and third largest by market capitalization. It
49 Shivrani Arambam
SGU
90530306694
offers a wide range of banking products and financial services to corporate and retail customers through a variety of delivery channels and through its specialized subsidiaries in the areas of investment banking, life and non-life insurance, venture capital and asset management.</p> </div> </td> </tr></table> <div id="footer_top"> <div id="footer_navigation"> </div> <div id="footer_copyright" > Copyright 2012 Corporate Online Bank, India | Disclaimer | Privacy Policy</div> </div> <script type="text/javascript"> document.onload = ctck(); </script> </div> </body> </html> LOGIC CODE: <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Global Banking ..</title> <link href="style.css" rel="stylesheet" type="text/css"> <script type="text/javascript"> function ctck() { var sds = document.getElementById("dum"); } </script> </head> <body> <div id="top_links"> <div id="header"><br/> <h2>Welcome To</h2> <h2>CORPORATE ONLINE BANK</h2> </div> <div id="navigation"> <ul> <li><a href="create.html">NEW ACCOUNT</a></li> <li><a href="balance1.jsp">BALANCE</a></li> <li><a href="deposit1.jsp">DEPOSIT</a></li> <li><a href="withdraw1.jsp">WITHDRAW</a></li> <li><a href="transfer1.jsp">TRANSFER</a></li> <li><a href="closeac1.jsp">CLOSE A/C</a></li> <li><a href="about.jsp">Contact Us</a></li> </ul> </div> <table style="width:897px; background:#FFFFFF; margin:0 auto;"> <tr><td width="300" valign="top" style="border-right:#666666 1px dotted;">
50 Shivrani Arambam
SGU
90530306694
<div id="services"><h1>Services</h1><br> <ul> <li><a href="#"></a></li> <li><a href="#"></a></li> <li><a href="#"></a></li> </ul> </div> </td> <td width="1200" valign="top"> <table><% String num=request.getParameter("accountno"); int accountno=Integer.parseInt(num); String username=request.getParameter("username"); String password=request.getParameter("password"); boolean status=verifyLogin1.checkLogin(accountno,username,password); try { if(status==true){ out.print("Welcome " + username); Connection con=GetCon.getCon(); PreparedStatement ps=con.prepareStatement("delete from NEWACCOUNT where accountno='"+accountno+"'"); //ps.setInt(1,accountno); ps.executeUpdate(); out.print(" your account no '"+accountno+"' has closed."); out.print(" <A href='index.html'><IMG SRC='images/home1.gif'></IMG></A>");} else out.print("Please check your username and Password"); request.setAttribute("balance","Please check your username and Password"); %> <jsp:forward page="closeac1.jsp"></jsp:forward> <% } }catch (SQLException e) { e.printStackTrace();} %></table><% %> </table> <%@ page import="java.sql.*"%> <%@ page import="java.io.*" %> <%@ page import="javax.servlet.*"%> <%@ page import="g.*" %>
51
Shivrani Arambam
SGU
90530306694
LOGOUT:
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>JSP Page</title> <title>Global Banking ..</title> <link href="style.css" rel="stylesheet" type="text/css"> <script type="text/javascript"> function ctck() { var sds = document.getElementById("dum"); } </script> </head> <body> <div id="top_links"> <div id="header"> <h1>APANA - BANK<span class="style1"></span></h1> <h2>ExtraOrdinary Service</h2> <A href="index.html"><IMG SRC="images/home1.gif"></IMG></A> </div> <div id="navigation"> <ul> <li><a href="create.html">NEW ACCOUNT</a></li> <li><a href="balance1.jsp">BALANCE</a></li> <li><a href="deposit1.jsp">DEPOSIT</a></li> <li><a href="withdraw1.jsp">WITHDRAW</a></li> <li><a href="transfer1.jsp">TRANSFER</a></li> <li><a href="closeac1.jsp">CLOSE A/C</a></li> <li><a href="about.jsp">ABOUT US</a></li> </ul> </div> <table style="width:897px; background:#FFFFFF; margin:0 auto;"> <tr><td width="300" valign="top" style="border-right:#666666 1px dotted;"> <div id="services"><h1>Services</h1><br> <ul> <li><a href="#">www.javatpoint.com</a></li> <li><a href="#">www.javacstpoint.com </a></li> <li><a href="#">www.javatpoint.com/forum.jsp</a></li> </ul> </div> </td> <td width="1200" valign="top"> <div id="welcome" style="border-right:#666666 1px dotted;"><h1>LOGOUT</h1><br> <table align="center" bgcolor="white"><tr> </tr><tr> <td> <form name=F1 onSubmit="return dil(this)" action="CreateServlet" > <table cellspacing="5" cellpadding="3"> <tr><td><b>
52 Shivrani Arambam
SGU
90530306694
<% session.invalidate(); out.println("you have successfully logged out"); %></b></td></tr> </table> </form> </td></tr> </table> </div> </td> <td width="299" valign="top"> <div id="welcome" style="border-right:#666666 1px dotted;"><h1>Welcome</h1><br> <center><i mg src="images/globe_10.gif" alt="business" width="196" height="106"></center> <p>Each people plan their site layouts depending upon their business type. Here comes a free designer template which provides you with a selection of different kinds of webdesign starting from business template, fashion template, media template, Science template, Arts template and much more.</p> </div> </td> </tr></table> <div id="footer_top"> <div id="footer_navigation"> </div> <div id="footer_copyright" > <center><i mg alt="business" width="196" height="106"></center><br> <p>Each people plan their site layouts depending upon their business type. Here comes a free designer template which provides you with a selection of different kinds of webdesign starting from business template, fashion template, media template, Science template, Arts template and much more.</p> Copyright Your Company Name</div> </div> <script type="text/javascript"> document.onload = ctck(); </script> </div> </body> </html>
53
Shivrani Arambam
SGU
90530306694
SERVLET CODE:
package g; import java.io.IOException; import java.io.PrintWriter; import java.rmi.Naming; import javax.servlet.RequestDispatcher; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class CreateServlet extends HttpServlet {public void doGet(HttpServletRequest request, HttpServletResponse response)throws ServletException, IOException { response.setContentType("text/html"); PrintWriter out=response.getWriter(); String username=request.getParameter("username"); String password=request.getParameter("password"); String repassword=request.getParameter("repassword"); String amoun=request.getParameter("amount"); double amount=Double.parseDouble(amoun);
String adderess=request.getParameter("adderess"); String ph=request.getParameter("phone"); double phone=Double.parseDouble(ph); int status=RegisterUser.register(username, password, repassword, amount, adderess,phone); if(status>0){ out.print("WELCOME! YOUR ACCOUNT HAS OPENED"); RequestDispatcher rd=request.getRequestDispatcher("index.jsp"); rd.include(request, response);else{ out.print("Sorry,Registration failed. please try later"); RequestDispatcher rd=request.getRequestDispatcher("MyHtml.html"); rd.include(request, response);} out.close();} }
DBINITIALIZER CODE:
package g; public interface DBIntializer { String DRIVER="oracle.jdbc.driver.OracleDriver"; String CON_STRING="jdbc:oracle:thin:@localhost:1521:xe"; String USERNAME="system"; String PASSWORD="raghav"; }
DETAILS CODE:
package g; import java.rmi.*;
54 Shivrani Arambam
SGU
90530306694
public interface Details extends Remote { public int open(String username,String password,double amount,String adderess,double phone) throws RemoteException; public String withdraw(int acno,String uname,String pwd,int amt) throws RemoteException; public String deposit(int acno,String uname,String pwd,int amt) throws RemoteException; public String transfer(int acno,String uname,String pwd,int tacno,int amt) throws RemoteException; public String close(int acno,String uname,String pass) throws RemoteException; public String balance(int acno,String uname,String pass) throws RemoteException; }
CONNECTION CODE:
package g; import java.sql.*; public class GetCon { private GetCon(){} public static Connection con; static{ try { Class.forName(DBIntializer.DRIVER); con=DriverManager.getConnection(DBIntializer.CON_STRING,DBIntializer.USERNAME,DBIntializer.P ASSWORD); } catch (ClassNotFoundException e) { e.printStackTrace(); } catch (SQLException e) { System.out.println("Exception in GetCon");} } public static Connection getCon(){ return con; } }
SGU
90530306694
DATABASE CODE:
CREATE TABLE "NEWACCOUNT" ( "ACCOUNTNO" NUMBER, "USERNAME" VARCHAR2(30), "PASSWORD" VARCHAR2(20), "REPASSWORD" VARCHAR2(20), "AMOUNT" NUMBER, "ADDRESS" VARCHAR2(50), "PHONE" NUMBER, PRIMARY KEY ("ACCOUNTNO") ENABLE ) / CREATE OR REPLACE TRIGGER "NEWACCOUNT_TRIGGER" BEFORE INSERT ON NEWACCOUNT REFERENCING NEW AS NEW For Each Row BEGIN SELECT NEWACCOUNT_sequence.nextval into:NEW.accountno from dual; END; / ALTER TRIGGER "NEWACCOUNT_TRIGGER" ENABLE
56
Shivrani Arambam
SGU
90530306694
7. SYSTEM TESTING
System Testing is a process of executing a program with the explicit intention of finding errors, which cause program failure. There are two general strategies for testing software. They are : 7.1Code Testing 7.2 Specification testing
7.3.1UNIT TESTING
Unit testing is done for the programs making up the systems. It is focused to find out module errors and enables to detect errors in coding and logic that are contained in the module. Unit testing is performed from bottom-up, starting with the smallest and lowest levels modules and proceeding one.
SGU
58
Shivrani Arambam
SGU
90530306694
59
Shivrani Arambam
SGU
90530306694
Registeration page:
60
Shivrani Arambam
SGU
90530306694
Registration info:
61
Shivrani Arambam
SGU
90530306694
Registered:
62
Shivrani Arambam
SGU
90530306694
Home page:
63
Shivrani Arambam
SGU
90530306694
Using Accounts:
64
Shivrani Arambam
SGU
90530306694
Profile Details:
65
Shivrani Arambam
SGU
90530306694
66
Shivrani Arambam
SGU
90530306694
Updated profile:
67
Shivrani Arambam
SGU
90530306694
68
Shivrani Arambam
SGU
90530306694
Logout page:
69
Shivrani Arambam
SGU
90530306694
Admin page :
70
Shivrani Arambam
SGU
90530306694
Admin info:
71
Shivrani Arambam
SGU
90530306694
Stocks Rates :
72
Shivrani Arambam
SGU
90530306694
8 .Conclusion
The project titled as SGC was deeply studied and analyzed to design the code and implement with various testing methods was done under the guidance of the experienced project guide. The solution developed is free from all the bugs and executable with all different modules to the utmost satisfaction of the client. All the current requirements and possibilities have been taken care during the project time. We feel that the solution provided now will suit to all the needs of various clients in the same industry but also we dont rule the possibilities of further upgrading of this solution with the new and advance technologies and further additional requirements of the clients.
73
Shivrani Arambam
SGU
90530306694
9.Refrences
http://java.sun.com/docs/books/jls/download/langspec-3.0.pdf http://download.oracle.com/javase/tutorial/ http://www.oracle.com/technetwork/java/index-jsp-135888.html http://en.wikipedia.org/wiki/Java_(programming_language) http://www.javaprogrammingworld.com/ http://www.cs.usfca.edu/~parrt/doc/java/JavaBasics-notes.pdf http://download.oracle.com/javaee/1.4/tutorial/doc/WebApp.html http://java.sun.com/developer/technicalArticles/tools/webapps_1/
74
Shivrani Arambam