Sie sind auf Seite 1von 74

SGU

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.

1.3 Over view of the project:


SGU gives you access to your personal accounts online anytime, anywhere. It's the perfect way to do your shopping whether from home, the office or when travelling because the service is available 24 hours a day, 7 days a week. SGU gives you the freedom to choose your own shopping hours giving you greater control of your finances. Its secure, fast and easy to use. You can updates your personal details. You can also view statements, make payments, apply to increase or decrease an overdraft limit, and open investment and savings accounts. Net banking, also referred to as on the net banking, has changed the way banking small business is executed around the globe. Banking transactions is usually executed anytime from anyplace. 1 can test account balances, apply for time deposits, and avail other banking expert services even while sitting at your home or at workplace. Not like ahead of exactly where persons needed to jostle for time to stop by a bank, now they merely demand a desktop computer they carry out their ordinary banking transactions.

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.

IMPORTANCE OF JAVA TO THE INTERNET


Java has had a profound effect on the Internet. This is because; Java expands the Universe of objects that can move about freely in Cyberspace. In a network, two categories of objects are transmitted between the Server and the Personal computer. They are: Passive information and Dynamic active programs. The Dynamic, Self-executing programs cause serious problems in the areas of Security and probability. But, Java addresses those concerns and by doing so, has opened the door to an exciting new form of program called the Applet.

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.

2.1.1 FEATURES OF JAVA SECURITY


Every time you that you download a normal program, you are risking a viral infection. Prior to Java, most users did not download executable programs frequently, and those who did scanned them for viruses prior to execution. Most users still worried about the possibility of infecting their systems with a virus. In addition, another type of malicious program exists that must be guarded against. This type of program can gather
Shivrani Arambam

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.

THE BYTE CODE


The key that allows the Java to solve the security and portability problems is that the output of Java compiler is Byte code. Byte code is a highly optimized set of instructions designed to be executed by the Java runtime system, which is called the Java Virtual Machine (JVM). That is, in its standard form, the JVM is an interpreter for byte code. Translating a Java program into byte code helps makes it much easier to run a program in a wide variety of environments. The reason is, once the run-time package exists for a given system, any Java program can run on it. Although Java was designed for interpretation, there is technically nothing about Java that prevents on-thefly compilation of byte code into native code. Sun has just completed its Just In Time (JIT) compiler for byte code. When the JIT compiler is a part of JVM, it compiles byte code into executable code in real time, on a piece-by-piece, demand basis. It is not possible to compile an entire Java program into executable code all at once, because Java performs various run-time checks that can be done only at run time. The JIT compiles code, as it is needed, during execution.

JAVA VIRTUAL MACHINE(JVM)


Beyond the language, there is the Java virtual machine. The Java virtual machine is an important element of the Java technology. The virtual machine can be embedded within a web browser or an operating system. Once a piece of Java code is loaded onto a machine, it is verified. As part of the loading process, a class loader is invoked and does byte code verification makes sure that the code thats has been generated by the compiler will not corrupt the machine that its loaded on. Byte code verification takes place at the end of the compilation process to make sure that is all accurate and correct. So byte code verification is integral to the compiling and executing of Java code.

Shivrani Arambam

SGU

90530306694

Overall Description

Java Source Java

Javabytecode

.Class

JavaVM

Fig 2.1 Picture showing the development process of JAVA Program

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

Java Byte code

Source Code .. .. ..

Java Interpreter (PC)

Macintosh Compiler

(Platform indepen dent)

Java Interpreter (Macintosh)

SPARC

Compiler

Java Interpreter (Sparc)

Fig 2.2 compilation of code

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:

Easily configured using the GUI-based Admin tool


6 Shivrani Arambam

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.

ADVANTAGES OF SERVLET API


One of the great advantages of the Servlet API is protocol independence. It assumes nothing about:

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.

it's simple, small, and easy to use.

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

Servlets are secure. Servlets can be used with a variety of clients.

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.

LOADING REMOTE SERVLETS


Remote Servlets can be loaded by: 1. Configuring the Admin Tool to setup automatic loading of remote Servlets 2. Setting up server side includetags in .shtml files 3. Defining a filter chain configuration

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.

We can do much more with JavaScript, including creating entire application.

JAVASCRIPT VERSUS JAVA


JavaScript and Java are entirely different languages. A few of the most glaring differences are: Java applets are generally displayed in a box within the web document; JavaScript can affect any part of the Web document itself. While JavaScript is best suited o simple applications and adding interactive features to Web pages; Java can be used for incredibly complex applications. There are many other differences but the important thing to remember is that JavaScript and Java are

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.

HYPERTEXT MARKUP LANGUAGE


Hypertext Markup Language (HTML), the languages of the World Wide Web (WWW), allows users to produces Web pages that include text, graphics and pointer to other Web pages (Hyperlinks).HTML is not a programming language but it is an application of ISO Standard 8879, SGML (Standard Generalized Markup Language), but specialized to hypertext and adapted to the Web. The idea behind Hypertext is that instead of reading text in rigid linear structure, we can easily jump from one point to another point. We can navigate through the information based on our interest and preference. A markup language is simply a series of elements, each delimited with special characters that define how text or other items enclosed within the elements should be displayed. Hyperlinks are underlined or emphasized works that load to other documents or some portions of the same document. HTML can be used to display any type of document on the host computer, which can be geographically at a different location. It is a versatile language and can be used on any platform or desktop.
9 Shivrani Arambam

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.

BASIC HTML TAGS


<!---> Specifies comments Creates hypertext links Formats text as bold Formats text in large font. Contains all tags and text in the HTML document Creates text Definition of a term Creates definition list Formats text with a particular font Encloses a fill-out form Defines a particular frame in a set of frames Creates headings of different levels Contains tags that specify information about a document Creates a horizontal rule Contains all other HTML tags Provides meta-information about a document Contains client-side or server-side script Creates a table Indicates table data in a table Designates a table row Creates a heading in a table <A>.</A> <B>.</B> <BIG>.</BIG> <BODY></BODY> <CENTER>...</CENTER> <DD></DD> <DL>...</DL> <FONT></FONT> <FORM>...</FORM> <FRAME>...</FRAME> <H#></H#> <HEAD>...</HEAD> <HR>...</HR> <HTML></HTML> <META>...</META> <SCRIPT></SCRIPT> <TABLE></TABLE> <TD></TD> <TR></TR> <TH></TH>

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.

JDBC VERSUS ODBC


At this point, Microsoft's ODBC (Open Database Connectivity) API is that probably the most widely used programming interface for accessing relational databases. It offers the ability to connect to almost all databases on almost all platforms. So why not just use ODBC from Java? The answer is that you can use ODBC from Java, but this is best done with the help of JDBC in the form of the JDBC-ODBC Bridge, which we will cover shortly. The question now becomes "Why do you need JDBC?" There are several answers to this question: 1. ODBC is not appropriate for direct use from Java because it uses a C interface. Calls from Java to native C code have a number of drawbacks in the security, implementation, robustness, and automatic portability of applications. 2. A literal translation of the ODBC C API into a Java API would not be desirable. For example, Java has no pointers, and ODBC makes copious use of them, including the notoriously error-prone generic pointer "void *". You can think of JDBC as ODBC translated into an object-oriented interface that is natural for Java programmers. 3. ODBC is hard to learn. It mixes simple and advanced features together, and it has complex options even for simple queries. JDBC, on the other hand, was designed to keep simple things simple while allowing more advanced capabilities where required.

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 DRIVER TYPES


The JDBC drivers that we are aware of at this time fit into one of four categories: JDBC-ODBC bridge plus ODBC driver Native-API partly-Java driver JDBC-Net pure Java driver Native-protocol pure Java driver

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).

JDBC- ODBC BRIDGE


The JDBC-ODBC Bridge is a JDBC driver, which implements JDBC operations by translating them into ODBC operations. To ODBC it appears as a normal application program. The Bridge implements JDBC for any database for which an ODBC driver is available. The Bridge is implemented as the sun.jdbc.odbc Java package and contains a native library used to access ODBC. The Bridge is a joint development of Intersolv and JavaSoft.

2.5 JAVA SERVER PAGES(JSP)


Java server Pages is a simple, yet powerful technology for creating and maintaining dynamic-content web pages. Based on the Java programming language, Java Server Pages offers proven portability, open standards, and a mature re-usable component model .The Java Server Pages architecture enables the separation of content generation from content presentation. This separation not eases maintenance headaches, it also allows web team members to focus on their areas of expertise. Now, web page designer can concentrate on layout, and web application designers on programming, with minimal concern about impacting each others work.

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.

STEPS IN THE EXECUTION OF A JSP APPLICATION


1 The client sends a request to the web server for a JSP file by giving the name of the JSP file within the form tag of a HTML page. 2 This request is transferred to the Java Web Server. At the server side Java Web Server receives the request and if it is a request for a jsp file server gives this request to the JSP engine. 3 JSP engine is program which can understands the tags of the jsp and then it converts those tags into a Servlet program and it is stored at the server side. This Servlet is loaded in the memory and then it is executed and the result is given back to theJava Web Server and then it is transferred back to the result is givenback to the Java Web Server and then it is transferred back to the client
13 Shivrani Arambam

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

2.6 Introduction to Java RMI


Remote Method Invocation (RMI) facilitates object function calls between Java Virtual Machines (JVMs). JVMs can be located on separate computers - yet one JVM can invoke methods belonging to an object stored in another JVM. Methods can even pass objects that a foreign virtual machine has never encountered before, allowing dynamic loading of new classes as required. This is a powerful feature!

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 Proposed System:


The aim of proposed system is to develop a system of improved facilities. The proposed system can overcome all the limitations of the existing system. The system provides proper security and reduce the manual work. The proposed system can be accessed from any part of the world, as opposed to stand alone or manual system, and provides information at anytime, anywhere round the clock to the customers

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

4. Software And Hardware Specifications


SOFTWARE REQUIREMENTS
Operating system Language (front end) Server Web technology Database (back end) Architecture : windows 7. : java (jdk5.0) : apache tomcat 7.0 : html, java script, css. : oracle 10g. : n-tier architecture

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.

5.2 System components:


5.2.1 Modules: 1.Home page: Home page consists of all the information about the website.

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.

7. Logout: In logout, the users can logout the website.


18 Shivrani Arambam

SGU

90530306694

UML Diagram:

Fig 5.1 UML Diagram

State chart diagram for authentication

( id,pwd )

( id,pwd ) Unauthenticated Validation

( ok ) Authenticated

Fig 5.2 State chart diagram for authentication

19

Shivrani Arambam

SGU

90530306694

Data Flow Diagram:

Customer

login

Account creation

Check account

Anslyse products

Update database

Organization Database

Organization Database

show details

Customer

Account details

Fig 5.3 Data Flow Diagram

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"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <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"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <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); %>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<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

CLOSE A/C 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"> <br/> <h2>Welcome To</h2> <h2>CORPORATE ONLINE BANK</h2> <A href="index.html"><IMG SRC="images/home1.gif"></IMG></A>
48 Shivrani Arambam

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("&nbsp;&nbsp;&nbsp;your account no '"+accountno+"' has closed."); out.print("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<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; } }

LOGIN VERIFICATION CODE:


package g; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; public class verifyLogin1 { public static boolean checkLogin(int accountno,String username,String password) { boolean status=false; Connection con=GetCon.getCon(); try { PreparedStatement ps=con.prepareStatement("Select * from NEWACCOUNT where accountno=? and username = ? and password =?"); ps.setInt(1,accountno); ps.setString(2,username); ps.setString(3,password); ResultSet rs=ps.executeQuery();
55 Shivrani Arambam

SGU

90530306694

status=rs.next(); } catch (SQLException e) { e.printStackTrace();} return status; } }

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.1 CODE TESTING


This strategy examines the logic of a program and has been carried out to identify three levels of correctness of programs. Possible correctness is first achieved by giving arbitrary inputs. Then the inputs are carefully selected to obtain predicted output. This gives the probable correctness. All potentially problematic areas are checked in this way for the software to achieve probable correctness. Absolute correctness can be demonstrated by a test involving every possible combination of inputs. However, this cannot be performed with the software but to the existence of the various possible combinations of the inputs and due to time restrictions.

7.2 SPECIFICATION TESTING


The specifications are examined which states what the program should do and how it should perform under various conditions. Then test cases are developed for each condition or combinations of conditions and submitted for processing. By examining the results, it is determined whether the program performs according to its specified requirements.

7.3 LEVELS OF TESTING


The two levels of Testing are Unit Testing System 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.

7.3.2 SYSTEM TESTING


At a time System Testing finds out the discrepancies between the system and its original objective, current specifications and systems documentation. The training session consists of getting the users used to software by asking them to perform data entry in our presence and look into the problems if encountered . Testing can be done in two ways. 1. Sample Tests
57 Shivrani Arambam

SGU

90530306694 2. Real Tests

7.4 SAMPLE TESTS


The software was tested with sample data that we randomly selected. I tested all functions with such random data and I was successful in getting accurate results. It was at this time I got to know certain intricacies of the system that I had overlooked.Without much delay however, I got over the problems and managed to perfect the software at least to the extent possible.

7.5 REAL TEST


For the real test, I have planned to do in due course. I initialized the software and creation of entities through the updation module, transaction entries through the transaction module and generated reports with the estimations. The various information retrieval functions as per user need are also implemented

58

Shivrani Arambam

SGU

90530306694

7.7 DISTRIBUTION OF RESULTS: SCREEN SHOTS: Home page:

Fig 7.7.1 Screen shot for home page:

59

Shivrani Arambam

SGU

90530306694

Registeration page:

Fig 7.7.2 Screen shot for registration page:

60

Shivrani Arambam

SGU

90530306694

Registration info:

Fig 7.7.3 Screen shot for registration info:

61

Shivrani Arambam

SGU

90530306694

Registered:

Fig 7.7.4 Screen shot for registered

62

Shivrani Arambam

SGU

90530306694

Home page:

Fig 7.7.5 Screen shot for balance home page

63

Shivrani Arambam

SGU

90530306694

Using Accounts:

Fig 7.7.6 Screen shot for accounts using

64

Shivrani Arambam

SGU

90530306694

Profile Details:

Fig 7.7.7 Screen shot for profile details

65

Shivrani Arambam

SGU

90530306694

Update Customer Details:

Fig 7.7.8 Screen shot for update customer details.

66

Shivrani Arambam

SGU

90530306694

Updated profile:

Fig 7.7.9 Screen shot for updated profile

67

Shivrani Arambam

SGU

90530306694

Details after updatation:

Fig 7.7.10 Screen shot for details after updatation.

68

Shivrani Arambam

SGU

90530306694

Logout page:

Fig 7.7.11 Screen shot for logout page.

69

Shivrani Arambam

SGU

90530306694

Admin page :

Fig 7.7.12 Screen shot for admin page

70

Shivrani Arambam

SGU

90530306694

Admin info:

Fig 7.7.13 Screen shot for admin info

71

Shivrani Arambam

SGU

90530306694

Stocks Rates :

Fig 7.7.14 Screen shot for stock 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

Das könnte Ihnen auch gefallen