Upload
smiley-sravani
View
135
Download
3
Tags:
Embed Size (px)
Citation preview
1
LENDING TREE
ABSTRACT
ABSTRACT
Dept. of CSE, GPREC ,KNL
2
LENDING TREE
Most of the bank out-sources pre-loan process to loan agencies to reduce the burden
and let the agencies pickup the information from customers and verify it before it is being
forwarded to the actual bank for approval of loan.
Lending Tree is an interface which facilitates a customer to apply for a loan from on-
line and to track the status from time-to-time along with aiding the loan approval agency to
verify and accept/reject the customer file. Lending Tree is unique in such a way, it not only
helps the customers but also the loan agency to check the pending, assign it to a departments,
complete the formalities and procedures between the departments and arrive at decisions to
very fact in addition to providing a transparency system for every one.
The customer can directly apply for a loan by selecting a bank and loan type from the
list available. The application is received by loan agency who will have three departments-
Pickup, Verification and Legal. This system can be controlled by the administrator. First he
will look at the application received and allot the application for a particular employee of
pickup department. The employee will go and make a physical verification of the documents
at the customers and receives the documents necessary for the loan. Then he logs into this
system and forwards the application to the verification department which will verify the
whereabouts of the person, his organization, his salary particulars etc. and then forwards the
application with a status verified. Then application reaches the legal department. The legal
department people will verify the builder details and when satisfied sends their report to the
administrator.
The administrator or final approving authority views both types of reports, Viz, the
reports from verification department and the report legal department. This will help him to
take a decision regarding whether to forward it to the bank or not. The same is communicated
to the customer.
The customer can at any time view the status of his application and can send any
messages to the administrator and can get clarifications from him. Thus the lending tree s/w
helps to simplify the loan system along with making the work easy.
Dept. of CSE, GPREC ,KNL
3
LENDING TREE
INTRODUCTION
1. INTRODUCTION
Dept. of CSE, GPREC ,KNL
4
LENDING TREE
1.1 PURPOSE OF THE PROJECT:
The customer can directly apply for a loan by selecting a bank and loan type from the
list available. The application is received by loan agency who will have three departments-
Pickup, Verification and Legal. This system can be controlled by the administrator. First he
will look at the application received and allot the application for a particular employee of
pickup department. The employee will go and make a physical verification of the documents
at the customers and receives the documents necessary for the loan. Then he logs into this
system and forwards the application to the verification department which will verify the
whereabouts of the person, his organization, his salary particulars etc. and then forwards the
application with a status verified. Then application reaches the legal department. The legal
department people will verify the builder details and when satisfied sends their report to the
administrator.
The administrator or final approving authority views both types of reports, Viz, the
reports from verification department and the report legal department. This will help him to
take a decision regarding whether to forward it to the bank or not. The same is communicated
to the customer.
The customer can at any time view the status of his application and can send any messages to
the administrator and can get clarifications from him. Thus the lending tree s/w helps to
simplify the loan system along with making the work easy.
1.2 EXISTING SYSTEM AND PROBLEMS :
Dept. of CSE, GPREC ,KNL
5
LENDING TREE
Here the existing system is a manual one using which the banking agent can’t maintain the
effectively by sharing across different branches with proper security and can’t track details
easily. It doesn’t provide proper co-ordination between different departments of the company.
It doesn’t allow the customer to check the status of his file in proper way which leads
customer dis-satisfaction.
Doesn’t provide faster and effective system
Doesn’t provide good co-ordination between departments
Doesn’t provide effective forwarding system to move the file from one level to
another
Doesn’t user-friendly interface
Difficulty in generating different reports as per the business requirement
Doesn’t facilitate the services from online
2.2 Proposed System:
Dept. of CSE, GPREC ,KNL
6
LENDING TREE
The online automated system with web-based architecture can support issues like.
This system maintains the information related different departments and stored at a
central DB, which leads easy accessibility and consistency
Interest rates of different banks and the other details are also available at the click of a
mouse.
Customer can apply for a loan and track his file details from online.
The decision process in faster and more consistent
Provides good communication between two departments
Provides a facility to generate the reports very easily.
Dept. of CSE, GPREC ,KNL
7
LENDING TREE
SYSTEM REQUIREMENTS
2. SYSTEM REQUIREMENTS
Dept. of CSE, GPREC ,KNL
8
LENDING TREE
The software requirement specification can be produce at the culmination of the
analysis task. The function and performance allocated to software as part of system
engineering are refined by established a complete information description, a detailed
functional description, a representation of system behavior, an indication of performance and
design constrain, appropriate validation criteria, and other information pertinent to
requirements. This project requires the following hardware and software equipment in order
to execute them. They are as given below.
2.1 HARDWARE SPECIFICATION:
Processor : Pentium IV processes architecture
RAM : 256 MB RAM.
Hard Disk : 40 GB Hard Disk Space.
Plug in : Ethernet card.
2.2 SOFTWARE SPECIFICATION:
Operating System : Windows XP
Techniques : JDK 1.5
Front End : Java Swing
Server : Apache Tomcat-5.0 web server
Database : Oracle 10g as database server
Dept. of CSE, GPREC ,KNL
9
LENDING TREE
PROJECT
ANALYSIS
3. PROJECT ANALYSIS:
Dept. of CSE, GPREC ,KNL
10
LENDING TREE
3.1 MODULE DESCRIPTION:
3.1.1 Administrator Module:
This module is responsible for coordinating the other modules. It allows the administrator
create, update/delete and view the banks information and it allows admin to create
create/update/delete and view different departments and it can create logins for different
employees in each and every department and it can manage loan interest rates of different
banks etc. It facilitates to view the new applicant details and assign it to different employees
in pickup department initially. It allows the administrator to view customer application finally
from verification department and builder details from legal department and then store bank
final opinion in this application. It also allows generating different reports for business
analysis. It provides messaging facility for the administrator for communication.
Administrators can perform the following task.
Create/Update/Delete New Banks Info
View the list of banks
Create/Update/Delete New Departments.
View List of Departments
Create/Update/Delete Employee Info
View the list of Banks
Manage loans info related to different banks
View the list applications and assign it to pickup dept employees
Sending messages to customers
View the pending applications
Update the status of the application
Generate reports
3.1.2. Pickup Module:
Dept. of CSE, GPREC ,KNL
11
LENDING TREE
This module allows the pickup department to view their applications which are
assigned to them, collect the documents according to the checklist and forward it to
verification department.
3.1.3. Verification Module:
This module allows the employees of verification department employees to view the
forwarded application from pickup department and check the details as per the documents
and forward it to next level.
This user can perform the following task
View the list applications forwarded by different employees of Pickup Dept
Verify the details
Forward applications to Administrator
3.1.4. Legal Module:
This module allows the employee of legal departments to check verify legal
documents of the builder, verify the check list and then generate the APF(Asset purchase
facility) no for the builder.
This user can perform the following task
View the list applications forwarded by different employees of Pickup Dept
Verify the details
Forward applications to Administrator
3.1.5. Customer Module:
Dept. of CSE, GPREC ,KNL
12
LENDING TREE
This module allows the customer to view the interest rates of the banks which we are
dealing, apply for a loan, check the status of the loan at any point of time and communicate
with the administrator if necessary. It allows messaging facility for communication.
This user can perform the following task
View the list of banks and their interest rates info
Apply for loan in a bank
Check the loan application status
Messages
3.2 DATA FLOW DIAGRAMS:
A data flow diagram is graphical tool used to describe and analyze movement of data
through a system. These are the central tool and the basis from which the other components
are developed. The transformation of data from input to output, through processed, may be
Dept. of CSE, GPREC ,KNL
13
LENDING TREE
described logically and independently of physical components associated with the system.
These are known as the logical data flow diagrams. The physical data flow diagrams show
the actual implements and movement of data between people, departments and workstations.
A full description of a system actually consists of a set of data flow diagrams. Using two
familiar notations Yourdon, Gane and Sarson notation develops the data flow diagrams. Each
component in a DFD is labeled with a descriptive name. Process is further identified with a
number that will be used for identification purpose. The development of DFD’s is done in
several levels. Each process in lower level diagrams can be broken down into a more
detailed DFD in the next level. The lop-level diagram is often called context diagram. It
consists a single process bit, which plays vital role in studying the current system. The
process in the context level diagram is exploded into other process at the first level DFD.
The idea behind the explosion of a process into more process is that understanding at
one level of detail is exploded into greater detail at the next level. This is done until further
explosion is necessary and an adequate amount of detail is described for analyst to understand
the process.
Larry Constantine first developed the DFD as a way of expressing system
requirements in a graphical from, this lead to the modular design.
A DFD is also known as a “bubble Chart” has the purpose of clarifying system
requirements and identifying major transformations that will become programs in system
design. So it is the starting point of the design to the lowest level of detail. A DFD consists
of a series of bubbles joined by data flows in the system.
Dfd symbols:
In the DFD, there are four symbols
1. A square defines a source(originator) or destination of system data
2. An arrow identifies data flow. It is the pipeline through which the information flows
3. A circle or a bubble represents a process that transforms incoming data flow into outgoing
data flows.
4. An open rectangle is a data store, data at rest or a temporary repository of data
Dept. of CSE, GPREC ,KNL
14
LENDING TREE
Process that transforms data flow.
Source or Destination of data
Data flow
Data Store
Constructing a dfd:
Several rules of thumb are used in drawing DFD’s:
1. Process should be named and numbered for an easy reference. Each name should be
representative of the process.
2. The direction of flow is from top to bottom and from left to right. Data Traditionally flow
from source to the destination although they may flow back to the source. One way to
indicate this is to draw long flow line back to a source. An alternative way is to repeat the
source symbol as a destination. Since it is used more than once in the DFD it is marked
with a short diagonal.
3. When a process is exploded into lower level details, they are numbered.
4. The names of data stores and destinations are written in capital letters. Process and
dataflow names have the first letter of each work capitalized
Dept. of CSE, GPREC ,KNL
15
LENDING TREE
A DFD typically shows the minimum contents of data store. Each data store should
contain all the data elements that flow in and out.
Questionnaires should contain all the data elements that flow in and out. Missing
interfaces redundancies and like is then accounted for often through interviews.
Sailent Features Of Dfd’s
1. The DFD shows flow of data, not of control loops and decision are controlled
considerations do not appear on a DFD.
2. The DFD does not indicate the time factor involved in any process whether the data
flows take place daily, weekly, monthly or yearly.
3. The sequence of events is not brought out on the DFD.
Types of Data Flow Diagrams
1. Current Physical
2. Current Logical
3. New Logical
4. New Physical
Current physical:
In Current Physical DFD process label include the name of people or their positions
or the names of computer systems that might provide some of the overall system-processing
label includes an identification of the technology used to process the data. Similarly data
flows and data stores are often labels with the names of the actual physical media on which
data are stored such as file folders, computer files, business forms or computer tapes.
Current logical:
The physical aspects at the system are removed as mush as possible so that the current
system is reduced to its essence to the data and the processors that transforms them regardless
of actual physical form.
Dept. of CSE, GPREC ,KNL
16
LENDING TREE
New logical:
This is exactly like a current logical model if the user were completely happy with the
user were completely happy with the functionality of the current system but had problems
with how it was implemented typically through the new logical model will differ from current
logical model while having additional functions, absolute function removal and inefficient
flows recognized.
New physical:
The new physical represents only the physical implementation of the new system.
Rules Governing the Dfd’s
Process
1) No process can have only outputs.
2) No process can have only inputs. If an object has only inputs than it must be a
sink.
3) A process has a verb phrase label.
Data Store
1) Data cannot move directly from one data store to another data store, a process
must move data.
2) Data cannot move directly from an outside source to a data store, a process, which
receives, must move data from the source and place the data into data store
3) A data store has a noun phrase label.
Source or Sink
The origin and / or destination of data.
1) Data cannot move direly from a source to sink it must be moved by a process
2) A source and /or sink has a noun phrase land
Dept. of CSE, GPREC ,KNL
17
LENDING TREE
Data Flow
1) A Data Flow has only one direction of flow between symbol. It may flow in both
directions between a process and a data store to show a read before an update.
The later is usually indicated however by two separate arrows since these happen
at different type.
2) A join in DFD means that exactly the same data comes from any of two or more
different processes data store or sink to a common location.
3) A data flow cannot go directly back to the same process it leads. There must be
atleast one other process that handles the data flow produce some other data flow
returns the original data into the beginning process.
4) A Data flow to a data store means update ( delete or change).
5) A data Flow from a data store means retrieve or use.
A data flow has a noun phrase label more than one data flow noun phrase can appear on a
single arrow as long as all of the flows on the same arrow move together as one package.
NORMALIZATION:
It is a process of converting a relation to a standard form. The process is used to
handle the problems that can arise due to data redundancy i.e. repetition of data in the
database, maintain data integrity as well as handling problems that can arise due to insertion,
updation, deletion anomalies.
Decomposing is the process of splitting relations into multiple relations to eliminate
anomalies and maintain anomalies and maintain data integrity. To do this we use normal
forms or rules for structuring relation.
Insertion anomaly: Inability to add data to the database due to absence of other data.
Deletion anomaly: Unintended loss of data due to deletion of other data.
Update anomaly: Data inconsistency resulting from data redundancy and partial update
Normal Forms: These are the rules for structuring relations that eliminate anomalies.
First normal form:
A relation is said to be in first normal form if the values in the relation are atomic for
every attribute in the relation. By this we mean simply that no attribute value can be a set of
values or, as it is sometimes expressed, a repeating group.
Dept. of CSE, GPREC ,KNL
18
LENDING TREE
Second normal form:
A relation is said to be in second Normal form is it is in first normal form and it
should satisfy any one of the following rules.
1) Primary key is a not a composite primary key
2) No non key attributes are present
3) Every non key attribute is fully functionally dependent on full set of primary key.
Third normal form:
A relation is said to be in third normal form if their exits no transitive dependencies.
Transitive Dependency:
If two non key attributes depend on each other as well as on the primary key then they
are said to be transitively dependent.
The above normalization principles were applied to decompose the data in multiple
tables thereby making the data to be maintained in a consistent state.
Unified Modeling Language
An Overview of UML
The UML is a language for
Visualizing
Specifying
Constructing
Documenting
These are the artifacts of a software-intensive system.
A conceptual model of UML:
The three major elements of UML are
The UML’s basic building blocks
The rules that dictate how those building blocks may be put together.
Some common mechanisms that apply throughout the UML.
Basic building blocks of the UML
The vocabulary of UML encompasses three kinds of building blocks:
Things
Relationships
Dept. of CSE, GPREC ,KNL
19
LENDING TREE
Diagrams
Things are the abstractions that are first-class citizens in a model;
Relationships tie these things together;
Diagrams group the interesting collection of things.
Things in UML: There are four kind of things in the UML
1. Structural things
2. Behavioral things.
3. Grouping things
4. Annotational things
These things are the basic object oriented building blocks of the UML.They are used to write
well-formed models.
STRUCTURAL THINGS
Structural things are the nouns of the UML models. These are mostly static parts of the
model, representing elements that are either conceptual or physical. In all, there are seven
kinds of Structural things.
Class:
A class is a description of a set of objects that share the same attributes, operations,
relationships, and semantics. A class implements one or more interfaces.
Graphically a class is rendered as a rectangle, usually including its name, attributes and
operations, as shown below.
Window
originSize
Open()Close()Display()
Interface:
An interface is a collection of operations that specify a service of a class or component. An
interface describes the externally visible behaviour of that element.
Graphically the interface is rendered as a circle together with its name.
Collaboration:
Dept. of CSE, GPREC ,KNL
20
LENDING TREE
Collaboration defines an interaction and is a society of roles and other elements that work
together to provide some cooperative behavior that’s bigger than the sum of all the elements.
Graphically , a collavoration is rendered as an ellipse with dashed lines, usually including
only its name as shown below.
Chain
Use Case:
Use case is a description of a set of sequence of actions that a system performs that yields an
observable result of value to a particular things in a model.
Graphically, Use Case is rendered as an ellipse with dashed lines, usually including only its
name as shown below.
Active Class:
An active class is a class whose objects own one or more processes or threads and therefore
can initiate control activity.
Graphically, an active class is rendered just like a class, but with heavy lines usually
including its name, attributes and operations as shown below.
Dept. of CSE, GPREC ,KNL
Chain of
Responsibility
Place Order
Event Management
21
LENDING TREE
Component:
Component is a physical and replaceable part of a system that conforms to and
provides the realization of a set of interfaces. Graphically, a component is rendered as a
rectangle with tabs, usually including only its name, as shown below.
orderform.java
Node:
A Node is a physical element that exists at run time and represents a computational
resource, generally having at least some memory and often, processing capability.
Graphically, a node is rendered as a cube, usually including only its name, as shown below.
server
BEHAVIORAL THINGS
Behavioral Things are the dynamic parts of UML models. These are the verbs of a
model, representing behavior over time and space.
Interaction:
An interaction is a behavior that comprises a set of messages exchanged among a set of
objects within a particular context to accomplish a specific purpose. Graphically, a message
is rendered as a direct line, almost always including the name if its operation, as shown
below.
Display
State Machine:
Dept. of CSE, GPREC ,KNL
22
LENDING TREE
A state machine is a behavior that specifies the sequence of states an object ar an
interaction goes through during its lifetime on response to events, together with its responses
to those events. Graphically, a state is rendered as rounded rectangle usually including its
name and its sub-states, if any, as shown below.
GROUPING THINGS
Grouping things are the organizational parts of the UML models. These are the boxes
into which a modl can be decomposed.
Package:
A package is a general-purpose mechanism for organizing elements into groups.
Business Rules
Annotational Things
Annotational things are the explanatory parts of the UML models.
Note:
A note is simply a symbol for rendering constraints and comments attached to an element or a
collection of elements. Graphically a note is rendered as a rectangle with dog-eared corner
together, with a textual or graphical comment, as shown below.
Business Rules
RELATIONSHIPS IN THE UML:
Dept. of CSE, GPREC ,KNL
Waiting
23
LENDING TREE
There are four kinds of relationships in the UML:
1. Dependency
2. Association
3. Generalization
4. Realization
Class Diagrams
Class diagrams are the most common diagrams found in modeling object-oriented
systems. A class diagram shows a set of classes, interfaces, and collaborations and their
relationships. Graphically, a class diagram is a collection of vertices and arcs.
Contents:
Class Diagrams commonly contain the following things:
Classes
Interfaces
Collaborations
Dependency, generalization and association relationships
Use Cases
Use Case diagrams are one of the five diagrams in the UML for modeling the
dynamic aspects of systems (activity diagrams, sequence diagrams, state chart diagrams and
collaboration diagrams are the four other kinds of diagrams in the UML for modeling the
dynamic aspects of systems). Use Case diagrams are central to modeling the behavior of the
system, a sub-system, or a class. Each one shows a set of use cases and actors and
relationships.
Common Properties:
A Use Case diagram is just a special kind of diagram and shares the same common
properties, as do all other diagrams- a name and graphical contents that are a projection into
the model. What distinguishes a use case diagram from all other kinds of diagrams is its
particular content.
Contents
Use Case diagrams commonly contain:
Use Cases
Actors
Dependency, generalization, and association relationships
Dept. of CSE, GPREC ,KNL
24
LENDING TREE
Like all other diagrams, use case diagrams may contain notes and constraints.
Use Case diagrams may also contain packages, which are used to group elements of your
model into larger chunks. Occasionally, you will want to place instances of use cases in your
diagrams, as well, especially when you want to visualize a specific executing system.
Interaction Diagrams
An Interaction diagram shows an interaction, consisting of a set of objects and their
relationships, including the messages that may be dispatched among them.
Interaction diagrams are used for modeling the dynamic aspects of the system.
A sequence diagram is an interaction diagram that emphasizes the time ordering of the
messages. Graphically, a sequence diagram is a table that shows objects arranged along the
X-axis and messages, ordered in increasing time, along the Y-axis and messages, ordered in
increasing time, along the Y-axis.
Contents
An interaction diagram commonly contains:
Objects
Links
Messages
Like all other diagrams, interaction diagrams may contain notes and constraints.
Sequence Diagrams
A sequence diagram is an interaction diagram that emphasizes the time ordering of
the messages. Graphically, a sequence diagram is a table that shows objects arranged along
the X-axis and messages, ordered in increasing time, along the Y-axis.
Typically you place the object that initiates the interaction at the left, and increasingly more
sub-routine objects to the right. Next, you place the messages that these objects send and
receive along the Y-axis, in order of increasing time from top to the bottom. This gives the
reader a clear visual cue to the flow of control over time.
Sequence diagrams have two interesting features:
1. There is the object lifeline. An object lifeline is the vertical dashed line that represents
the existence of an object over a period of time. Most objects that appear in the
interaction diagrams will be in existence for the duration of the interaction, so these
objects are all aligned at the top of the diagram, with their lifelines drawn from the top
of the diagram to the bottom.
2. There is a focus of the control. The focus of control is tall, thin rectangle that shows
the period of time during which an object is performing an action, either directly or
Dept. of CSE, GPREC ,KNL
25
LENDING TREE
through the subordinate procedure. The top of the rectangle is alignes with the action;
the bottom is aligned with its completion.
Activity Diagram
An Activity Diagram is essentially a flow chart showing flow of control from activity
to activity. They are used to model the dynamic aspects of as system .They can also be used
to model the flow of an object as it moves from state to state at different points in the flow of
control.
An activity is an ongoing non-atomic execution with in a state machine. Activities
ultimately result in some action, which is made up of executable atomic computations that
result in a change of state of distinguishes a use case diagram from all other kinds of
diagrams is its particular content.
Contents
Use case diagrams commonly contain:
Use cases
Actors
Dependency, generalizations, and association relationships
Like all other diagrams use case diagrams may contain notes and constraints Use case
diagrams may also contain packages which are used to group elements of your model into
larger chunks. Occasionally you will want to place instances of use cases of your diagrams,
as well especially when you want to visualize a specific executing system.
Interaction Diagrams
An interaction diagram shows an interaction, consisting of a set of objects and their
relationships, including the messages that may be dispatched among them.
A sequence diagram is an interaction diagram that emphasizes the time ordering of
messages. Graphically, a sequence diagram is a table that shows objects along the X-Axis
and messages along the Y-Axis.
Contents
Interaction diagrams commonly contain:
Objects
Links
Messages
Dept. of CSE, GPREC ,KNL
26
LENDING TREE
Like all other diagrams, interaction diagrams may contain notes and constraints.
State Chart Diagrams
A state chart diagram shows a state machine .State chart diagrams are used to model
the dynamic aspects of the system. For the most part this involves modeling the behavior of
the reactive objects. A reactive object is one whose behavior is best characterized by its
response to events dispatched from outside its context. A reactive object has a clear lifeline
whose current behavior is affected by its past.
A state chart diagram show a state machine emphasizing the flow of control from
state to state. A state machine is a behavior that specifies the sequence of states an object
goes through during its life time in response to events together with its response to those
events. A state is a condition in the life of the object during which it satisfies some
conditions, performs some activity or wait for some events. An event is a specification of a
significant occurrence that has a location in time and space.
Graphically a state chart diagram is a collection of vertices and arcs. State chart
diagram commonly contain:
Simple states and Composite states.
Transitions, including events and actions.
3.3 USE CASE DIAGRAMS:
Dept. of CSE, GPREC ,KNL
27
LENDING TREE
Use case diagram of the Dept:
Dept. of CSE, GPREC ,KNL
28
LENDING TREE
Dept. of CSE, GPREC ,KNL
29
LENDING TREE
3.3.1 SEQUENCE DIAGRAM:
Dept. of CSE, GPREC ,KNL
30
LENDING TREE
3.3.2.ACTIVITY DIGRAM :
Dept. of CSE, GPREC ,KNL
31
LENDING TREE
3.3.3 CLASS DIGRAM:
Dept. of CSE, GPREC ,KNL
32
LENDING TREE
4.7.COMPONMENT DIAGRAM:
Dept. of CSE, GPREC ,KNL
33
LENDING TREE
3.3.4. DEPLOYMENT DIAGRAM:
Dept. of CSE, GPREC ,KNL
34
LENDING TREE
3.4 Entity relation diagram:
Dept. of CSE, GPREC ,KNL
35
LENDING TREE
LITERATURE
SURVEY
Dept. of CSE, GPREC ,KNL
36
LENDING TREE
4. LITERATURE SURVEY
4.1 About java:
The Internet helped catapult Java to the forefront of programming, and Java, in
turn, has had a profound effect on the Internet. The reason for this is quite simple: Java
expands the universe of objects that can move about freely in the cyberspace. In a network,
two very broad categories of objects are transmitted between the server and our computer
passive information and dynamic, active programs.
As desirable as dynamic, networked programs are, they also present serious problems
in the areas of security and portability. Java achieves this security or protection by confining
a Java program to the Java execution environment and not allowing it to access to other parts
of the computer. Many types of the computers and operating systems are in use throughout
the world and many are connected to the Internet. 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.
Java was designed to be easy for the professional programmers to learn and use
efficiently. The object model of Java is simple and easy to extend, while simple types, such
as integers are kept as high-performance non-objects.
Cyber shopping is implemented using the Java language so as to make the
programmers (which includes super user, and Levels) and different clients and users to
handle cyber shopping easily without any difficulty.
The multi plat formed environment of the web places extraordinarily demands on a
program, because the program must execute reliably in a variety of systems. Thus, the ability
to create robust programs was given a high priority in the design of Java. At the same time,
Java frees us from having to worry about many of the most common cause of programming
errors. Because Java is strictly typed language, it checks our code at the compile time and
also at run-time.
Java was designed to meet the real world requirements of creating interactive,
Networked programs. Java supports multithreaded programming, which allows us to write
programs that do many things simultaneously. A central issue for the Java designers was that
of code longevity and portability. Their goal was “write once; run anywhere, anytime, forever
“.
Java enables the creation of the cross-platform programs by compiling into
intermediate representation called Java byte code. This code can be interpreted on any system
Dept. of CSE, GPREC ,KNL
37
LENDING TREE
that provides a java virtual machine. Java is designed for the distributed environment of the
Internet, because it handles TCP/IP protocols. In fact, accessing a resource using a URL is
not much different from accessing a file. The original version of Java (OAK) included
features for intra-address-space messaging. Java programs carry with them substantial
amounts of the run-time type information that is used to verify and resolve accesses to objects
at run-time. This makes it possible to dynamically link code in a safe and expedient manner.
JAVA
Java was conceived by James Gosling, Patrick Naughton, Chris Warth, Ed Frank
and Mike Sheridan at Sun Microsystems Inc. in 1991. It took 18 months to develop the first
working version. This language was initially called “Oak” but was renamed as “Java” in
1995. Between the initial implementation of Oak in the fall of 1992 and the public
announcement of Java in the spring of 1995, many more people contributed to the design and
evolution of the language. Somewhat surprisingly, the original impetus for Java was not the
Internet! Instead, the primary motivation was the need for a platform-independent language
that could be used to create software to be embedded in various consumer electronic devices,
such as microware ovens and remote controls. Java can be used to create two types of
programs: applications and applets. An application is a program that runs on your computer,
under the operating system of that computer. This is, an application created by java is more or
less like one created using C or C++. An applet is an application designed to be transmitted
over the Internet and executed by a Java-enabled web browser. An applet is actually a tiny
Java program, dynamically downloaded across the network, just like an image, sound file, or
video clip.
The main properties of the java, which made java so popular, are as follows:
1. Simple
2. Secure
3. Portable
4. Object-oriented
5. Robust
6. Multithreaded
7. Architecture-neutral
8. Interpreted
9. High Performance
10. Distributed
11. Dynamic
Dept. of CSE, GPREC ,KNL
38
LENDING TREE
Java’s Magic: the Byte Code
The key that allows Java to solve both the security and the portability problems
just described is that the output of a Java compiler is not executable code. Rather, it is Byte
code. Byte code is a highly optimized set of instructions designed to be executed by the Java
run-time system, which is called the Java Virtual Machine (JVM). That is, in its standard
form, the JVM is an interpreter for Byte code. This may come as a bit of a surprise.
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 straightforward: only the JVM needs to be
implemented for each platform. Once the run-time package exists for a given system, any
Java Program can run on it. Remember, although the details of the JVM will differ from
platform to platform, all interpret the same Java Byte code.
Java Environment :
Java environment includes a large number of development tools and hundreds of
classes and methods. The development tools are part of the system known as Java
Development Kit (JDK) and the classes and methods are part of the Java Standard
Library (JSL), also known as the Application Programming Interface (API).
Java Development Kit
The Java Development Kit comes with a collection of tools that are used for
developing and running Java programs. They include:
1. Appletviewer (for viewing Java applets)
2. Javac (Java Compiler)
3. Java (Java Interpreter)
4. Javap (Java Disassembler)
5. Javah (for C header files)
6. Javadoc (for creating HTML documents)
7. Jdb (Java debugger)
Application Programming Interface
The Java Standard Library (or API) includes hundreds of classes and methods
grouped into several functional packages. Most commonly used packages are:
Language Support Package: A collection of classes and methods required for
implementing basic features of Java.
Dept. of CSE, GPREC ,KNL
39
LENDING TREE
Utilities Package: A collection of classes to provide utility functions such as date
and time functions.
Input/output Package: A collection of classes required for input/output
manipulation.
Networking Package: A collection of classes for communicating with other
computers via Internet.
AWT Package: The Abstract Window Tool Kit package contains classes that
implements platform-independent graphical user interface.
Applet Package: This includes a set of classes that allows us to create Java applets.
4.2 HTML
The Hypertext Markup Language (HTML) is a simple markup language used to create
hypertext documents that are portable from one platform to another. HTML documents are
SGML documents with the generic Semantics that are appropriate for representing the
information from wide range of applications. Html version 3.2
A set of instruction embedded in a document is called the mark up language. These
instructions describe what the document text means and how is should look like in a display
hyperlink specification language that define the syntax and placement of special embedded
directories that are not displayed by a web browser, but it tell how to displays the content of
the documents including text, images and other supported media.
Web site is a collection of pages, publications and documents that reside on the web
server. While these page publications and a document as a formatted in any single format.
You should use html for Home page and all primary pages and the site. This will enable the
millions of web users to easily access and to take advantage of your web site. Html
Documents are platform independent, if they created properly you can move home page to
any server platform.
BASIC MARKUP TAGS
An HTML documents starts with <HTML> tag. This element tells the browser that
the file contains HTML coded information. HTML document contain two parts namely the
head and body
HEAD
<HEAD>…</HEAD>
This is the first part of HTML document, which contain description of the HTML page.
Dept. of CSE, GPREC ,KNL
40
LENDING TREE
TITLE
<TITLE>…</TITLE>
These tags are embedded within the Head tags. Each HTML page should have a short and
descriptive title. The browser at the top usually displays the title.
A TITLE
Is used in the indexes as well as in browser’s history list and bookmarks.
Cannot contain any formatting, images, or links to other pages.
Can have animated titles.
Example
<HTML>
<HEAD>
<TITLE>this is an html title</TITLE>
</HEAD>
…
</HTML>
SOME POPULAR BROWSERS
Netscape Navigator
Netscape Communicator
Internet Explorer 3.0
Internet Explorer 4.0
ADVANTAGES: -
An HTML document is small and hence easy to send over the net. It is small because it does
not include format information.
HTML documents are cross platform compatible and device independent. We only need an
HTML readable browser to view them. For names, locations etc. are not required.
4.3 Java Script
Java script is a scripting language developed jointly by sun Netscape and is meant for
the WWW. A scripting language is a simple script based programming language designed to
enable programming to write useful programs quickly. A script is similar to a macro, which
tells a program how to perform a specific procedure. As you go through this chapter we will
bet a better understand of what a scripting is how Java Script brings about interactive wed
pages with HTML.
Dept. of CSE, GPREC ,KNL
41
LENDING TREE
Java Script Is Embedded Into Html
Java Script code usually embedded into HTML document and is executed within
them. By it self-JavaScript has no user interface. It rallies on HTML to provide the mean of
interaction with the user. Most of JavaScript object have HTML by providing events to
HTML tags and provide event driven code to execute it.
Java Script Is Browser Dependent
JavaScript depends on the web browser to support it. If the browser doesn’t
support it, JavaScript code will be ignored. Internet Explorer 3.0 and Netscape Navigator 2.0
onwards support JavaScript.
Java Script Is An Interpreted Language
Java script is interpreted at runtime by the browser before it is executed. It is not
completed into a separate program like a.exe but remains part of the HTML file.
Java Script Is A Loosely Type Language
Java script is very flexible compared to java. We need not specify the data type of
a variable while declaring it. Also we need not declare variable explicitly. It is perfectly
legal to declare variable as when we required them.
Java Script Is an Object-Based Language
Java Script is an object-based language. We can work with objects that
encapsulate data and behavior. However JavaScript object model is instanced-based and
there is no inheritance. This is basic difference between an object oriented and objects
based language.
Java script Is Not Java
Java applet is stored in a separate file and connected to HTML file through the
<applet> tag, and it strongly typed, object oriented compiled language. JavaScript is
loosely typed object based, interpreted language meant to create script. JavaScript can be
used to
Enhance Html pages.
Develop client side application.
Built to a certain extend client/server web application.
Create extension to a web server.
Provide database connectivity without using CGI.
Client Side Framework
Dept. of CSE, GPREC ,KNL
42
LENDING TREE
The client side framework include the following
Web Browser
Html client extension (java applets, active x controls and Netscape plugging)
scripts language (JavaScript) JavaScript role in web application development.
Client Side Application
JavaScript has good capabilities when working with Html tags & associated
objects compared to java. For certain cases JavaScript provides a programming
backbone with which to develop application.
Data Validation
JavaScript provides the means for basic data validation before it is sent to
the server. Whether the values entered are correct or not or whether all the fields in
a form are filled out or not can be checked before sending data to web server, if
JavaScript is not used then data is sent to web server, and the web server would
response with a message that the data sent to it is incorrect or incomplete Thus
JavaScript ensures data validation and also reduces the network traffic.
Identifiers
Represent variable method or objects. Must start with a letter or under score (_)
subsequent character can be numbers or alphabets.
Keywords
Break, if, this, continue, in time, else, return, but, false, new, while, for, null, with,
function.
Literals
Integer literals.
Floating-point literals.
Boolean literals.
String literals.
Special literals.
Special Character.
A function is declared in the <HEAD> part of the Html Script so that the browser loads
the function before the body executes it.
Java Script Object Model
JavaScript is an object-based language. It has no inheritance. The relationship
between objects at different levels is not of ancestor descent but of container. When an
object properties or methods are referenced is used to denote ownership.
Dept. of CSE, GPREC ,KNL
43
LENDING TREE
Document Object
Document object is the most important as the document object is responsible for
all the actual contents displayed on a given page. Using document object we can display
dynamic Html pages. Also all typical interface elements of a web application are
contained in the document. A common use of document object is generating Html pages
through JavaScript. This is done using write () or writeln () methods.
Java Server Page (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.
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 Pages lifecycle and its
interaction with associated components.
The JSP engine for a particular server might be built-in or might be provided through a 3rd
–party add-on. As long as the server on which you plan to execute the Java Server Pages
supports the same specification level as that to which the file was written, no change
should be necessary as you move your files from server to server. Note, however, that
instructions for the setup and configuration of the files may differ between files.
Composition
It was mentioned earlier that the Java Server Pages architecture could 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 Serves. As the default scripting language, Java Server Pages use
the Java Programming language. This means that scripting on the server side can take
advantage of the full set of capabilities that the Java programming language offers.
Processing
A Java Server Pages file is essentially an HTML document with JSP scripting or
tags. It may have associated components in the form of. class, .jar, or .ser files- -or it may
not. The use of components is not required.
Dept. of CSE, GPREC ,KNL
44
LENDING TREE
The Java Server Pages file has a .jsp extension to identify it 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 customer. Because it is standard HTML,
the dynamically generated response looks no different to the customer browser than a
static response.
Access Models
A Java Server Pages file may be accessed in at least two different ways:
A client request comes directly into a Java Server Page.
In this scenario, suppose the page accessed reusable Java Bean components that
perform particular well-defined computations like accessing a database. The result of the
Bean’s 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. A request
comes through a servlet.
The servlet generates the dynamic content. To handle the response to the client,
the servlet creates a Bean and stores the dynamic content (sometimes called the result set)
Dept. of CSE, GPREC ,KNL
Browser
BeanBean
JSP
Request
Response
Browser
Servlet
Bean Bean
JSP
Request
Response
Result Bean
JDBC
Database
45
LENDING TREE
in the Bean. The servlet then invokes a Java Server Page that will present the content
along with the Bean containing the generated from the servlet.
There are two APIs to support this model of request processing using Java Server
Pages. One API facilitates passing context between the invoking servlet and the Java
Server Page. The other API lets the invoking servlet specify which Java Server Page to
use.
In both of the above cases, the page could also contain any valid Java code. The Java
Server Pages architecture separation of content from presentation- -it does not mandate it.
JDBC requires that the SQL statements be passed as Strings to Java methods. For
example, our application might present a menu of database tasks from which to choose.
After a task is selected, the application presents prompts and blanks for filling information
needed to carry out the selected task. With the requested input typed in, the application
then automatically invokes the necessary commands.
In this project we have implemented three-tier model, commands are sent to a
“middle tier” of services, which then send SQL statements to the database. The database
process the SQL statements and sends the results back to the middle tier, which then sends
them to the user. JDBC is important to allow database access from a Java middle tier.
WEBLOGIC SERVER 7.0
WebLogic Server provides a standards-based nonproprietary platform to develop and deploy
enterprise applications. WebLogic Server 7.0 is fully complaint with the J2EE 1.3
specification and supports all the technologies that belong to the J2EE 1.3 specification.
Web Server
Servlet Engine JSP Engine Web Services
Security and Administration
Dept. of CSE, GPREC ,KNL
46
LENDING TREE
Business Logic application components
(Servlets,JSPs,EJBs)
EJB Container
(Component Management, Connection, Security and Transaction
Services)
JCA Adapters JMS
JDBC
Web Server-WebLogic Server contains a built in Web Server capable of handling
concurrent browser requests. The Web Server inside WebLogic Server supports the
http1.0 and http 1.1 protocols. This Web Server is the point of entry for handling
requests from browser client applications. These requests are routed internally in
WebLogic Server to any of the appropriate containers or engines that can process a
browser requests. WebLogic Server provides the ability to use third party Web
Servers, such as Apache, instead of the internal Web Server.
Servlet Engine-To support execution of Java Servlets, which process browser client
requests, WebLogic Server contains a high performance Servlet engine.
JSP Engine-The JSP Engine in WebLogic Server is used to process and execute Web
applications written as JSPs.
Web Services-An entirely new technology supported by WebLogic Server is Web
services. WebLogic Server is capable of handling and processing SOAP messages
from Web services client applications
EJB Container – the EJB Container in WebLogic Server supports the deployment and
execution of EJBs application components. The EJB container in WebLogic Server
7.0 supports the EJB 2.0 specification. The EJB container provides application
components with services such as Life Cycle Services, Connection Management,
Dept. of CSE, GPREC ,KNL
Message
Queue
Database EIS
47
LENDING TREE
Transaction Management and Security Management. The EJB container supports the
handling and processing of requests from client application that use RMI, T3
(WebLogic Server internal), JNDI, IIOP, SOAP and so on.
Weblogic 7.0 Features:
Java Servlet 2.3 API – The Java Servlet 2.3 API is supported by WebLogic Server
such as filters and listeners.
JSP 1.2 Specification – WebLogic Server 7.0 now supports the new features of the
JSPs 1.2 specification such as custom tag libraries.
JDBC 2.0 API Supports- New features of the JDBC 2.0 API such as batch updates
and scrollable result sets, as well as new data types such as struct, arrays.
JNDI 1.2.1- WebLogic Server 7.0 provides its own implementation of Naming and
Directory services based on the JNDI Service Provider Interface specification
EJB 2.0 Supports-WebLogic Server contains an EJB container that conforms to the
EJB 2.0 specification. The EJB 2.0 supports includes support for session, entity, MDB
EJBs
Enhancements to WebLogic Query Language (WLQL)-The existing WebLogic Query
Language extensions have been enhanced for the new EJB Query Language (EJBQL)
introduced in the EJB 2.0 specification
JMS 1.0.2 API-WebLogic Server supports JMS API 1.0.2 specification. It contains a
Java Message Service bridge that can be used to integrate a JMS application deployed
on WebLogic Server with a third party JMS provider.
JTA 1.0.1-The Java Transaction API used for managing transaction for resources such
as database connections and message queue connections is supported in WebLogic
Server.
Java API for XML processing 1.1-Java brings together the SAX and DOM APIs in
one single package. WebLogic Server supports JAXP 1.1.
J2EE Connector Architecture 1.0- Support for the new Enterprise integration
technology from J2EE – the J2EE connector architecture (JCA) has been provided in
WebLogic Server 7.0.
Clustering – WebLogic Server 7.0 now enables setting up different WebLogic Server
instances in a cluster on the same machine without requiring the machine to be
multihomed, that is having more than one IP addresses. A BEA WebLogic cluster is a
Dept. of CSE, GPREC ,KNL
48
LENDING TREE
group of WebLogic Servers that work together transparently to improve availability
and scalability.
4.4 Enterprise Java Beans
Introducing Enterprise Java Beans
The Enterprise Java Beans (EJB) standard is component architecture for deployable server-
side components in Java. It is an agreement between component and application servers that
enables any component to run in any application server. EJB components (called Enterprise
Beans) are deployable, and can be imported and loaded into an application server, which
hosts those components.
The top three values of EJB are as follows:
1. It is agreed upon by the industry. Those who use EJB will benefit from its widespread
use. Because everyone will be on the same page, in the future it will be easier to hire
employees who understand your systems (since they may have prior EJB experience),
learn best practices to improve your system, partner with businesses, (since
technology will be compatible), and sell software (since customers will accept your
solution). The concept of “train once, code anywhere” applies.
2. Portability is easier: The EJB specification is published and available freely to all.
Since EJB is a standard, you do not need to gamble on a single, proprietary vendor’s
architecture. And although portability will never be free, it is cheaper than without a
standard.
3. Rapid Application Development: Your application can be constructed faster because
you get middleware from the application server. There’s also less of a mess to
maintain.
Dept. of CSE, GPREC ,KNL
49
LENDING TREE
SOURCE CODE
Dept. of CSE, GPREC ,KNL
50
LENDING TREE
5.SOURCE CODE
//---------------------------MAIN.JSP ----------------------------
<html>
<title>Cyber Contributing Trees</title><body bgcolor="pink">
<body>
<center> <h3>Lending Tree<h3>
<form action="newcheck.jsp">
<table align="center"bgcolor="wheat" border=2>
<tr><td><b>LoginName</b></td><td><input name="lname" type="text"/></td></tr>
<tr><td><b>Passward</b></td><td><input name="pwd"type="password"/></td></tr>
<tr><td><b>UserType</td><td>
<select name="user">
<option><b> Admin</b>
<option><b>Cust</b>
<option><b>PickUp</b>
<option><b>Verification</b>
<option><b>Legal</b>
</select></TD></tr>
<tr><td align="center" colspan="2"><input name="Login"type="submit" value="Login">
<input name="reset" type="reset"value="Reset"/></td></tr></table></form>
<h5 align="center"><font size="4"><a href="loans.jsp">Register
NewCustomer</a></font></h5></center></body></html>
//---------------------------MAIN.JSP ------------------------------//
Dept. of CSE, GPREC ,KNL
51
LENDING TREE
//---------------------------ADMIN.JSP------------------------------//
<%@ page import="java.sql.*"%><%@page import="com.lendingtree.conn.ConnectionPool"%><%try{String lname=request.getParameter("lname");String pwd=request.getParameter("pwd");String user=request.getParameter("user");out.println(lname);out.println(pwd);out.println(user);
//Class.forName("oracle.jdbc.driver.OracleDriver");//Connection con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","scott","tiger");Connection con=ConnectionPool.getConnection();Statement stmt=con.createStatement();String vsql="select * from "+user+"";System.out.println(vsql);ResultSet rs=stmt.executeQuery(vsql);String userAdmin="Admin";if(user.equals(userAdmin)){rs.next();String vlname=rs.getString("lname");String vpwd=rs.getString("pwd");System.out.println("vlname--"+vlname);System.out.println("vpwd--"+vpwd);if(lname.equals(vlname)&&pwd.equals(vpwd)){%><body bgcolor="pink">
<center><caption><font color="black"><h4>Administration</h4></font></caption></center><table border=2 align="center"bgcolor="wheat"><tr><td><a href="newcb.jsp"> <font color="black">Banks Mangement</font></a></td></tr><tr><td><a href="dept.jsp"> <font color="black">Departments Management</font></a></td></tr><tr><td><a href="emp.jsp"> <font color="black">EmployeesManagement</font></a></td></tr><tr><td><a href="loans.jsp"> <font color="black">Loans Mangement</font></a></td></tr><tr><td><a href="cust-disp.jsp"> <font color="black">Customers Mangement</font></a></td></tr><tr><td><a href="buil.jsp"> <font color="black">Builders Mangement</font></a></td></tr></table></body><%
Dept. of CSE, GPREC ,KNL
52
LENDING TREE
} else{out.println("<h3><i><font color=\"black\">invalid user name passward</font></i></h3>"); %><body bgcolor="pink" align="right"><a href="/soe/main.jsp">home</a></body>
<%}} else{
rs.next();String vlname=rs.getString("CNAME");String vpwd=rs.getString("CPWD");System.out.println("vlname--"+vlname);System.out.println("vpwd--"+vpwd);if(lname.equals(vlname)&&pwd.equals(vpwd)){%><body bgcolor="pink">
<center><caption><font color="black"><h4>CustomerManagement</h4></font></caption></center><a href="cust.jsp"> <font color="black">Custmers Mangement</font></a></body><%}else {out.print("Invalid UserName or password");%><body bgcolor="pink" align="right"><a href="/soe/main.jsp">home</a></body><%
}
}}catch(Exception e){out.print(e);}%>
//---------------------------ADMIN.JSP------------------------------//
Dept. of CSE, GPREC ,KNL
53
LENDING TREE
//---------------------------NEWCB.JSP------------------------------//
<%@page import="com.lendingtree.conn.ConnectionPool"%><html><body align="right"> <h4 align="right"><a href="main.jsp"> LOG OUT</a></h4></body></html><%@ page import="java.sql.*"%><%@ page contentType="text/html"%>
<%//Class.forName("oracle.jdbc.driver.OracleDriver");//Connection con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","scott","tiger");Connection con=ConnectionPool.getConnection();Statement stmt=con.createStatement();String vsql="select * from banks";ResultSet rs=stmt.executeQuery(vsql);response.setContentType("text/html");try{out.print("<html><head><title>BanksManagement</title>");%><script type="text/javascript">function changeAction(txt){var t=txt
if(t=="del"){alert("You have clicked Delete Option")document.getElementById("myForm").submit()}else
{var x=document.getElementById("myForm")x.action="addnew1.jsp"alert("ThanQ for choosing for Addnew record")x.submit()}
}</script>
<%out.print("<body bgcolor=\"pink\">");%><form id="myForm" action="del.jsp"><%out.print("<center><caption><font style=\"tahoma\" color=\"blue\"><b>BanksManagement</b></font></caption></center>");out.print("<table align=\"center\"bgcolor=\"wheat\" border=\"2\">");out.println("<tr><th></th><th>BANKID</th><th>BANKNAME</th><th>BRANCH</th><th>ADDRESS</th></tr>");while(rs.next())
Dept. of CSE, GPREC ,KNL
54
LENDING TREE
{%><tr><td><input type="checkbox" value="<%=rs.getInt("BANKID")%>" name="check"></td><td><a href="/soe/edit.jsp?bid=<%=rs.getInt("BANKID")%>"\"><%=rs.getInt("BANKID")%></a></td><%out.print("<td>"+rs.getString("BANKNAME")+"</td>");out.print("<td>"+rs.getString("BRANCH")+"</td>");out.print("<td>"+rs.getString("ADDRESS")+"</td>");%>
<td></td></tr><%}out.print("<tr><td colspan=\"6\" align=\"center\"><input type=\"submit\" onclick=\"changeAction('addnew')\" name=\"addnew\" value=\"ADDNEW\">");out.print("<input type=\"submit\" onclick=\"changeAction('del')\" name=\"del\"value=\"DELETE\"></td></tr>");out.println("</table>");%>
<center><a href="adminnew.jsp">ADMIN</a></center><font color="blue"><b><ul><li>Click on The Bankid of Edit.</li></ul></b></font>
<%out.print("</form></body></html>");}catch(Exception e){out.println(e);}%>
//---------------------------NEWCB.JSP------------------------------//
//---------------------------ADDNEW1.JSP------------------------------//
Dept. of CSE, GPREC ,KNL
55
LENDING TREE
<html><head><script type="text/javascript">function checkData(){var t2=document.getElementById("ltype").value;var t3=document.getElementById("ltypeone").value;var t4=document.getElementById("ltypetwo").value;var t1=document.getElementById("intrate").value;submitOK="true"if( (!(isNaN(t2)==true))||(!(isNaN(t3)==true))||(!(isNaN(t4)==true)) ){alert("Please Enter a Valid Data");submitOK="false"document.getElementById("ltype").value=" "document.getElementById("ltypeone").value=" "document.getElementById("ltypetwo").value=" "}var a=" "if((isNaN(t1)==true)||(t1=="")){alert("Enter a valid BankId");document.getElementById("intrate").value="";submitOK="false"}if(submitOK=="false"){return false;}}
</script></head><body bgcolor="PINK">
<form id="myForm" action="stored.jsp" onsubmit="return checkData()">
<table align="center" border=2 bgcolor="wheat"><caption><font color="BLACK"><h4>BankInformationForm</h4></font></caption><tr><td><b>Bankid</b></td><td><input name="bankid" id="intrate" type="text"></td> </tr><br><tr><td><b>BankName</b></td><td><input name="bankname" id="ltype" type="text"></td> </tr><br>
Dept. of CSE, GPREC ,KNL
56
LENDING TREE
<tr><td><b>Branch</b></td><td><input name="branch" id="ltypeone"type="text"></td> </tr><br><tr><td><b>Address</b></td><td><input name="address" id="ltypetwo"type="text"></td> </tr><br><tr><td colspan ="2"align="center"><input type="submit" value="store"><a href="newcb.jsp"><b>BACK<b></a></td></tr><br></table></form></body></html>
//---------------------------ADDNEW1.JSP------------------------------//
//---------------------------STORED.JSP------------------------------//
Dept. of CSE, GPREC ,KNL
57
LENDING TREE
<%@ page contentType="text/html"%><%@ page import="java.sql.*"%><%@page import="com.lendingtree.conn.ConnectionPool"%>
<% String vbid=request.getParameter("bankid").trim();String vbankname=request.getParameter("bankname").trim();String vbranch=request.getParameter("branch").trim();String vaddress=request.getParameter("address").trim();%><%try{//Class.forName("oracle.jdbc.driver.OracleDriver");//Connection con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","scott","tiger");Connection con=ConnectionPool.getConnection();String vsql="insert into banks values(?,?,?,?)";PreparedStatement pstmt=con.prepareStatement(vsql);pstmt.setInt(1,Integer.parseInt(vbid));pstmt.setString(2,vbankname);pstmt.setString(3,vbranch);pstmt.setString(4,vaddress);pstmt.executeUpdate();%>
<html><body bgcolor="pink"><br><br><center><font color="green"><h3><u><%=vbankname%></u> BANK INFORMATION STORED SUCCESSFULLY</h3><br></font><a href="newcb.jsp"><b>BACK</a></center></body></html><%}catch(Exception e){//out.println("<h>Sorry Aleady record exist with this ID...");%><html><body bgcolor="pink"><br><br><br><br><center><font color="blue" style="tahoma"><i><b>Sorry Aleady record exist with this ID<br><a href="newcb.jsp"><b>BACK</a></i></font></center></body></html><%}%>
//---------------------------STORED.JSP------------------------------////---------------------------EDIT.JSP------------------------------//
Dept. of CSE, GPREC ,KNL
58
LENDING TREE
<%@ page contentType="text/html"%><%@ page import="java.sql.*"%><%@page import="com.lendingtree.conn.ConnectionPool"%><%String v=request.getParameter("bid");
//Class.forName("oracle.jdbc.driver.OracleDriver");//Connection con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","scott","tiger");Connection con=ConnectionPool.getConnection();Statement stmt=con.createStatement();String vsql="select * from banks where bankid="+v;System.out.println("BANK"+vsql);ResultSet rs=stmt.executeQuery(vsql);
rs.next();%><html><HEAD><SCRIPT LANGUAGE='javaScript'>
var toDay=new Date();document.write(toDay);document.write(toDay.getDate());
function checkData(){var t2=document.getElementById("ltype").value;var t3=document.getElementById("ltypeone").value;var t4=document.getElementById("ltypetwo").value;submitOK="true"if( (!(isNaN(t2)==true))||(!(isNaN(t3)==true))||(!(isNaN(t4)==true)) ){alert("Please Enter a Valid Data(not numbers)");submitOK="false"}if( (t2=="")||(t3=="")||(t4=="")){alert("Don't leave Empty Fields");submitOK="false"}
if(submitOK=="false"){return false;}}</SCRIPT></HEAD>
Dept. of CSE, GPREC ,KNL
59
LENDING TREE
<body bgcolor="PINK"><form action="up1.jsp" onsubmit="return checkData()">
<table align="center" bgcolor="WHEAT" border="2"><tr><td>Bankid </td><td><%=rs.getInt(1)%></td><tr> <br><tr><td>BankName</td><td><input name="bankname" ID="ltype"type="text"value=<%=rs.getString(2)%>></td><tr> <br><tr><td>Branch</td><td><input name="branch"type="text" ID="ltypeone"value=<%=rs.getString(3)%>></td><tr> <br><tr><td>Address</td><td><input name="address"type="text" ID="ltypetwo"value=<%=rs.getString(4)%>></td><tr> <br><tr><td colspan="2" align="center" ><input type="submit" value="update"><a href="newcb.jsp"><B>BACK</a></td></tr></table><input name="bankid" type="hidden"value=<%=rs.getInt(1)%>>
</body></html>
//---------------------------EDIT.JSP------------------------------//
//---------------------------UP1.JSP------------------------------//
Dept. of CSE, GPREC ,KNL
60
LENDING TREE
<%@ page import="java.sql.*"%><%@page import="com.lendingtree.conn.ConnectionPool"%><% String vbid=request.getParameter("bankid");String vbankname=request.getParameter("bankname");String vbranch=request.getParameter("branch");String vaddress=request.getParameter("address");System.out.println("V bankid"+vbid);%><%//Class.forName("oracle.jdbc.driver.OracleDriver");//Connection con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","scott","tiger");Connection con=ConnectionPool.getConnection();Statement stmt=con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);String vsql="select bankid, bankname,branch,address from banks where bankid="+vbid;ResultSet rs=stmt.executeQuery(vsql);rs.next();//rs.updateInt("bankid",Integer.parseInt(vbid));rs.updateString("bankname",vbankname);rs.updateString("branch",vbranch);rs.updateString("address",vaddress);rs.updateRow();%><%//out.print("<td><a href=\"delete.jsp\">delete</a></td></tr>");%><html><body bgcolor="pink"><br><br><center><font color="BLUE"><h3><U><%=vbankname%></U> BANK INFORMATION UPDATED SUCCESSFULLY</h3><br></font><a href="newcb.jsp"><b>BACK</a></center></body></html>
//---------------------------UP1.JSP------------------------------//
//---------------------------DEL.JSP------------------------------//
Dept. of CSE, GPREC ,KNL
61
LENDING TREE
<%@ page import="java.sql.*"%><%@page import="com.lendingtree.conn.ConnectionPool"%><% try{String vs[]=request.getParameterValues("check");//Class.forName("oracle.jdbc.driver.OracleDriver");//Connection con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","scott","tiger");Connection con=ConnectionPool.getConnection();Statement stmt=con.createStatement();
for(int i=0;i<vs.length;i++) {String vsql="delete from banks where bankid="+vs[i];stmt.executeUpdate(vsql);//vsql=null;//out.print(vs[i]+" u r data deleted successfully"); }%><html><body bgcolor="pink"><br><br><center><font color="green"><h3> BANKS INFORMATION DELETED SUCCESSFULLY</h3><br></font><a href="newcb.jsp"><b>BACK</a></center></body></html><% }catch(java.lang.NullPointerException e){%><html><body bgcolor="PINK"><br><br><br><br><center><font color="BLUE" size="6"><H4><i>please Select data for deletetion</i></h4></font><a href="newcb.jsp"><font color="BLUE"size="6" >I want to select data</font></a></center></body></html><%}%>
//---------------------------DEL.JSP------------------------------//
//---------------------------DEPT.JSP------------------------------//
Dept. of CSE, GPREC ,KNL
62
LENDING TREE
<%@page import="com.lendingtree.conn.ConnectionPool"%><head><script type="text/javascript">function changeAction(txt){var t=txt
if(t=="del"){alert("You have clicked Delete Option")document.getElementById("myForm").submit()}else
{var x=document.getElementById("myForm")x.action="depaddnew.jsp"alert("ThanQ for choosing for Addnew record")x.submit()}
}</script></head>
<html><body align="right"> <h4 align="right"><a href="main.jsp"> LOG OUT</a></h4></body></html><%@ page import="java.sql.*"%><%@ page contentType="text/html"%><%//Class.forName("oracle.jdbc.driver.OracleDriver");//Connection con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","scott","tiger");Connection con=ConnectionPool.getConnection();Statement stmt=con.createStatement();String vsql="select * from dept";ResultSet rs=stmt.executeQuery(vsql);response.setContentType("text/html");try{out.print("<html><head><title>DEPARTMENTS</title>");%><script type="text/javascript">function changeAction(txt){var t=txt
if(t=="del"){alert("You have clicked Delete Option")document.getElementById("myForm").submit()}else
{var x=document.getElementById("myForm")
Dept. of CSE, GPREC ,KNL
63
LENDING TREE
x.action="depaddnew.jsp"alert("ThanQ for choosing for Addnew record")x.submit()}
}</script><%out.print("<body bgcolor=\"pink\">");%><form id="myForm" action="depdel.jsp"><%//out.print("<center><caption><font style=\"tahoma\" color=\"blue\"><b> //Departments Management</b></font></caption></center>");%><center><caption><font style="tahoma" color="blue"><b> Departments Management</b></font></caption></center><table align="center" bgcolor="wheat" border=2><tr><th></th><th>DEPID</th><th>DEPTNAME</th></tr><%while(rs.next()){%><tr><td><input type="checkbox" value="<%=rs.getInt("DEPID")%>" name="check"></td><td><a href="/soe/depedit.jsp?bepid=<%=rs.getInt("DEPID")%>"\"><%=rs.getInt("DEPID")%></a></td><%out.print("<td>"+rs.getString("DEPNAME")+"</td>");%><td></td></tr><%}out.print("<tr><td colspan=\"6\" align=\"center\"><input type=\"submit\" onclick=\"changeAction('addnew')\" name=\"addnew\" value=\"ADDNEW\">");out.print("<input type=\"submit\" onclick=\"changeAction('del')\" name=\"del\"value=\"DELETE\"></td></tr>");out.println("</table>");%><center><a href="adminnew.jsp">ADMIN</a></center><center><font color="blue"><b><ul><li>Click on The Bankid of Edit.<center></li></ul></b></font><%out.print("</form></body></html>");}catch(Exception e){out.println(e);}%>
//---------------------------DEPT.JSP------------------------------//
//---------------------------DEPADDNEW.JSP------------------------------//
Dept. of CSE, GPREC ,KNL
64
LENDING TREE
<html><body align="right"> <font colo="blue"><h4 align="right"><a href="main.jsp"> LOGOUT</a></h4></font></body></html>
<html><HEAD><SCRIPT LANGUAGE='javaScript'>function checkData(){var t2=document.getElementById("depid").value;var t3=document.getElementById("depname").value;submitOK="true"if( (isNaN(t2)==true)||(!(isNaN(t3)==true))){alert("Please Enter a Valid Data");document.getElementById("depid").value="";document.getElementById("depname").value="";submitOK="false"}if( (t2=="")||(t3=="")){alert("Don't leave Empty Fields");submitOK="false"}
if(submitOK=="false"){return false;}}</SCRIPT></head><body bgcolor="PINK"><form action="depstored.jsp" onsubmit="return checkData()"><table align="center" border="2"bgcolor="WHEAT"><caption><font color="BLACK"><h4>Departments Management</h4></font></caption><tr><td><b>DepId</b></td><td><input name="depid" id="depid" type="text"></td> </tr><br><tr><td><b>Depame</b></td><td><inputname="depname" id="depname"type="text"></td> </tr><br><tr><td colspan ="2"align="center"><input type="submit" value="store"><a href="dept.jsp"><b>BACK<b></a></td></tr><br></body></html>
//---------------------------DEPADDNEW.JSP------------------------------//
//---------------------------DEPDEL.JSP------------------------------//
Dept. of CSE, GPREC ,KNL
65
LENDING TREE
<html><body><h5 align="right"><a href="main.jsp">LOGOUT</a></h5></body></html>
<%@page import="com.lendingtree.conn.ConnectionPool"%><%@ page import="java.sql.*"%><% try{String vs[]=request.getParameterValues("check");//.Class.forName("oracle.jdbc.driver.OracleDriver");//Connection con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","scott","tiger");Connection con=ConnectionPool.getConnection();Statement stmt=con.createStatement();for(int i=0;i<vs.length;i++) {String vsql="delete from dept where depid="+vs[i];stmt.executeUpdate(vsql);//vsql=null;//out.print(vs[i]+" u r data deleted successfully"); }%><html><body bgcolor="pink"><CENTER><BR><BR><BR><font color="BLUE"><h3> DEPARTMENT INFORMATION DELETED SUCCESSFULLY </h3></font><BR><a href="dept.jsp"><B>BACK</a></CENTER></body></html><% }catch(java.lang.NullPointerException e){%><html><body bgcolor="pink"><br><br><br><br><center><font color="blue" size="6"><H3><i>please Select data for deletetion</i></h3></font><a href="dept.jsp"><font color="blue" size="6">I want to select data</font></a></center></body></html><%}%>
//---------------------------DEPDEL.JSP------------------------------//
Dept. of CSE, GPREC ,KNL
66
LENDING TREE
//---------------------------EMP.JSP------------------------------//
<html><body align="right"> <font color="blue"><h4 align="right"><a href="main.jsp"> LOGOUT</a></h4></font></body></html><%@page import="com.lendingtree.conn.ConnectionPool"%><%@ page import="java.sql.*"%><%//Class.forName("oracle.jdbc.driver.OracleDriver");//Connection con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","scott","tiger");Connection con=ConnectionPool.getConnection();Statement stmt=con.createStatement();String vsql="select * from emp";ResultSet rs=stmt.executeQuery(vsql);response.setContentType("text/html");try{out.print("<html><head><title>EmployeesInformations</title>");%><script type="text/javascript">function changeAction(txt){var t=txt
if(t=="del"){alert("You have clicked Delete Option")document.getElementById("myForm").submit()}else
{var x=document.getElementById("myForm")x.action="empaddnew1.jsp"alert("ThanQ for choosing for Addnew record")x.submit()}
}</script>
<%out.print("<body bgcolor=\"pink\">");%><form id="myForm" action="empdel.jsp"><%out.print("<center><caption><font style=\"tahoma\" color=\"blue\" SIZE=\"4\"><b>EmployeesInformations</b></font></caption><center>");out.print("<table align=\"center\"bgcolor=\"wheat\" border=\"2\">");
Dept. of CSE, GPREC ,KNL
67
LENDING TREE
out.println("<tr><th></th><th>EMPID</th><th>EMPNAME</th><th>DESIG</th><th>DEPT</th><th>ADDRESS</th><th>PHNO</th><th>EMAIL</th></tr>");while(rs.next()){%><tr><td><input type="checkbox" value="<%=rs.getInt("EMPID")%>" name="check"></td><td><a href="/soe/empedit.jsp?bepid=<%=rs.getInt("EMPID")%>"\"><%=rs.getInt("EMPID")%></a></td><%out.print("<td>"+rs.getString("EMPNAME")+"</td>");out.print("<td>"+rs.getString("DESIGN")+"</td>");out.print("<td>"+rs.getString("dept")+"</td>");out.print("<td>"+rs.getString("address")+"</td>");out.print("<td>"+rs.getLong("phone")+"</td>");out.print("<td>"+rs.getString("EMAIL")+"</td>");%>
</tr><%}Out.print("<tr><td colspan=\"8\" align=\"center\"><input type=\"submit\" onclick=\"changeAction('addnew')\" name=\"addnew\" value=\"ADDNEW\">");out.print("<input type=\"submit\" onclick=\"changeAction('del')\" name=\"del\"value=\"DELETE\"></td></tr>");out.println("</table>");%><center><a href="adminnew.jsp">ADMIN</a></center><font color="blue"><b><ul><li>Click on The Empid for Edit.</li></ul></b></font>
<%out.print("</form></body></html>");}catch(Exception e){out.println("Error is---"+e);}%>
//---------------------------EMP.JSP------------------------------//
//---------------------------EMPADDNEW.JSP------------------------------//
Dept. of CSE, GPREC ,KNL
68
LENDING TREE
<%@page import="com.lendingtree.conn.ConnectionPool"%>
<html><body align="right"> <font colo="blue"><h4 align="right"><a href="main.jsp"> LOGOUT</a></h4></font></body></html>
<%@ page import="java.sql.*"%><html><HEAD><SCRIPT LANGUAGE='javaScript'>
function checkData(){var t1=document.getElementById("t1").value;var t2=document.getElementById("t2").value;var t3=document.getElementById("t3").value;var t4=document.getElementById("t4").value;var t5=document.getElementById("t5").value;var t6=document.getElementById("t6").value;var t7=document.getElementById("t7").value;var email1=document.getElementById("t6").value.indexOf("@");var email2=document.getElementById("t6").value.indexOf(".");submitOK="true"if( (isNaN(t1)==true)||(!(isNaN(t2)==true))||(!(isNaN(t3)==true))||(!(isNaN(t4)==true))||(isNaN(t5)==true)||(!(isNaN(t6)==true))){alert("Please Enter a Valid Data");submitOK="false"}if( (t1=="")||(t2=="")||(t3=="")||(t4=="")||(t5=="")||(t6=="")){alert("Don't leave Empty Fields");submitOK="false"}if(t5.length<9){alert("Phoneno should be minimum of 9 numbers");submitOK="false"}if(t7.length<6){alert("Password should be minimum length of 6 caracter");submitOK="false"}if((email1==-1)||(email2==-1)){alert("Not a Valid Emailid");submitOK="false"}if(submitOK=="false")
Dept. of CSE, GPREC ,KNL
69
LENDING TREE
{return false;}}</SCRIPT></head><body bgcolor="PINK"><form action="empstored.jsp" onsubmit="return checkData()"><table align="center" BORDER="2" bgcolor="WHEAT"><caption><font color="blue"><h4>EmployessDetailsForm</h4></font></caption><tr><td><b>EmpId</b></td><td><input name="empid" id="t1"type="text"></td> </tr><br><tr><td><b>EmpName</b></td><td><input name="empname"type="text"id="t2"></td> </tr><br><tr><td><b>Password</b></td><td><input name="pass" id="t7"type="password"></td> </tr><br><tr><td><b>Desig</b></td><td><input name="design" type="text"id="t3"></td> </tr><br><tr><td><b>Dept</b></td><td><select name="dept"><%//Class.forName("oracle.jdbc.driver.OracleDriver");//Connection con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","scott","tiger");Connection con=ConnectionPool.getConnection();Statement stmt=con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);String vsql="select * from dept";ResultSet rs=stmt.executeQuery(vsql);while(rs.next()){%><option><%=rs.getString("depname")%></option><%}%></select></td> </tr><tr><td><b>Adress</b></td><td><input name="address" type="text"id="t4"></td> </tr><br><tr><td><b>phone</b></td><td><input name="phone"type="text"id="t5" size="13" maxlength="12"></td> </tr><br><tr><td><b>Email</b></td><td><input name="email"type="text"id="t6"></td> </tr><br><tr><td colspan ="2"align="center"><input type="submit" value="store"><a href="emp.jsp"><b>BACK<b></a></td></tr><br></body></html>
//---------------------------EMPADDNEW.JSP------------------------------//
//---------------------------EMPSTORED.JSP------------------------------//
Dept. of CSE, GPREC ,KNL
70
LENDING TREE
<%@page import="com.lendingtree.conn.ConnectionPool"%><%@ page import="java.sql.*"%>
<% try{String vempid=request.getParameter("empid");String vempame=request.getParameter("empname");String vpass=request.getParameter("pass");String vempdesig=request.getParameter("design");String vdept=request.getParameter("dept");String vempaddress=request.getParameter("address");String vphone=request.getParameter("phone");String vemail=request.getParameter("email");%>
<%//Class.forName("oracle.jdbc.driver.OracleDriver");//Connection con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","scott","tiger");Connection con=ConnectionPool.getConnection();String vsql="insert into emp values(?,?,?,?,?,?,?,?)";PreparedStatement pstmt=con.prepareStatement(vsql);pstmt.setInt(1,Integer.parseInt(vempid));pstmt.setString(2,vempame);pstmt.setString(3,vpass);pstmt.setString(4,vempdesig);pstmt.setString(5,vdept);pstmt.setString(6,vempaddress);pstmt.setLong(7, Long.parseLong(vphone));pstmt.setString(8,vemail);pstmt.executeUpdate();%>
<html><body bgcolor="pink"><BR><BR><BR><center><font color="blue" size="6"><h3><%=vempame%> EMPLOYEE DATA STORED SUCCESSFULLY</h3></font><a href="emp.jsp"><b>BACK</a></center></body></html>
<%}catch(Exception e){
Dept. of CSE, GPREC ,KNL
71
LENDING TREE
%><html><body bgcolor="PINK"><CENTER><BR><BR><BR><font color="blue" style="tahoma"><H3>Sorry Aleady record exist with this ID...</H3><i><a href="emp.jsp"><B>BACK</a></i></font><CENTER></body></html><%}%>
//---------------------------EMPSTORED.JSP------------------------------//
//---------------------------EMPDEL.JSP------------------------------//
Dept. of CSE, GPREC ,KNL
72
LENDING TREE
<%@page import="com.lendingtree.conn.ConnectionPool"%><html><body align="right"> <font colo="blue"><h4 align="right"><a href="main.jsp"> LOGOUT</a></h4></font></body></html><%@ page import="java.sql.*"%><% try{String vs[]=request.getParameterValues("check");//Class.forName("oracle.jdbc.driver.OracleDriver");//Connection con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","scott","tiger");Connection con=ConnectionPool.getConnection();Statement stmt=con.createStatement();for(int i=0;i<vs.length;i++) {String vsql="delete from emp where empid="+vs[i];stmt.executeUpdate(vsql);%><CENTER><B><FONT COLOR="BLUE">EMPLOYEE ID: <%out.print(vs[i]);%><BR><%}%><html><body bgcolor="pink"><br><br><br><br><center><font color="blue" size="6"><H3><i> RECORDS DELETED SUCCESSFULLY</i></h3></font><a href="emp.jsp"><B>BACK<B></a></center></body></html><% }catch(java.lang.NullPointerException e){%><html><body bgcolor="pink"><h5 align="right"><a href="main.jsp">LOGOUT</a></h5><br><br><br><br><center><font color="blue" size="6"><H3><i>please Select data for deletetion</i></h3></font><a href="emp.jsp"><font color="blue" size="6">I want to select data</font></a></center></body></html>
<%}%>
//---------------------------EMPDEL.JSP------------------------------////---------------------------ADMINLOAN.JSP------------------------------//
Dept. of CSE, GPREC ,KNL
73
LENDING TREE
<%@page import="com.lendingtree.conn.ConnectionPool"%><HTML><BODY ALIGN="RIGHT"><H3 ALIGN="RIGHT"><a href="main.jsp">LOGOUT</a></H3></BODY></HTML><%@ page import="java.sql.*"%><html><head></head><body bgcolor="PINK"><script type="text/javascript">/*function getOptions(){var x=document.getElementById("bank");var c=x.options[x.selectedIndex].text;var txt=document.getElementById("result").valuedocument.getElementById("result").value=c}*/ //var abc=1;</script><form action="adminbdisp.jsp"><h6 align="center"><br><table align='center'><tr><td><font size="4" color="blue" align="center" stlye="thahoma">SELECT BANK TYPE</font></td></tr><%//Class.forName("oracle.jdbc.driver.OracleDriver");//Connection con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","scott","tiger");Connection con=ConnectionPool.getConnection();Statement stmt=con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);String vsql="select * from banks";ResultSet rs=stmt.executeQuery(vsql);%><tr><td><select size ="0" name="bank" id="bank" align="center" onchange="getOptions()"><%while(rs.next()){%><option><%=rs.getString("bankname")%></option><%}%></select><input type="submit" value="Result"></td></tr><tr><td><BR><CENTER><a href="adminnew.jsp">ADMIN</a></CENTER></td></tr></table></h6></form >
Dept. of CSE, GPREC ,KNL
74
LENDING TREE
</body></html>
//---------------------------ADMINLOAN.JSP------------------------------//
//---------------------------ADMINBDISP.JSP------------------------------//
Dept. of CSE, GPREC ,KNL
75
LENDING TREE
<%@page import="com.lendingtree.conn.ConnectionPool"%><html><body align="right"> <font colo="blue"><h4 align="right"><a href="main.jsp"> LOGOUT</a></h4></font></body></html><%@ page import="java.sql.*"%><% String vs=request.getParameter("bank");//String vs1=request.getParameter("bank1");System.out.println("Bank vs "+vs);//System.out.println("Bank1 vs1 "+vs1);
try{//Class.forName("oracle.jdbc.driver.OracleDriver");//Connection con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","scott","tiger");
Connection con=ConnectionPool.getConnection();Statement stmt=con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);String vsql="select * from bank_loans where bankname='"+vs+"'";ResultSet rs=stmt.executeQuery(vsql);%>
<html><head><script type="text/javascript">function changeAction(txt){var t=txt
if(t=="del"){alert("You have clicked Delete Option")document.getElementById("myForm").submit()}else
{var x=document.getElementById("myForm")x.action="adminddloan.jsp"alert("ThanQ for choosing for Addnew record")x.submit()}
}</script></head><body bgcolor="pink"><br><br><br>
<form action="admindel.jsp" id="myForm"> <CENTER><FONT SIZE="4" COLOR="BLUE"><b>BANKSWISE LOAN INFORMATION</font></CENTER><br><br>
Dept. of CSE, GPREC ,KNL
76
LENDING TREE
<table align="center" bgcolor="wheat" border="2">
<tr><TH></TH><th>BANKNAME</th><th>LOANTYPE</th><th>INTERESTRAT</th></tr><%while(rs.next()){%><TR><td><input type="checkbox" value="<%=rs.getInt("LOANID")%>" name="check"></td><td><a href="/soe/adminloaedit.jsp?bepid=<%=rs.getInt("LOANID")%>&bepid1=<%=rs.getString("BANKNAME")%>"\"><%=rs.getString(1)%></a></td><td><%=rs.getString(2)%></td><td><%=rs.getDouble(3)%></td>
<%}%><%}catch(Exception e){out.println("error is "+e);}%></tr><%out.print("<tr><td colspan=\"8\" align=\"center\"><input type=\"submit\" onclick=\"changeAction('addnew')\" name=\"addnew\" value=\"ADDNEW\">");out.print("<input type=\"submit\" onclick=\"changeAction('del')\" name=\"del\"value=\"DELETE\"></TD></tr>");
out.println("</table>");%><CENTER><a href="adminnew.jsp">ADMIN</a><BR><a href="adminloan.jsp">BACK</a></center><tr></tr></table><input type="hidden" name="bank" value="<%=vs%>"></form></body></html>
//---------------------------ADMINBDISP.JSP------------------------------//
//---------------------------ADMINDDLOAN.JSP------------------------------//
Dept. of CSE, GPREC ,KNL
77
LENDING TREE
<%@ page import="java.sql.*"%><%String vone=request.getParameter("bank");String vtwo=request.getParameter("bank1");System.out.println("Bank vone "+vone);//System.out.println("Bank1 vone "+vtwo);%>
<html><head><script type="text/javascript">function checkData(){var x=document.getElementById("ltype").value;var y=document.getElementById("intrate").value;submitOK="true"if((isNaN(y)==true)||(y=="")){alert("Please Enter a Valid Interest Rate");document.getElementById("intrate").value=" "document.getElementById("ltype").value=" "submitOK="false"}if((!(isNaN(x)==true))||(x=="")){alert("Please Enter a Valid Loan Type");submitOK="false"document.getElementById("ltype").value=" "}
if(submitOK=="false"){return false;}}
</script></head><body bgcolor="pink"><form id="myForm" action="saveloandetails.jsp" onsubmit="return checkData()">
<table align="center" border="2" bgcolor="wheat"><tr><td><b>BankName</td><td><%=vone%></td></tr><tr><td><b>LoanType</td><td><input type="text" id="ltype" name="ltype"></td></tr><tr><td><b>InterestRate</td><td><input type="text"id="intrate"name="intrate"></td></tr><tr><td align="center"colspan="2"><input type="submit" value="Save"></td></tr></table><center><a href="adminbdisp.jsp?bank=<%=vone%>"><h>BACK<h></a></center><form>
Dept. of CSE, GPREC ,KNL
78
LENDING TREE
<input type="hidden" name="bank" value="<%=vone%>"><input type="hidden" name="bank1" value="<%=vtwo%>"></body></html>
//---------------------------ADMINDDLOAN.JSP------------------------------//
//---------------------------LOANS.JSP------------------------------//
Dept. of CSE, GPREC ,KNL
79
LENDING TREE
<%@ page import="java.sql.*"%><%@page import="com.lendingtree.conn.ConnectionPool"%><html><head></head><body bgcolor="PINK"><script type="text/javascript">/*function getOptions(){var x=document.getElementById("bank");var c=x.options[x.selectedIndex].text;var txt=document.getElementById("result").valuedocument.getElementById("result").value=c}*/ var abc=1;
</script><form action="bdisp.jsp"><h6 align="center"><BR><BR><BR><BR><table align="center" ><tr><td><font size="4" color="BLUE" align="center" stlye="thahoma">SELECT BANK TYPE</font></td></tr>
<%//Class.forName("oracle.jdbc.driver.OracleDriver");//Connection con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","scott","tiger");Connection con=ConnectionPool.getConnection();Statement stmt=con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
String vsql="select * from banks";ResultSet rs=stmt.executeQuery(vsql);%><tr><td><select size ="0"name="bank" id="bank" align="center" onchange="getOptions()">
<%while(rs.next()){%><option><%=rs.getString("bankname")%></option><%}%></select><input type="submit" id="result" value="GETINFO"></td></tr><tr><td><center><br><a href="main.jsp">BACK</a></td>
Dept. of CSE, GPREC ,KNL
80
LENDING TREE
</tr></table></h6></form ></body></html>
//---------------------------LOANS.JSP------------------------------//
//---------------------------BDISP.JSP------------------------------//
Dept. of CSE, GPREC ,KNL
81
LENDING TREE
<%@ page import="java.sql.*"%><%@page import="com.lendingtree.conn.ConnectionPool"%><% String vs=request.getParameter("bank");try{//Class.forName("oracle.jdbc.driver.OracleDriver");//Connection con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","scott","tiger");Connection con=ConnectionPool.getConnection();Statement stmt=con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);String vsql="select * from bank_loans where bankname='"+vs+"'";ResultSet rs=stmt.executeQuery(vsql);%><html><body bgcolor="pink"><BR><BR><table align="center" bgcolor="wheat" border="2"><tr><th>BANKNAME</th><th>LOANTYPE</th><th>INTERESTRAT</th></tr><%while(rs.next()){%><tr><td><%=rs.getString(1)%></td> <td><%=rs.getString(2)%></td><td><%=rs.getDouble(3)%></td> <%}%><%}catch(Exception e){out.println("error is "+e);}%></tr><tr><td colspan="3" align="center" ><a href="loans.jsp">BACK</a></tr></table></body></html><html><head><SCRIPT LANGUAGE='javaScript'>function checkData(){var t1=document.getElementById("t1").value;var t2=document.getElementById("t2").value;var t3=document.getElementById("t3").value;var email1=document.getElementById("t3").value.indexOf("@");var email2=document.getElementById("t3").value.indexOf(".");var t4=document.getElementById("t4").value;var t5=document.getElementById("t5").value;var t6=document.getElementById("t6").value;var t7=document.getElementById("t7").value;var t8=document.getElementById("t8").value;var t9=document.getElementById("t9").value;var t10=document.getElementById("t10").value;submitOK="true"if( (!(isNaN(t1)==true))||(!(isNaN(t2)==true))||(!(isNaN(t3)==true))||(!(isNaN(t4)==true))||(!(isNaN(t5)==true))||(!(isNaN(t6)==true))||(!(isNaN(t7)==true))||((isNaN(t8)==true))||((isNaN(t9)==true))||(!(isNaN(t10)==true)) ){alert("Please Enter a Valid Data");submitOK="false"}
Dept. of CSE, GPREC ,KNL
82
LENDING TREE
if( (t1=="")||(t2=="")||(t3=="")||(t4=="")||(t5=="")||(t6=="")||(t7=="")||(t8=="")||(t9=="")||(t10=="")){alert("Don't leave Empty Fields");submitOK="false"}if((email1==-1)||(email2==-1)){alert("Not a Valid Emailid");submitOK="false"}if(t8.length<9){alert("Contact no should be 9 or above");submitOK="false"
}if(submitOK=="false"){return false;}}</SCRIPT></head><body><form action="storedcustomers.jsp" onsubmit="return checkData()">
<table align="center" bgcolor="wheat" size="100" border="2"><caption><h4><font color="BLUE">CustmerRegisterForm</font></h4></caption><tr>
<td>CustumerName</td><td><input type="text" name="cname" id="t1"></td>
</tr><tr>
<td>Password</td><td><input type="password" name="pass" id="t11"></td>
</tr><tr>
<td>Address</td><td><textarea rows="3"cols="30" name="addr" id="t2"></textarea></td>
</tr><tr>
<td>Email</td><td><input type="text" name="email" id="t3"></td>
</tr><tr>
<td>Qualification</td><td><input type="text" name="Qualification" id="t4"></td>
</tr><tr>
Dept. of CSE, GPREC ,KNL
83
LENDING TREE
<td>Occupation</td><td><input type="text" name="Occupation" id="t5"></td>
</tr>
<tr><td>Company/Business</td><td><input type="text" name="Company" id="t6" ></td>
</tr>
<tr><td>Address</td><td><textarea rows="3"cols="30" name="addr1" id="t7"></textarea></td>
</tr><tr>
<td>Contactno</td><td><input type="text" name="Contactno" id="t8" size="13" maxlength="12"></td>
</tr><tr>
<td>Salary</td><td><input type="text" name="Salary" id="t9"></td>
</tr><tr>
<td>Designation</td><td><input type="text" name="Designation" id="t10"></td>
</tr><tr>
<td>Gender</td><td><input type="radio" name="sex" checked="true"value="male">Male<input type="radio" name="sex"value="female">Female</td>
</tr><tr>
<td><input type="hidden" name="state" value="new"></td></tr><tr><td align="center"colspan="2"><input type="submit" value="Save"></td>
<input type="hidden" name="bank" value="<%=vs%>"></tr></table></form></body></html>
//---------------------------BDISP.JSP------------------------------//
//---------------------------STOREDCUSTOMERS.JSP------------------------------//
Dept. of CSE, GPREC ,KNL
84
LENDING TREE
<%@page import="com.lendingtree.conn.ConnectionPool"%><html><body bgcolor="PINK"><H3 ALIGN="RIGHT"><a href="main.jsp">LOGOUT</a></H3>
</body></html><%@ page import="java.sql.*"%><% try{String vcname=request.getParameter("cname");String vpass=request.getParameter("pass");String vaddr=request.getParameter("addr");String vQualification=request.getParameter("Qualification");String vOccupation=request.getParameter("Occupation");String vCompany=request.getParameter("Company");String vaddr1=request.getParameter("addr1");String vContactno=request.getParameter("Contactno");String vSalary=request.getParameter("Salary");String vDesignation=request.getParameter("Designation");String vsex=request.getParameter("sex");String vstate=request.getParameter("state");String vemail=request.getParameter("email");String vbank=request.getParameter("bank");String vasignto="null";//String vsanctioneddate="";%><%//Class.forName("oracle.jdbc.driver.OracleDriver");//Connection con1=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","scott","tiger");Connection con,con1;con1=ConnectionPool.getConnection();Statement stmt=con1.createStatement();String vsql1="select sysdate from admin";ResultSet rs1=stmt.executeQuery(vsql1);rs1.next();
java.sql.Date d=rs1.getDate("SYSDATE");//java.sql.Date d1=new Date(null);java.sql.Date d1=null;%><%//Class.forName("oracle.jdbc.driver.OracleDriver");//Connection con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","scott","tiger");con=ConnectionPool.getConnection();String vsql="insert into customers values(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)";PreparedStatement pstmt=con.prepareStatement(vsql);pstmt.setString(1,vcname);pstmt.setString(2,vpass);pstmt.setString(3,vaddr);pstmt.setString(4,vQualification);
Dept. of CSE, GPREC ,KNL
85
LENDING TREE
pstmt.setString(5,vOccupation);pstmt.setString(6,vCompany);pstmt.setString(7,vaddr1);pstmt.setLong(8,Long.parseLong(vContactno));pstmt.setString(9,vSalary);pstmt.setString(10,vDesignation);pstmt.setString(11,vsex);pstmt.setString(12,vstate);pstmt.setString(13,vasignto);pstmt.setString(14,vemail);pstmt.setString(15,"NoB");pstmt.setString(16,vbank);pstmt.setDate(17,d);pstmt.setDate(18,d1);pstmt.executeUpdate();out.print("<center> <font color=\"blue\"><BR><BR><B>THANK Q FOR U R REGISTRATION<br></font></CENTER>");out.print("<center> <font color=\"blue\"><BR><BR><B><A HREF=\"loans.jsp\"><B>BACK</A><br></font></CENTER>");//out.print("<td><a href=\"display.jsp\">DISPLAY</a></td></tr>");}catch(Exception e){out.println("<center> <font color=\"blue\"><BR><BR><B>ALREADY REGISTED WITH THIS CONTACTNO TRY AGIN</font></CENTER>");String vbank=request.getParameter("bank");%><center><a href="bdisp.jsp?bank=<%=vbank%>"><b>BACK</a></center>
<%}%>
//---------------------------STOREDCUSTOMERS.JSP------------------------------//
//---------------------------NEWCHECK.JSP------------------------------//
<%@ page import="java.sql.*"%>
Dept. of CSE, GPREC ,KNL
86
LENDING TREE
<%@page import="com.lendingtree.conn.ConnectionPool"%><%try{
String vlname=request.getParameter("lname").trim();String vpwd=request.getParameter("pwd").trim();String user=request.getParameter("user").trim();//Class.forName("oracle.jdbc.driver.OracleDriver");//Connection con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","scott","tiger");Connection con=ConnectionPool.getConnection();Statement stmt=con.createStatement();String userAdmin="Admin";if(user.equals(userAdmin)){String vsqlad="select * from "+user+"";System.out.println(vsqlad);ResultSet rs=stmt.executeQuery(vsqlad);rs.next();String alname=rs.getString("lname");String apwd=rs.getString("pwd");System.out.println("vlname--"+vlname);System.out.println("vpwd--"+vpwd);if(vlname.equals(alname)&&vpwd.equals(apwd)){
//System.out.println("---i am in if ---"); RequestDispatcher rd=application.getRequestDispatcher("/adminnew.jsp");rd.forward(request,response);
} else{%><html><br><br><br><center><h3><i><font color="black">Invalid user name/passward</font></i></h3><body bgcolor="pink" align="right"><a href="/soe/main.jsp">home</a></body></html><%}}//------------------Admin
if(user.equals("Cust")){String vsqlad="select * from CUSTOMERS where PASSWORD='"+vpwd+"'";System.out.println(vsqlad);
Dept. of CSE, GPREC ,KNL
87
LENDING TREE
ResultSet rs=stmt.executeQuery(vsqlad);rs.next();String alname=rs.getString("CUSTNAME");String apwd=rs.getString("PASSWORD");out.println("apwd--"+apwd);System.out.println("database--"+alname);System.out.println("-database-"+apwd);if(vlname.equals(alname)&&vpwd.equals(apwd)){%>//cpwd=<%=vpwd%>
<%RequestDispatcher rd1=application.getRequestDispatcher("/cmgmt.jsp?cpwd="+vpwd+"&vapwd="+apwd+"&avlname="+vlname);rd1.forward(request,response);
}else {%><html><br><br><br><center><h3><i><font color="black">Invalid user name password</font></i></h3><body bgcolor="pink" align="right"><a href="/soe/main.jsp">home</a></body></html><%
}
}
//out.println("----------------------------------------------------------");//from starting of pickup and verification
if(user.equals("PickUp")){
String vsql1="select empname,password,dept from emp where empname='"+vlname+"' and PASSWORD='"+vpwd+"'";ResultSet rs=stmt.executeQuery(vsql1);rs.next();String vempname=rs.getString("EMPNAME");String vpass=rs.getString("PASSWORD");String vdept=rs.getString("dept");
if(vlname.equals(vempname)&&vpwd.equals(vpass)&&user.equals(vdept)){String vsql2="select * from customers where state='Pickup' and assignto='"+vlname+"'";ResultSet r=null; r=stmt.executeQuery(vsql2);System.out.println(vsql2);%><html><body bgcolor="pink">
Dept. of CSE, GPREC ,KNL
88
LENDING TREE
<font colo="blue"><h4 align="right"><a href="main.jsp"> LOGOUT</a></h4></font><center><b><h4><font colo="blue">NEW CUSTOMERS INFORMATION</h4></b></center><table align="center" bgcolor="wheat" border="2"><tr><th><b>CustmerName</b></th><th><b>PhoneNo</b></th><th><b>Address</b></th><th><b>EmaiId</b></th><th><b>Occupation</b></th><th><b>Status</b></th></tr><tr><%while(r.next()){%><td><a href="/soe/picked-cust.jsp?cust1=<%=r.getLong("CONTACTNO")%>&empno=<%=vpwd%>&empname=<%=vlname%>"\"><%=r.getString("CUSTNAME")%></a></td><td><%=r.getLong("contactno")%></td><td><%=r.getString("custaddress")%></td><td><%=r.getString("emailid")%></td><td><%=r.getString("occupation")%></td><td><%=r.getString("STATE")%></td></tr><%}%></table></body></html><%}//password ifelse{%><html><br><br><br><center><h3><i><font color="black">Invalid user name passward</font></i></h3><body bgcolor="pink" align="right"><a href="/soe/main.jsp">home</a></body></html><%}//else}//pickup checkingif(user.equals("Verification")){String vsql1="select empname,password,dept from emp where empname='"+vlname+"' and PASSWORD='"+vpwd+"'";System.out.println(vsql1);ResultSet rs=stmt.executeQuery(vsql1);rs.next();String vempname=rs.getString("EMPNAME");String vpass=rs.getString("PASSWORD");String vdept=rs.getString("dept");if(vlname.equals(vempname)&&vpwd.equals(vpass)&&user.equals(vdept)){String vsql3="select * from customers where state='"+user+"'";ResultSet rs1=null;rs1=stmt.executeQuery(vsql3);System.out.println("--"+vsql3);%><html><body bgcolor="pink"><font color="blue"><h4 align="right"><a href="main.jsp"> LOGOUT</a></h4></font>
Dept. of CSE, GPREC ,KNL
89
LENDING TREE
<center><b><h4>NEW CUSTOMERS INFORMATION</h4></b></center><table align="center" bgcolor="wheat" border="2"><tr><th><b>CustmerName</b></th><th><b>ContactNo</b></th><th><b>CustAddress</b></th><th><b>Emailid</b></th><th><b>Occupation</b></th><th><b>State</b></th></tr><tr><%while(rs1.next()){%><td><a href="/soe/verification.jsp?cust1=<%=rs1.getLong("CONTACTNO")%>&empno=<%=vpwd%>&empname=<%=vlname%>"\"><%=rs1.getString("CUSTNAME")%></a></td><td><%=rs1.getLong("contactno")%></td><td><%=rs1.getString("custaddress")%></td><td><%=rs1.getString("emailid")%></td><td><%=rs1.getString("occupation")%></td><td><%=rs1.getString("STATE")%></td></tr><%}%></table></body></html><%}//password checking ifelse{%><html><br><br><br><center><h3><i><font color="black">Invalid user name/passward</font></i></h3><body bgcolor="pink" align="right"><a href="/soe/main.jsp">home</a></body></html><%}//else}//verification ifif(user.equals("Legal")){String vsql1="select empname,password,dept from emp where empname='"+vlname+"' and PASSWORD='"+vpwd+"'";ResultSet rs=stmt.executeQuery(vsql1);rs.next();String vempname=rs.getString("EMPNAME");String vpass=rs.getString("PASSWORD");String vdept=rs.getString("dept");if(vlname.equals(vempname)&&vpwd.equals(vpass)&&user.equals(vdept)){%>
RequestDispatcherrd1=application.getRequestDispatcher("/legal.jsp?&empno="+vpwd+"&empname="+vlname);rd1.forward(request,response);//RequestDispatcher rd=application.getRequestDispatcher("/message.jsp?cpwd="+vone);%><%}else{out.println("invalid user name and passward");}}}catch(Exception e){
Dept. of CSE, GPREC ,KNL
90
LENDING TREE
System.out.println("..."+e);%><html><br><br><br><center><h3><i><font color="black">Invalid user name/password</font></i></h3><center><body bgcolor="pink" align="right"><a href="/soe/main.jsp">home</a></body></html><%}%>
//---------------------------NEWCHECK.JSP------------------------------//
//---------------------------CUSTDISP.JSP------------------------------//
<%@ page import="java.sql.*"%><%@page import="com.lendingtree.conn.ConnectionPool"%><html><body align="right"> <font colo="blue"><h4 align="right"><a href="main.jsp"> LOGOUT</a></h4></font></body></html><%//Class.forName("oracle.jdbc.driver.OracleDriver");
Dept. of CSE, GPREC ,KNL
91
LENDING TREE
//Connection con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","scott","tiger");Connection con=ConnectionPool.getConnection();Statement stmt=con.createStatement();String vsql="select * from customers where state='new'";ResultSet rs=stmt.executeQuery(vsql);out.print("<html><head><title>CustomersForm</title><head>");out.print("<body bgcolor=\"pink\">");out.print("<center><caption><font style=\"tahoma\" color=\"blue\" size=\"5\"><b>CustomersForm</b></font></caption><center><br>");out.print("<table align=\"center\"bgcolor=\"wheat\" border=\"2\">");out.print("<tr><th>CustumerName</th><th>Address</th><th>EmailId</th><th>Qualification</th><th>Occupation</th><th>Company/Business</th><th>Address</th><th>Contactno</th><th>Salary</th><th>Designation</th><th>Gender</th></tr>"); while(rs.next()){%><td><a href="/soe/cut-state.jsp?cust=<%=rs.getLong("CONTACTNO")%>"\"><%=rs.getString("CUSTNAME")%></a></td><%//out.print("<tr><td>CustumerName</td><td>"+rs.getString("CUSTNAME")+"< /td>");out.print("<td>"+rs.getString("CUSTADDRESS")+"</td>");out.print("<td>"+rs.getString("emailid")+"</td>");out.print("<td>"+rs.getString("QUALIFICATION")+"</td>");out.print("<td>"+rs.getString("OCCUPATION")+"</td>");out.print("<td>"+rs.getString("COMPANYBS")+"</td>");out.print("<td>"+rs.getString("COMADDRESS")+"</td>");out.print("<td>"+rs.getString("CONTACTNO")+"</td>");out.print("<td>"+rs.getInt("SALARY")+"</td>");out.print("<td>"+rs.getString("DESIGNATION")+"</td>");out.print("<td>"+rs.getString("GENDER")+"</td></tr>");//out.print("<td>"+rs.getString("STATE")+"</td></tr>");}out.println("</table>");out.println("</dody>");out.println("</html>");%><html><body><center><a href="adminnew.jsp">ADMIN</a></center>
//---------------------------CUSTDISP.JSP------------------------------//
//---------------------------CUTSTATEJSP------------------------------//
<%@ page import="java.sql.*"%><%@ page import="java.io.*"%><%@page import="com.lendingtree.conn.ConnectionPool"%>
Dept. of CSE, GPREC ,KNL
92
LENDING TREE
<%@ page import="java.util.*"%><html><head><script type="text/javascript">function myfun(){
<%Connection con,con1;Statement stmt,stmt1;//Class.forName("oracle.jdbc.driver.OracleDriver");//Connection newcon=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","scott","tiger");con=ConnectionPool.getConnection();stmt=con.createStatement();%>
var d=document.getElementById("state")var n=document.getElementById("assign")
if((d.selectedIndex)==1){
document.getElementById("sub").disabled=false<%String pic="select empname from emp where dept='PickUp'";ResultSet picrs=stmt.executeQuery(pic);Vector newv=new Vector();while(picrs.next()){newv.add(picrs.getString("empname"));}int newvone=newv.size();%>
var s=<%=newvone%>document.getElementById("assign").length=s
<%for(int i=0;i<newv.size();i++){%>n.options[<%=i%>].text="<%=newv.get(i)%>"<%}%>
}if((d.selectedIndex)==2){ document.getElementById("sub").disabled=false
<%String veri="select empname from emp where dept='Verification'";ResultSet rs1=stmt.executeQuery(veri);Vector v1=new Vector();while(rs1.next()){v1.add(rs1.getString("empname"));}
Dept. of CSE, GPREC ,KNL
93
LENDING TREE
int vs=v1.size();%>var s1=<%=vs%>document.getElementById("assign").length=s1
<%for(int i=0;i<v1.size();i++){%>n.options[<%=i%>].text="<%=v1.get(i)%>"<%}%>
}if((d.selectedIndex)==0){document.getElementById("sub").disabled=truedocument.getElementById("assign").length=1n.options[0].text="--"}}</script></head><%String v=request.getParameter("cust");%><body bgcolor="pink"><form action="asign-cust.jsp"><input type="hidden" name="contno" value="<%=v%>"><center><h4><font color="black">New Customers Information</font></h4></center><table align="center" bgcolor="wheat" border="2"><%//Class.forName("oracle.jdbc.driver.OracleDriver");//Connection con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","scott","tiger");con1=ConnectionPool.getConnection();stmt1=con1.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_UPDATABLE);String vsql="select * from customers where Contactno="+v;ResultSet rs=stmt1.executeQuery(vsql);
if(rs.next()){out.print("<tr><td><b>CustumerName</b></td><td>"+rs.getString("CUSTNAME")+"</td></tr>");out.print("<tr><td><b>Address</b></td><td>"+rs.getString("CUSTADDRESS")+"</td></tr>");out.print("<tr><td><b>EmailId</b></td><td>"+rs.getString("emailid")+"</td></tr>");out.print("<tr><td><b>Qualification</b></td><td>"+rs.getString("QUALIFICATION")+"</td></tr>");out.print("<tr><td><b>Occupation</b></td><td>"+rs.getString("OCCUPATION")+"</td></tr>");out.print("<tr><td><b>Company/Business</b></td><td>"+rs.getString("COMPANYBS")+"</td></tr>");out.print("<tr><td><b>Address</b></td><td>"+rs.getString("COMADDRESS")+"</td></tr>");
Dept. of CSE, GPREC ,KNL
94
LENDING TREE
out.print("<tr><td><b>Contactno</b></td><td>"+rs.getLong("CONTACTNO")+"</td></tr>");out.print("<tr><td><b>Salary</b></td><td>"+rs.getLong("SALARY")+"</td></tr>");out.print("<tr><td><b>Designation</b></td><td>"+rs.getString("DESIGNATION")+"</td></tr>");out.print("<tr><td><b>Gender</b></td><td>"+rs.getString("GENDER")+"</td></tr>");//out.print("<tr><td><b>State</b></td><td>"+rs.getString("STATE")+"</td></tr>");
}%><tr><td><b>State</b></td><td><select id="state" name="state" onchange="myfun()"><option>---<option>Pickup<option>Verification</select></td></tr><tr><td><b>AssignTo</b></td><td><select id="assign" name="assign"><option>--</select></td></tr><tr><td colspan="2"align="center"><input type="submit" id="sub" disabled="true" value="Submit"><b><a href="cust-disp.jsp">BACK</a></b></td></tr></table></body></html>
//---------------------------CUTSTATE.JSP------------------------------//
//---------------------------ASIGNCUST.JSP------------------------------//
<%@ page import="java.sql.*"%><%@page import="com.lendingtree.conn.ConnectionPool"%><html><body align="right"> <fontcolor="blue"><h4 align="right"><a href="main.jsp"> LOGOUT</a></h4></font></body></html>
Dept. of CSE, GPREC ,KNL
95
LENDING TREE
<%try{String vcontno=request.getParameter("contno");String vstate=request.getParameter("state");String vasign=request.getParameter("assign");long l=Long.parseLong(vcontno);//Class.forName("oracle.jdbc.driver.OracleDriver");//Connection con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","scott","tiger");Connection con=ConnectionPool.getConnection();Statement stmt=con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_UPDATABLE);String vsql="select assignto, state from customers where contactno="+l;ResultSet rs=stmt.executeQuery(vsql);rs.next();rs.updateString("STATE",vstate);rs.updateString("ASSIGNTO",vasign);rs.updateRow();%><html><body bgcolor="pink"><br><br><br><br><center><font color="blue"><h3><%out.println("Task is assigned to "+vasign);}catch(Exception e){out.println(e);}%></h3><a href="cust-disp.jsp"><h5>NewCustomersInformation</h5></a><h5><a href="adminnew.jsp">ADMIN</a></h5></font></body></html>
//---------------------------ASIGNCUST.JSP------------------------------//
//---------------------------PICKEDCUST.JSP------------------------------//
<%@page import="com.lendingtree.conn.ConnectionPool"%><html><body align="right">
Dept. of CSE, GPREC ,KNL
96
LENDING TREE
<font colo="blue"><h4 align="right"><a href="main.jsp"> LOGOUT</a></h4></font></body></html><%@ page import="java.sql.*"%><%String v=request.getParameter("cust1");String ename=request.getParameter("empname");String empno=request.getParameter("empno");%><%//Class.forName("oracle.jdbc.driver.OracleDriver");//Connection con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","scott","tiger");Connection con=ConnectionPool.getConnection();Statement stmt=con.createStatement();String vsql="select custname,emailid from customers where contactno="+v;ResultSet rs=stmt.executeQuery(vsql);%><html><head><title>CustomersForm</title><script type="text/javascript">function createOrder(){ags=document.forms[0].agsif(ags[0].checked&&ags[1].checked&&ags[2].checked&&ags[3].checked&&ags[4].checked&&ags[5].checked&&ags[6].checked&&ags[7].checked)
{document.getElementById("dis").disabled=false}else{document.getElementById("dis").disabled=true}
}function text(){ags=document.forms[0].agsif(ags[0].checked&&ags[1].checked&&ags[2].checked&&ags[3].checked&&ags[4].checked&&ags[5].checked&&ags[6].checked&&ags[7].checked)
{
document.getElementById("dis").disabled=false}else{document.getElementById("dis").disabled=true}
}
</script><body bgcolor="pink"> <form id="one" action="customers-loans.jsp"><center><b><H3>Welcome TO <%if(rs.next())
Dept. of CSE, GPREC ,KNL
97
LENDING TREE
{%><%=rs.getString("custname")%> (<%=rs.getString("emailid")%>)
<input type="hidden" name="cust" value="<%=rs.getString("custname")%>"><input type="hidden" name="mail" value="<%=rs.getString("emailid")%>">
<%}%><H3><B>Information</B></H3>
<br><br><TABLE size="" align="center" bgcolor="pink" border="1"><tr>
<td><input type="checkbox" onclick="if(this.checked){createOrder()}" name="ags" value="yes"></td>
<td><b>Agreement Of sale</td></tr><tr>
<td><input type="checkbox" onclick="if(this.checked){createOrder()}" name="ags" value="yes"></td>
<td><b>WorkOrder</td></tr><tr>
<td><input type="checkbox" onclick="if(this.checked){createOrder()}" name="ags" value="yes"></td>
<td><b>3 Months Payslips</td></tr><tr>
<td><input type="checkbox" onclick="if(this.checked){createOrder()}" name="ags" value="yes"></td>
<td><b>Offer Letter</td></tr><tr>
<td><input type="checkbox" onclick="if(this.checked){createOrder()}" name="ags" value="yes"></td>
<td><b>AddressProof</td></tr><tr>
<td><input type="checkbox" onclick="if(this.checked){createOrder()}" name="ags" value="yes"></td>
<td><b>PhotoIdentity</td></tr><tr>
<td><input type="checkbox" onclick="if(this.checked){createOrder()}" name="ags" value="yes"></td>
<td><b>I.T.Returns</td></tr>
<tr><td><input type="checkbox" onclick="if(this.checked){createOrder()}" name="ags"
value="yes" ></td>
Dept. of CSE, GPREC ,KNL
98
LENDING TREE
<td><b>PAN Card</td></tr>
<tr><td colspan="2" align="center"><input type="submit" onclick="text()" id="dis"
disabled="true" value="submit">
<ahref="newcheck.jsp?lname=<%=ename%>&pwd=<%=empno%>&user=PickUp&Login=Login">BACK</a></td>
</tr></table><center>
<input type="hidden" name="ename" value="<%=ename%>"><input type="hidden" name="empno" value="<%=empno%>">
</form></body></html>
//---------------------------PICKEDCUST.JSP------------------------------//
//---------------------------VERIFICATION.JSP------------------------------//
<%@page import="com.lendingtree.conn.ConnectionPool"%>
<html><body align="right"> <font colo="blue"><h4 align="right"><a href="main.jsp"> LOGOUT</a></h4></font></body></html>
Dept. of CSE, GPREC ,KNL
99
LENDING TREE
<%@ page import="java.sql.*"%><%String v=request.getParameter("cust1");String ename=request.getParameter("empname");String empno=request.getParameter("empno");%><%//Class.forName("oracle.jdbc.driver.OracleDriver");//Connection con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","scott","tiger");Connection con=ConnectionPool.getConnection();Statement stmt=con.createStatement();String vsql="select custname,emailid,contactno from customers where contactno="+v;ResultSet rs=stmt.executeQuery(vsql);%><html><head><title>Customers Verification Form</title><script type="text/javascript">
function createOrder(){ags=document.forms[0].agsif(ags[0].checked&&ags[1].checked&&ags[2].checked)
{document.getElementById("dis").disabled=false}else{document.getElementById("dis").disabled=true}
}function text(){ags=document.forms[0].agsif(ags[0].checked&&ags[1].checked&&ags[2].checked)
{
document.getElementById("dis").disabled=false}else{document.getElementById("dis").disabled=true}
}
</script>
<body bgcolor="pink"><form id="one" action="customers-verifi.jsp"><center><b><H3>Welcome TO <%if(rs.next()){%>
Dept. of CSE, GPREC ,KNL
100
LENDING TREE
<%=rs.getString("custname")%> (<%=rs.getString("emailid")%>)
<input type="hidden" name="cust" value="<%=rs.getString("custname")%>"><input type="hidden" name="mail" value="<%=rs.getString("emailid")%>"><input type="hidden" name="phone" value="<%=rs.getLong("contactno")%>">
<%}%><H3><B>VerificationForm</B></H3><br><br><TABLE align="center" border="1"><tr>
<td><input type="checkbox" onclick="if(this.checked){createOrder()}" name="ags" value="yes"></td>
<td><b>AddressProof</td></tr><tr>
<td><input type="checkbox" onclick="if(this.checked){createOrder()}" name="ags" value="yes"></td>
<td><b>Company Details</td></tr><tr><td><input type="checkbox" onclick="if(this.checked){createOrder()}" name="ags" value="yes" ></td>
<td><b>PersonelEnquiry</td></tr><tr>
<td colspan="2" align="center"><input type="submit" onclick="text()" id="dis" disabled="true" value="submit">
<a href="newcheck.jsp?lname=<%=ename%>&pwd=<%=empno%>&user=Verification&Login=Login">BACK</a></td></tr></table><input type="hidden" name="ename" value="<%=ename%>"><input type="hidden" name="empno" value="<%=empno%>"></form></body></html>
//---------------------------VERIFICATION.JSP------------------------------//
//---------------------------CUSTOMERSVERIFICATION.JSP------------------------------//
<%@ page import="java.sql.*"%><%@page import="com.lendingtree.conn.ConnectionPool"%><%try{String vone=request.getParameter("cust");
Dept. of CSE, GPREC ,KNL
101
LENDING TREE
String vtwo=request.getParameter("mail");String vthr=request.getParameter("phone");String ename1=request.getParameter("ename");String empno1=request.getParameter("empno");%><%//Class.forName("oracle.jdbc.driver.OracleDriver");//Connection con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","scott","tiger");Connection con=ConnectionPool.getConnection();Statement stmt=con.createStatement();String vsql="insert into customers_verification values(?,?,?,?,?,?)";String yes="yes";String var="VerificationOver";
PreparedStatement pstmt=con.prepareStatement(vsql);pstmt.setString(1,vone);pstmt.setString(2,vtwo);pstmt.setLong(3,Long.parseLong(vthr));pstmt.setString(4,yes);pstmt.setString(5,yes);pstmt.setString(6, yes);pstmt.executeUpdate();
String vsql1="update customers set state='Verificationover' where custname='"+vone+"' and contactno="+vthr+" and emailid='"+vtwo+"'";stmt.executeUpdate(vsql1);%><html><body bgcolor="pink"><br><br><br><br><center><h2><i><%=vone%> data has been Verifiedover Successfully</i></h2></center><center><b><a href="newcheck.jsp?lname=<%=ename1%>&pwd=<%=empno1%>&user=Verification&Login=Login">BACK</a></b></center></body></html><%<html><body align="right"> <font colo="blue"><h4 align="right"><a href="main.jsp"> LOGOUT</a></h4></font></body></html>
<%String ename1=request.getParameter("ename");//out.println(ename1);String empno1=request.getParameter("empno");//out.println(empno1);%><html><HEAD><SCRIPT LANGUAGE='javaScript'>
function checkData(){
Dept. of CSE, GPREC ,KNL
102
LENDING TREE
var t1=document.getElementById("t1").value;var t2=document.getElementById("t2").value;var t3=document.getElementById("t3").value;var t4=document.getElementById("t4").value;var t5=document.getElementById("t5").value;var t6=document.getElementById("t6").value;var t7=document.getElementById("t6").value;var email1=document.getElementById("t6").value.indexOf("@");var email2=document.getElementById("t6").value.indexOf(".");
var website=document.getElementById("t6").value.indexOf(".");submitOK="true"if((!(isNaN(t1)==true))||(!(isNaN(t2)==true))||(isNaN(t3)==true)||(!(isNaN(t4)==true))||(isNaN(t5)==true)||(!(isNaN(t6)==true))||(!(isNaN(t7)==true))){alert("Please Enter a Valid Data");submitOK="false"}if((t1=="")||(t2=="")||(t3=="")||(t4=="")||(t5=="")||(t6=="")||(t7=="")){alert("Don't leave Empty Fields");submitOK="false"}if(t5.length<9){alert("Phoneno should be minimum of 9 numbers");submitOK="false"}if((email1==-1)||(email2==-1)){alert("Not a Valid Emailid");submitOK="false"}if((website==-1))alert("Not a Valid Website");if(submitOK=="false"){return false;}}</SCRIPT></head><body bgcolor="pink"><form action="buildstore.jsp" onsubmit="return checkData()"><center><h3>New Builders Information Form</h3></center><table align="center" border="2" bgcolor="wheat"><tr>
<td>BuilderName:</td><td><input type="text" size="30" id="t1" name="bname"></td>
</tr>
Dept. of CSE, GPREC ,KNL
103
LENDING TREE
<tr><td>Office Address:</td><td><input type="text" size="30" id="t2" name="oaddr"></td>
</tr><tr>
<td>RegNo:</td><td><input type="text" size="30" id="t3" name="regno"></td>
</tr><tr>
<td>PAN No:</td><td><input type="text"size="30" id="t4" name="pan"></td>
</tr><tr>
<td>Phone:</td><td><input type="text"size="15" maxlength="12" id="t5" name="phone"></td>
</tr><tr>
<td>Email:</td><td><input type="text" size="30" id="t6" name="email"></td>
</tr><tr>
<td>WebSite:</td><td><input type="text"size="30" id="t7" name="webs"></td>
</tr><tr>
<td colspan="2" align="center"><b>Submitted Certificates</b><td></tr><tr>
<td><input type="checkbox" name="lp" value="YES">LayoutPlan</td><td><input type="checkbox" name="huda" value="YES">Panchayati/HUDA
permission</td></tr><tr>
<td><input type="checkbox" name="noc" value="YES">No Objection Certificate</td>
<td><input type="checkbox" name="bp" value="YES">BuildingPlan</td></tr><tr>
<td colspan="2"><input type="checkbox" name="ec" value="YES">Enumberance Certificate</td></tr>
<tr><td colspan="2" align="center"><input type="submit" value="SAVE"><b><a href="newcheck.jsp?lname=<%=ename1%>&pwd=<
%=empno1%>&user=Legal&Login=Login">BACK</a></b></td></tr></table>
Dept. of CSE, GPREC ,KNL
104
LENDING TREE
<input type="hidden" name="ename" value="<%=ename1%>"><input type="hidden" name="empno" value="<%=empno1%>">
</form></body></html>}catch(Exception e1){out.println("**"+e1);}%>
//---------------------------CUSTOMERSVERIFICATION.JSP------------------------------//
//---------------------------BUILDERADD.JSP------------------------------//
<html><body align="right"> <fontcolor="blue"><h4align="right"><ahref="main.jsp"> LOGOUT</a></h4></font></body></html><%String ename1=request.getParameter("ename");//out.println(ename1);
Dept. of CSE, GPREC ,KNL
105
LENDING TREE
String empno1=request.getParameter("empno");//out.println(empno1);%><html><HEAD><SCRIPT LANGUAGE='javaScript'>function checkData(){
var t1=document.getElementById("t1").value;var t2=document.getElementById("t2").value;var t3=document.getElementById("t3").value;var t4=document.getElementById("t4").value;var t5=document.getElementById("t5").value;var t6=document.getElementById("t6").value;var t7=document.getElementById("t6").value;var email1=document.getElementById("t6").value.indexOf("@");var email2=document.getElementById("t6").value.indexOf(".");var website=document.getElementById("t6").value.indexOf(".");submitOK="true"if((!(isNaN(t1)==true))||(!(isNaN(t2)==true))||(isNaN(t3)==true)||(!(isNaN(t4)==true))||(isNaN(t5)==true)||(!(isNaN(t6)==true))||(!(isNaN(t7)==true))){alert("Please Enter a Valid Data");submitOK="false"}if((t1=="")||(t2=="")||(t3=="")||(t4=="")||(t5=="")||(t6=="")||(t7=="")){alert("Don't leave Empty Fields");submitOK="false"}if(t5.length<9){alert("Phoneno should be minimum of 9 numbers");submitOK="false"}if((email1==-1)||(email2==-1)){alert("Not a Valid Emailid");submitOK="false"}if((website==-1))alert("Not a Valid Website");if(submitOK=="false"){return false;}}</SCRIPT></head>
Dept. of CSE, GPREC ,KNL
106
LENDING TREE
<body bgcolor="pink"><form action="buildstore.jsp" onsubmit="return checkData()"><center><h3>New Builders Information Form</h3></center><table align="center" border="2" bgcolor="wheat"><tr>
<td>BuilderName:</td><td><input type="text" size="30" id="t1" name="bname"></td>
</tr><tr>
<td>Office Address:</td><td><input type="text" size="30" id="t2" name="oaddr"></td>
</tr><tr>
<td>RegNo:</td><td><input type="text" size="30" id="t3" name="regno"></td>
</tr><tr>
<td>PAN No:</td><td><input type="text"size="30" id="t4" name="pan"></td>
</tr><tr>
<td>Phone:</td><td><input type="text"size="15" maxlength="12" id="t5" name="phone"></td>
</tr><tr>
<td>Email:</td><td><input type="text" size="30" id="t6" name="email"></td>
</tr><tr>
<td>WebSite:</td><td><input type="text"size="30" id="t7" name="webs"></td>
</tr><tr>
<td colspan="2" align="center"><b>Submitted Certificates</b><td></tr><tr>
<td><input type="checkbox" name="lp" value="YES">LayoutPlan</td><td><input type="checkbox" name="huda" value="YES">Panchayati/HUDA
permission</td></tr><tr>
<td><input type="checkbox" name="noc" value="YES">No Objection Certificate</td>
<td><input type="checkbox" name="bp" value="YES">BuildingPlan</td></tr><tr>
<td colspan="2"><input type="checkbox" name="ec" value="YES">Enumberance Certificate</td></tr>
Dept. of CSE, GPREC ,KNL
107
LENDING TREE
<tr><td colspan="2" align="center"><input type="submit" value="SAVE"><b><a href="newcheck.jsp?lname=<%=ename1%>&pwd=<
%=empno1%>&user=Legal&Login=Login">BACK</a></b></td></tr></table><input type="hidden" name="ename" value="<%=ename1%>"><input type="hidden" name="empno" value="<%=empno1%>">
</form></body></html>
//---------------------------BUILDERADD.JSP------------------------------//
//---------------------------BUILDERS.JSP------------------------------//
<%@page import="com.lendingtree.conn.ConnectionPool"%><html><body align="right"> <font colo="blue"><h4 align="right"><a href="main.jsp"> LOGOUT</a></h4></font></body></html><%@ page import="java.sql.*"%><%String vreg=request.getParameter("cust3");String ename1=request.getParameter("ename");
Dept. of CSE, GPREC ,KNL
108
LENDING TREE
String empno1=request.getParameter("empno");%><html><head><script type="text/javascript">var regno=<%=vreg%>function getIndex(){var x=document.getElementById("mySelect")if((x.selectedIndex)==1){document.getElementById("apfno").disabled=falsedocument.getElementById("reason").disabled=true//document.getElementById("dis").disabled=false
}else{document.getElementById("apfno").disabled=truedocument.getElementById("reason").disabled=falsedocument.getElementById("dis").disabled=falsedocument.getElementById('txt').innerHTML=""document.getElementById("fav").value=""}if((x.selectedIndex)==0){document.getElementById("reason").disabled=truedocument.getElementById("dis").disabled=true}}//-----------------------------------function startTime(){var today=new Date()var h=today.getHours()var m=today.getMinutes()var s=today.getSeconds()//add zero in front of numbers<10m=checkTime(m)s=checkTime(s)document.getElementById('txt').innerHTML=h+""+m+""+s+""+regnodocument.getElementById("fav").value=h+""+m+""+s+""+regnodocument.getElementById("dis").disabled=false}function checkTime(i){if(i<10){i="0"+i}return i}//------------------------------------</script></head><body bgcolor="pink"><form id="myForm" action="buildersres.jsp">
Dept. of CSE, GPREC ,KNL
109
LENDING TREE
<b><h4 align="center">BuilderInformationForm <b></h4><table bgcolor="wheat" align="center" border="2"><%//Class.forName("oracle.jdbc.driver.OracleDriver");//Connection con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","scott","tiger");Connection con=ConnectionPool.getConnection();Statement stmt=con.createStatement();String vsql="select *from builders_details where regno="+vreg;ResultSet rs2=null;rs2=stmt.executeQuery(vsql);if(rs2.next()){%><tr><td><b>BuilderName</b></td><TD><%=rs2.getString("BUILDERNAME")%></td></tr><tr><td><b>Office Address</b></td><td ><%=rs2.getString("OFFICEADDRESS")%></td></tr><tr><td><b>RegNo</b></td><td><%=rs2.getLong("REGNO")%></td></tr><tr><td><b>PanNo</b></td><td><%=rs2.getString("PANNUMBER")%></td></tr><tr><td><b>Phone</b></td><td><%=rs2.getLong("PHONE")%></td></tr><tr><td><b>Email</b></td><td><%=rs2.getString("EMAIL")%></td></tr><tr><td><b>WebSite</b></td><td><%=rs2.getString("WEBSITE")%></td></tr><tr><td><b>Layout Plan</b></td> <td align="center"><b><font color="red"><%=rs2.getString("LP")%></font></b></td></tr><tr><td><b>Panchayathi/ HudaPermission</b></td><td align="center"><b><font color="red"><%=rs2.getString("PNO")%></font></b></td></tr><tr><td><b>No objection Certificate</b></td><td align="center"><b><font color="red"><%=rs2.getString("NOC")%></font></b></td></tr><tr><td><b>Encumberance Certificate</b></td><td align="center"><b><font color="red"><%=rs2.getString("EC")%></font></b></td></tr><tr><td><b>Building Plan</b></td><td align="center"><b><font color="red"><%=rs2.getString("BP")%></font></b></td></tr><input type="hidden" name="reg"value="<%=rs2.getLong("REGNO")%>"><%}%><tr><td><b>Decision</td><td><select id="mySelect" onchange="getIndex()" name="decision"><option>None</option><option>YES<option>NO</select></td></tr><tr><td><b>APF No</td><td><input type="button" id="apfno" onclick="startTime()" value="APFNO" disabled="true"><b><font color="green"><div id="txt"></div></td></tr><tr><tr><td><b>Reason</td><td><input type="text" name="reas" disabled="true" id="reason"></td></tr><tr><td colspan="2" align="center"><input id="dis"type="submit" disabled ="true"value="save"></td></tr></table><input type="hidden" name="fave" id="fav" size="20"><center><b><ahref="newcheck.jsp?lname=<%=ename1%>&pwd=<%=empno1%>&user=Legal&Login=Login">BACK</a></b></center><input type="hidden" name="ename" value="<%=ename1%>">
Dept. of CSE, GPREC ,KNL
110
LENDING TREE
<input type="hidden" name="empno" value="<%=empno1%>"></form></body></html>
//---------------------------BUILDERS.JSP------------------------------//
//---------------------------VOVER.JSP------------------------------//
<%@page import="com.lendingtree.conn.ConnectionPool"%>
<html><body><h5 align="right"><a href="main.jsp">LOGOUT</a></h5></body></html><%@ page import="java.sql.*"%><%//Class.forName("oracle.jdbc.driver.OracleDriver");
Dept. of CSE, GPREC ,KNL
111
LENDING TREE
//Connection con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","scott","tiger");Connection con=ConnectionPool.getConnection();Statement stmt=con.createStatement();String vsql3="select * from customers where state='Verificationover'";ResultSet rs1=null;rs1=stmt.executeQuery(vsql3);System.out.println("--"+vsql3);%><html><body bgcolor="pink"><center><b><h4><font size="4" color="blue">NEW CUSTOMERS INFORMATION</font></h4></b></center><br><br><table align="center" bgcolor="wheat" border="2"><tr><th><b>CustmerName</b></th><th><b>ContactNo</b></th><th><b>CustAddress</b></th><th><b>Emailid</b></th><th><b>Occupation</b></th><th><b>State</b></th></tr><tr><%while(rs1.next()){%><td><a href="/soe/adverify.jsp?cust2=<%=rs1.getLong("CONTACTNO")%>"\"><%=rs1.getString("CUSTNAME")%></a></td><td><%=rs1.getLong("contactno")%></td><td><%=rs1.getString("custaddress")%></td><td><%=rs1.getString("emailid")%></td><td><%=rs1.getString("occupation")%></td><td><%=rs1.getString("STATE")%></td></tr><%}%></table><h5 align="center"><a href="adminnew.jsp">ADMIN</a></h5></body></html>
//---------------------------VOVER.JSP------------------------------//
//---------------------------ADVERIFY.JSP------------------------------//
<%@page import="com.lendingtree.conn.ConnectionPool"%><html><BODY><h5 align="right"><br><a href="main.jsp">LOGOUT</a></h5></BODY></html><%String vone =request.getParameter("cust2");%><%@ page import="java.sql.*"%><%//Class.forName("oracle.jdbc.driver.OracleDriver");//Connection con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","scott","tiger");Connection con=ConnectionPool.getConnection();
Dept. of CSE, GPREC ,KNL
112
LENDING TREE
Statement stmt=con.createStatement();String vsql3="select * from customers where contactno="+vone;ResultSet rs1=null;rs1=stmt.executeQuery(vsql3);%><html><body bgcolor="pink"><center><b><h4>VERIFICATIONOVERED CUSTOMERS INFORMATION</h4></b></center><form action="custfinal.jsp"><table align="center" bgcolor="wheat" border="2"><tr><%if(rs1.next()){%><tr><td><b>CustmerName</b></td><td><%=rs1.getString("CUSTNAME")%></td></tr><tr><td><b>ContactNo</b></td><td><%=rs1.getLong("contactno")%></td></tr><tr><td><b>CustAddress</b></td><td><%=rs1.getString("custaddress")%></td></tr><tr><td><b>EmailId</b></td><td><%=rs1.getString("emailid")%></td></tr><tr><td><b>Occupation</b></td><td><%=rs1.getString("occupation")%></td></tr><tr><td><b>status</b></td><td><%=rs1.getString("STATE")%></td></tr><input type="hidden" name="cusname" value="<%=rs1.getString("CUSTNAME")%>"><%}String vsql4="SELECT APFNO,BUILDERNAME FROM BUILDERS_DETAILS WHERE REASON='noreason'";ResultSet rs2=null;rs2=stmt.executeQuery(vsql4);%><tr><td><b>BuilderName</td><td><select name="buil"><%while(rs2.next()){%><option><%=rs2.getString("BUILDERNAME")%><%}%></select></td></tr><tr><td><b>Status</td><td><selectname="sant"><option >Sanction<option>Reject</FONTW></select></td></tr><tr><td colspan="2" align="center"><input type="submit" value="submit"><b><a href="vover.jsp">BACK</a></b></td></tr></table></form></body></html>
//---------------------------ADVERIFY.JSP------------------------------//
//---------------------------CUSTFINAL.JSP------------------------------//
<%@page import="com.lendingtree.conn.ConnectionPool"%><html><body bgcolor="pink"><h5 align="right"><a href="main.jsp">LOGOUT</a></h5><%@ page import="java.sql.*"%><%String vone=request.getParameter("buil");String vtwo=request.getParameter("sant");String vthr=request.getParameter("cusname");%><%try{
Dept. of CSE, GPREC ,KNL
113
LENDING TREE
//Class.forName("oracle.jdbc.driver.OracleDriver");//Connection con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","scott","tiger");Connection con=ConnectionPool.getConnection();Statement stmt=con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);String vsql1="select sysdate from admin";ResultSet rs1=stmt.executeQuery(vsql1);rs1.next();java.sql.Date d=rs1.getDate("SYSDATE");//out.println(d);String vsql="select custname,state,buildername,SANCTIONEDDATE from customers where CUSTNAME='"+vthr+"'";ResultSet rs=stmt.executeQuery(vsql);if(vtwo.equals("Reject")){rs.next();rs.updateString("STATE",vtwo);rs.updateString("BUILDERNAME","nobuilder");rs.updateDate("SANCTIONEDDATE",d);rs.updateRow();//out.println("data stored---reject");}else{rs.next();rs.updateString("STATE",vtwo);rs.updateString("BUILDERNAME",vone);rs.updateDate("SANCTIONEDDATE",d);rs.updateRow();//out.println("data stored");}}catch(Exception e){out.println(e);}%><font color="green"><h3>LOAN <%=vtwo%>ed..</h3></font><h5 align="center"><a href="adminnew.jsp">ADMIN</a></h5><h5 align="center"><a href="vover.jsp">BACK</a></h5></body></html>
//---------------------------CUSTFINAL.JSP------------------------------//
//---------------------------REPORS.JSP------------------------------//
<html><body align="right"> <fontcolor="blue"><h4 align="right"><ahref="main.jsp"> LOGOUT</a></h4></font></body></html><html><body bgcolor="pink">
Dept. of CSE, GPREC ,KNL
114
LENDING TREE
<center><caption><font color="black"><h4><font color="blue" size="4">Reports</font></h4></font></caption></center><table border=2 align="center"bgcolor="wheat"><tr><td align="center"><a href="between.jsp"> <font color="black"><b>List Of Files Sanctioned b/w two dates</b></font></a></td></tr><tr><td align="center"><a href="sanctioned.jsp"> <font color="black"><b>List Of Files Sanctioned(Business Excutives Wise)</b></font></a></td></tr><tr><td align="center"><a href="Banksanctioned.jsp"><font color="black"><b>Bank Wise Files Sanctioned b/w Two Dates</b></font></a></td></tr><tr><td align="center"><a href="Pending.jsp"> <font color="black"><b>Pending Files</b></font></a></td></tr><tr><td align="center"><a href="Rejected.jsp"> <font color="black"><b>Rejected Files</b></font></a></td></tr></table></body></html>
<html><body><center><a href="adminnew.jsp"><B>ADMIN<b></a></center>
//---------------------------REPORS.JSP------------------------------//
//---------------------------BETWEEN.JSP------------------------------//
<%@page import="com.lendingtree.conn.ConnectionPool"%><html><body align="right"> <font colo="blue"><h4 align="right"><a href="main.jsp"> LOGOUT</a></h4></font></body></html><HTML><body bgcolor="pink">
Dept. of CSE, GPREC ,KNL
115
LENDING TREE
<center><b>List No Of Files Sanctioned B/W Two Dates<b></center><form action ="between.jsp"><table border="2"bgcolor="wheat" align="center"><tr><td>From</td><td><input type="text" name="fdate"><font size="2" color="blue">ex:01-sep-07</font></td></tr><tr><td>To</td><td><input type="text" name="fto"><font size="2" color="blue">ex:20-sep-07</font></td></tr><tr><td colspan="4" align="center"><input type="submit" value="GetFiles"></td></tr></table></form></body></HTML>
<html><body><center><a href="adminnew.jsp">ADMIN</a><br><a href="repors.jsp"><b>BACK<b></a></center></body></html><%@ page import="java.sql.*"%><%try{try{String vone=request.getParameter("fdate");String vtwo=request.getParameter("fto");String vthr="null";//Class.forName("oracle.jdbc.driver.OracleDriver");//Connection con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","scott","tiger");Connection con=ConnectionPool.getConnection();Statement stmt=con.createStatement();String vsql="select state,custname,sanctioneddate from customers where state='Sanction' and sanctioneddate between '"+vone+"' and '"+vtwo+"'";System.out.println(vsql);ResultSet rs=stmt.executeQuery(vsql);%><html><body><br><br><br><table bgcolor="wheat" align="center"border="2"><tr><th>CustomerName</th><th>State</th><th align="center">SanctionedDate(yyyy/mm/dd)</th></tr><%while(rs.next()){java.util.Date z=rs.getDate("sanctioneddate");%><tr><td><b><font color="blue"><%=rs.getString("custname")%></font></b></td><td align="center"><font color="blue"><b><%=rs.getString("state")%></b></font></td><td align="center"><font color="blue"><b><%=z%></b></font></td></tr><%}}catch(Exception e1){}}catch(NullPointerException e){out.println();}
%></table>
Dept. of CSE, GPREC ,KNL
116
LENDING TREE
</body></html>
//---------------------------BETWEEN.JSP------------------------------//
//---------------------------SANCTIONED.JSP------------------------------//
<%@page import="com.lendingtree.conn.ConnectionPool"%><%@ page import="java.sql.*"%><html><body align="right"> <font colo="blue"><h4 align="right"><a href="main.jsp"> LOGOUT</a></h4></font></body>
Dept. of CSE, GPREC ,KNL
117
LENDING TREE
</html><html><body bgcolor="pink"><form method="post" action="sanctioned.jsp"><%//Class.forName("oracle.jdbc.driver.OracleDriver");//Connection con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","scott","tiger");Connection con,con1;con=ConnectionPool.getConnection();Statement stmt=con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_UPDATABLE);String vsql="select empname from emp where dept='PickUp'";ResultSet rs=stmt.executeQuery(vsql);%><center><b>List Of Files Sanctioned(Business Excutives Wise)</b><center><table align="center"bgcolor="wheat"><tr><td><select id="emp" name="ename"><%while(rs.next()){%><option><%=rs.getString("empname")%><%}%></select></td><td><input type="submit" name="sub" value="GetFiles" onClick="getInfo()"></td></tr></table></form></body></html>
<%String vone=request.getParameter("ename");//Class.forName("oracle.jdbc.driver.OracleDriver");//Connection con1=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","scott","tiger");con1=ConnectionPool.getConnection();Statement stmt1=con1.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_UPDATABLE);String vsql2="select custname,state,assignto,sanctioneddate,cdate from customers where assignto='"+vone+"' and state='Sanction'";//ResultSet rs1="null";ResultSet rs1=stmt1.executeQuery(vsql2);%><html><body bgcolor="pink"><table align="center"bgcolor="wheat" border="2"><tr><th>CustomerName</th><th>State</th><th>DateOf CustomerEntered (yyyy/mm/dd)</th><th>Date Of Sanctioned (yyyy/mm/dd)</th><th>Assignto</th></tr><%while(rs1.next()){%><tr><td><%=rs1.getString("custname")%></td><td><%=rs1.getString("state")%></td><% java.sql.Date y=rs1.getDate("cdate");%><td align="center"><font color="blue"><b><%=y%></font></td><% java.util.Date z=rs1.getDate("sanctioneddate");%>
Dept. of CSE, GPREC ,KNL
118
LENDING TREE
<font color="blue"><td align="center"><font color="blue"><b><%=z%></font></td><td align="center"><b><%=rs1.getString("assignto")%>
<%}%></td></tr></table></body></html> <html><body><center><a href="adminnew.jsp"><b>ADMIN</a><a href="repors.jsp"><b>BACK</a></center>
//---------------------------SANCTIONED.JSP------------------------------//
//---------------------------BANKSANCTIONED.JSP------------------------------//
<%@page import="com.lendingtree.conn.ConnectionPool"%><html><body align="right">
Dept. of CSE, GPREC ,KNL
119
LENDING TREE
<font colo="blue"><h4 align="right"><a href="main.jsp"> LOGOUT</a></h4></font></body></html><%@ page import="java.sql.*"%><HTML><body bgcolor="pink"><center><b>Bank Wise Files Sanctioned B/W Two Dates<b></center><form action ="Banksanctioned.jsp"><table border="2"bgcolor="wheat" align="center"><tr><td>From</td><td><input type="text" name="fdate"><font size="2" color="red">ex:01-sep-07</font></td></tr><tr><td>To</td><td><input type="text" name="fto"><font size="2" color="red">ex:20-sep-07</font></td></tr><%//Class.forName("oracle.jdbc.driver.OracleDriver");//Connection con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","scott","tiger");Connection con=ConnectionPool.getConnection();Statement stmt=con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_UPDATABLE);String vsql="select BANKNAME from banks";ResultSet rs=stmt.executeQuery(vsql);%><tr align="center"><td>Bank Name</td><td><select name="banks"><%while(rs.next()){%><option><%=rs.getString("BANKNAME")%><%}%></select></td></tr><tr><td colspan="4" align="center"><input type="submit" value="GetFiles"></td></tr></table></form></body></html><%try{ String vbank=request.getParameter("banks");String vthr=request.getParameter("fdate");String vfor=request.getParameter("fto");
//Class.forName("oracle.jdbc.driver.OracleDriver");//Connection con1=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","scott","tiger");Connection con1=ConnectionPool.getConnection();Statement stmt1=con1.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_UPDATABLE);String vsql1="select bankname,custname,state,sanctioneddate from customers where bankname='"+vbank+"'and state='Sanction' and sanctioneddate between '"+vthr+"' and '"+vfor+"'";System.out.println(vsql1);
Dept. of CSE, GPREC ,KNL
120
LENDING TREE
ResultSet rs1=stmt1.executeQuery(vsql1);%><html><body bgcolor="pink"><table bgcolor="wheat" border="2"><tr><th>Bankname</th><th>Custname</th><th>State</th><th>Sannctioned Date</th></tr><%while(rs1.next()){%> <tr><td><%=rs1.getString("bankname")%></td><td><%=rs1.getString("custname")%></td><td><%=rs1.getString("state")%></td><td><%=rs1.getString("sanctioneddate")%></td><%}}catch(Exception e){out.println();}%></body></html>
//---------------------------BANKSANCTIONED.JSP------------------------------//
//---------------------------PENDING.JSP------------------------------//
<%@page import="com.lendingtree.conn.ConnectionPool"%><html><body align="right"> <font colo="blue"><h4 align="right"><a href="main.jsp"> LOGOUT</a></h4></font></body></html><%@ page import="java.sql.*"%><html><body bgcolor="pink"><center><b>List Of Pending Application</b></center><br>
Dept. of CSE, GPREC ,KNL
121
LENDING TREE
<table bgcolor="wheat" align="center"border="2"><tr><th>Customers</th><th>Status</th></tr><%//Class.forName("oracle.jdbc.driver.OracleDriver");//Connection con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","scott","tiger");Connection con=ConnectionPool.getConnection();Statement stmt=con.createStatement();String vsql="select state,custname from customers where state!='Sanction' and state!='Rject'";ResultSet rs=stmt.executeQuery(vsql);while(rs.next()){%><tr><td><%=rs.getString("CUSTNAME")%></td><td align="center"><font color="red"><b><%=rs.getString("STATE")%></td></tr><%}%></table></body></html>
<html><body><center><ahref="adminnew.jsp"><b>ADMIN</b><br></a><a href="repors.jsp"><b>BACK<b></a></center>
//---------------------------PENDING.JSP------------------------------//
//---------------------------REJECTED.JSP------------------------------//
<%@page import="com.lendingtree.conn.ConnectionPool"%><html><body align="right"> <fontcolor="blue"><h4align="right"><ahref="main.jsp"> LOGOUT</a></h4></font></body></html><%@ page import="java.sql.*"%><html><body bgcolor="pink">
Dept. of CSE, GPREC ,KNL
122
LENDING TREE
<center><b>List Of Rejected Application</b></center><br><table bgcolor="wheat" align="center"border="2"> <tr><th>Customers</th><th>State</th><th>RejectedDate</th></tr><%//Class.forName("oracle.jdbc.driver.OracleDriver");//Connection con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","scott","tiger");Connection con=ConnectionPool.getConnection();Statement stmt=con.createStatement();String vsql="select state,custname,sanctioneddate,buildername from customers where state='Reject'";ResultSet rs=stmt.executeQuery(vsql);while(rs.next()){%><tr><td><b><font color="blue"><%=rs.getString("CUSTNAME")%></font></td><td><%=rs.getString("STATE")%></td><%java.util.Date z=rs.getDate("SANCTIONEDDATE");%><td><b><font color="blue"><%=z%></font></td></tr><%}%></table></body></html>
<html><body><center><a href="adminnew.jsp"><b>ADMIN<b></a><br><a href="repors.jsp"><b>BACK<b></a></center>
//---------------------------REJECTED.JSP------------------------------//
//---------------------------CUSTOMER.JSP------------------------------//
<%@ page import="java.sql.*"%><%@page import="com.lendingtree.conn.ConnectionPool"%><html><body align="right"> <font colo="blue"><h4 align="right"><a href="main.jsp"> LOGOUT</a></h4></font></body></html><%String vpwd=request.getParameter("cpwd");String cname=request.getParameter("cname");%>
Dept. of CSE, GPREC ,KNL
123
LENDING TREE
<html><body><form action="customerstate.jsp"><input type="hidden" name="cpwd" value="<%=vpwd%>"><input type="hidden" name="cname" value="<%=cname%>"><table align="center" bgcolor="wheat"><tr><td><font color="blue" size="3">Click On Status Button</font></td><td><input type="hidden" name ="email" value='<%=vpwd%>'/></td><td><input type="submit" id="getstate" value="Get Status"></td></tr></table></form></body></html><html><body bgcolor="pink"><table align="center"border="3" bgcolor="wheat"><tr><th>Customername</th><th>Status</th></tr><%String vone=request.getParameter("email");//out.print("Welcome, "+vone);try{if(vone.equals("null")){out.println("this is null");}}catch(NullPointerException e){}//Class.forName("oracle.jdbc.driver.OracleDriver");//Connection con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","scott","tiger");Connection con=ConnectionPool.getConnection();Statement stmt=con.createStatement();String vsql="select custname,STATE,password from customers where password='"+vone+"'";ResultSet rs=stmt.executeQuery(vsql);out.print("<b>Welcome, </b>");if(rs.next()){%> <b> <%=rs.getString("custname")%></b><tr><td><%=rs.getString("custname")%></td> <td><b><font color="red"><%=rs.getString("state")%></font></td></tr></table><%}%><center><table><tr><td><a href="newcheck.jsp?lname=<%=cname%>&pwd=<%=vpwd%>&user=Cust&Login=Login">BACK</a></td></tr></table></body></html>
//---------------------------CUSTOMERSTATE.JSP------------------------------//
//---------------------------NEWMESSAGE.JSP------------------------------//
<html><body align="right"> <font colo="blue"><h4 align="right"><a href="main.jsp"> LOGOUT</a></h4></font></body></html><%@ page import="java.sql.*"%><%@ page import="java.util.*"%><%String vone=request.getParameter("cwd");//emailString vpwd=request.getParameter("cpwd");//email
Dept. of CSE, GPREC ,KNL
124
LENDING TREE
String vname=request.getParameter("cname");//name%><html><body bgcolor="pink"><center><b><font color="blue" size="4">Compose Message To Adminitration</font></b><form action="sendmess.jsp"><table align="center" border="2"bgcolor="wheat"><tr><td><b><font size="4"color="red"><i>F</i></font>rom:</b></td><td><%=vone%></td></tr><tr><td><b><font size="4"color="red"><i>T</i></font>o:</b></td><td>Admin</td></tr><tr><td><b><font size="4"color="red"><i>S</i></font>ubject:</b></td><td><input type="text" name="sub"></td></tr><tr><td><b><font size="4"color="red"><i>M</i></font>essage:</b></td><td><textarea rows="5"cols="20" name="mess"></textarea> </td></tr><tr><td colspan="2" align="center"><input type="submit" value="send"><b><a href="message.jsp?cpwd=<%=vpwd%>&cname=<%=vname%>"/">BACK</a></b></td></tr><input type="hidden" name="to2" value="<%=vone%>"></table><input type="hidden" name="cwd" value="<%=vone%>"><input type="hidden" name="cpwd" value="<%=vpwd%>"><input type="hidden" name="cname" value="<%=vname%>"></form></body></html>
//---------------------------NEWMESSAGE.JSP------------------------------//
//---------------------------SENDMESSAGE.JSP------------------------------//
<%@ page import="java.sql.*"%><%@page import="com.lendingtree.conn.ConnectionPool"%><%String vone=request.getParameter("to2");String vthr=request.getParameter("sub");String vfor=request.getParameter("mess");String vmail=request.getParameter("cwd");//emailString vpwd=request.getParameter("cpwd");//email
Dept. of CSE, GPREC ,KNL
125
LENDING TREE
String vname=request.getParameter("cname");//name//String vfive=request.getParameter("cdate");String to1="admin";//java.sql.Date d=new java.sql.Date();//String s=d.toString();//out.println(s);%><%//Class.forName("oracle.jdbc.driver.OracleDriver");//Connection con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","scott","tiger");Connection con=ConnectionPool.getConnection();Statement stmt=con.createStatement();String vsql="select sysdate from admin";ResultSet rs=stmt.executeQuery(vsql);rs.next();java.sql.Date d=rs.getDate("SYSDATE");String vsql3="select count(*) from messages";ResultSet rs3=stmt.executeQuery(vsql3);rs3.next();long co=rs3.getLong("COUNT(*)");//co+=100;co+=co+(501211/5);//out.println(co);//con.close();%><html><body align="right"> <fontcolo="blue"><h4align="right"><ahref="main.jsp"> LOGOUT</a></h4></font></body></html><html><head><body bgcolor="pink"><%try{//Class.forName("oracle.jdbc.driver.OracleDriver");//Connection con1=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","scott","tiger");Connection con1=ConnectionPool.getConnection();String vsql1="insert into messages values(?,?,?,?,?,?)";PreparedStatement pstmt=con.prepareStatement(vsql1);pstmt.setLong(1,co);pstmt.setString(2,vone);pstmt.setString(3,to1);pstmt.setString(4,vthr);pstmt.setString(5,vfor);//pstmt.setString(6,"cdate");pstmt.setDate(6,d);pstmt.executeUpdate();con1.close();%>
Dept. of CSE, GPREC ,KNL
126
LENDING TREE
<center><font color="blue" size="4">Ur message has been sent successfully</font></center><%}catch(Exception e){out.println(e);}%>
<b><center><ahref="message.jsp?cpwd=<%=vpwd%>&cname=<%=vname%>"/">BACK</a></center></b>
//---------------------------SENDMESSAGE.JSP------------------------------//
//---------------------------CHANGEPASSWORD.JSP------------------------------//
<html><body><h5 align="right"><a href="main.jsp">LOGOUT</a></h5></body></html><%String vmail=request.getParameter("cpwd");//out.println(vmail);
Dept. of CSE, GPREC ,KNL
127
LENDING TREE
%><html><body bgcolor="pink"><BR><BR><html><head><SCRIPT LANGUAGE='javaScript'>function checkData(){var t8=document.getElementById("t8").value;var t22=document.getElementById("t22").value;submitOK="true"if( (t8=="")||(t22=="")){alert("Don't leave Empty Fields");submitOK="false"}
if(t22.length<6){alert("Password should be 6 or above");submitOK="false"}if(submitOK=="false"){return false;}}</SCRIPT></head><body><form action="changeNewPass.jsp" onsubmit="return checkData()"><br><br><br><br><br><table align="center" bgcolor="wheat" size="100" border="2"><tr>
<td>Enter your New Password</td><td><input type="password" id="t8" name="POne" ></td>
</tr><tr>
<td>Re-Enter your Password</td><td><input type="password" id="t22" name="PTwo" >
</td></tr><tr>
<td align="center"colspan="2"><input type="submit" value="Save"></td><input type="hidden" name="vemail" value="<%=vmail%>">
Dept. of CSE, GPREC ,KNL
128
LENDING TREE
</table></form>
</body></html>
//---------------------------CHANGEPASSWORD.JSP------------------------------//
//---------------------------ADMINMESSAGE.JSP------------------------------//
<%@ page import="java.sql.*"%><%@page import="com.lendingtree.conn.ConnectionPool"%><html><body align="right"> <fontcolo="blue"><h4align="right"><ahref="main.jsp"> LOGOUT</a></h4></font></body></html><html>
Dept. of CSE, GPREC ,KNL
129
LENDING TREE
<head></head><body bgcolor="pink"><form id="myForm"action="msgdelete.jsp"><b><font color="blue" size="5"><center>Messages From Customers</center></font> <br><br><font color="green" size="3"></b><%//Class.forName("oracle.jdbc.driver.OracleDriver");//Connection con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","scott","tiger");Connection con=ConnectionPool.getConnection();Statement stmt=con.createStatement();%><html><head><script type="text/javascript">function changeAction(txt){var t=txt
if(t=="del"){alert("You have clicked Delete Option")document.getElementById("myForm").submit()}else
{var x=document.getElementById("myForm")x.action="admincompose.jsp"alert("ThanQ for choosing for compose")x.submit()}
}</script></head><body bgcolor="pink"><table align="center" border="2" bgcolor="wheat"><tr><th></th><th>From</th><th>To</th><th>Subject</th><th>Date</th></tr>
<%try{String vsqlad="select * from messages where to1='admin'order by cdate Desc";System.out.println(vsqlad);ResultSet rs=stmt.executeQuery(vsqlad);while(rs.next()){%><tr><td><input type="checkbox" name="check" value="<%=rs.getLong("msgid")%>"></td><td><%=rs.getString("from1")%></td><td><%=rs.getString("to1")%></td><td><a href="/soe/adminreadmessage.jsp?bepid=<%=rs.getInt("MSGID")%>"\"><%=rs.getString("msgsubject")%></a></td><td><%=rs.getDate("cdate")%></td>
Dept. of CSE, GPREC ,KNL
130
LENDING TREE
<input type="hidden" name="to2" value="<%=rs.getString("to1")%>"></tr><%}}catch(Exception e){out.println(e+"this is exception");}out.print("<tr><td colspan=\"6\" align=\"center\"><input type=\"submit\" onclick=\"changeAction('addnew')\" name=\"addnew\" value=\"Compose\">");%><%out.print("<input type=\"submit\" onclick=\"changeAction('del')\" name=\"del\"value=\"DELETE\"></td></tr>");%></table><center><a href="adminnew.jsp"><b>ADMIN<b></a></center></body></html>
//---------------------------ADMINMESSAGE.JSP------------------------------//
//---------------------------ADMINREADMESSAGE.JSP------------------------------//
<%@page import="com.lendingtree.conn.ConnectionPool"%><HTML><body bgcolor="pink"><form ><table align="center" border="2"bgcolor="wheat"><tr><td>TO</td><td>Admin</td></tr><%@ page import="java.sql.*"%><%String v=request.getParameter("bepid");
Dept. of CSE, GPREC ,KNL
131
LENDING TREE
//Class.forName("oracle.jdbc.driver.OracleDriver");//Connection con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","scott","tiger");
Connection con=ConnectionPool.getConnection();Statement stmt=con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);String vsql="select * from messages where MSGID="+v;ResultSet rs=stmt.executeQuery(vsql);rs.next();%><tr><td>From</td><td><%=rs.getString("from1")%></td></tr>
<tr><td>Subject</td><td><%=rs.getString("MSGSUBJECT")%></td></tr><tr><td>Message</td><td><textarea name="msg" rows="5" cols="20"><%=rs.getString("MSG")%></textarea></td></tr>
<tr><td colspan="2" align="center"><a href="adminmessage.jsp"><b>BACK<b></a></td></tr><input type="hidden" name="to2" value="<%=v%>"></table></form></body></html>
//---------------------------ADMINREADMESSAGE.JSP------------------------------//
Dept. of CSE, GPREC ,KNL
132
LENDING TREE
//---------------------------ADMINSENDMESSAGE.JSP------------------------------//
<%@ page import="java.sql.*"%><%@page import="com.lendingtree.conn.ConnectionPool"%><html><body align="right"> <fontcolor="blue"><h4align="right"><ahref="main.jsp"> LOGOUT</a></h4></font></body></html><%String vone=request.getParameter("to2");String vthr=request.getParameter("sub");String vfor=request.getParameter("mess");String vid=request.getParameter("mails");%><%//Class.forName("oracle.jdbc.driver.OracleDriver");//Connection con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","scott","tiger");Connection con=ConnectionPool.getConnection();Statement stmt=con.createStatement();String vsql="select sysdate from admin";ResultSet rs=stmt.executeQuery(vsql);rs.next();java.sql.Date d=rs.getDate("SYSDATE");//con.close();String vsql3="select count(*) from messages";ResultSet rs3=stmt.executeQuery(vsql3);rs3.next();long co=rs3.getLong("COUNT(*)");co+=co+(501211/3);//out.println(co);%><%try{//Class.forName("oracle.jdbc.driver.OracleDriver");//Connection con1=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","scott","tiger");Connection con1=ConnectionPool.getConnection();String vsql1="insert into messages values(?,?,?,?,?,?)";PreparedStatement pstmt=con1.prepareStatement(vsql1);pstmt.setLong(1,co);pstmt.setString(2,vone);pstmt.setString(3,vid);
Dept. of CSE, GPREC ,KNL
133
LENDING TREE
pstmt.setString(4,vthr);pstmt.setString(5,vfor);pstmt.setDate(6,d);pstmt.executeUpdate();}catch(Exception e){out.println(e);}%> <html><body bgcolor="pink"><center><b>Message has been successfully sent</b><br><a href="adminmessage.jsp"><b>BACK</b></a></center></body></html>
//---------------------------ADMINSENDMESSAGE.JSP------------------------------//
Dept. of CSE, GPREC ,KNL
134
LENDING TREE
//---------------------------CUSTREADMESSAGE.JSP------------------------------//
<%@page import="com.lendingtree.conn.ConnectionPool"%><HTML><body bgcolor="pink"><form ><table align="center" border="2"bgcolor="wheat"><%@ page import="java.sql.*"%><%String v=request.getParameter("bepid");String vs=request.getParameter("cwd");//Class.forName("oracle.jdbc.driver.OracleDriver");//Connection con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","scott","tiger");Connection con=ConnectionPool.getConnection();Statement stmt=con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);String vsql="select * from messages where MSGID="+v;ResultSet rs=stmt.executeQuery(vsql);rs.next();%><tr><td>TO</td><td><%=rs.getString("to1")%></td></tr><tr><td>From</td><td><%=rs.getString("from1")%></td></tr><tr><td>Subject</td><td><%=rs.getString("MSGSUBJECT")%></td></tr><tr><td>Message</td><td><textareaname="msg"rows="5" cols="20"><%=rs.getString("MSG")%></textarea></td></tr><tr><td colspan="2"align="center"><a href="/soe/message.jsp?cpwd=<%=rs.getString("to1")%>"\">BACK</a></td></tr></table></form></body></html>
//---------------------------CUSTREADMESSAGE.JSP------------------------------//
Dept. of CSE, GPREC ,KNL
135
LENDING TREE
TESTING
Dept. of CSE, GPREC ,KNL
136
LENDING TREE
6.SYSTEM TESTING
Testing is the major quality measure employed during the software engineering
development. Its basic function is to detect error in the software. Testing is necessary for the
proper functioning of the system. Testing has to be done at four levels.
Software Testing is the process used to help identify the correctness, completeness,
security, and quality of developed computer software. Testing is a process of technical
investigation, performed on behalf of stakeholders, that is intended to reveal quality-related
information about the product with respect to the context in which it is intended to operate.
This includes, but is not limited to, the process of executing a program or application with the
intent of finding errors. Quality is not an absolute; it is value to some person. With that in
mind, testing can never completely establish the correctness of arbitrary computer software;
testing furnishes a criticism or comparison that compares the state and behavior of the
product against a specification. An important point is that software testing should be
distinguished from the separate discipline of Software Quality Assurance (SQA), which
encompasses all business process areas, not just testing.
There are many approaches to software testing, but effective testing of complex
products is essentially a process of investigation, not merely a matter of creating and
following routine procedure. One definition of testing is "the process of questioning a product
in order to evaluate it", where the "questions" are operations the tester attempts to execute
with the product, and the product answers with its behavior in reaction to the probing of the
tester[citation needed]. Although most of the intellectual processes of testing are nearly
identical to that of review or inspection, the word testing is connoted to mean the dynamic
analysis of the product—putting the product through its paces. Some of the common quality
attributes include capability, reliability, efficiency, portability, maintainability, compatibility
and usability. A good test is sometimes described as one which reveals an error; however,
more recent thinking suggests that a good test is one which reveals information of interest to
someone who matters within the project community.
Dept. of CSE, GPREC ,KNL
137
LENDING TREE
6.1 Introduction
In general, software engineers distinguish software faults from software failures. In
case of a failure, the software does not do what the user expects. A fault is a programming
error that may or may not actually manifest as a failure. A fault can also be described as an
error in the correctness of the semantic of a computer program. A fault will become a failure
if the exact computation conditions are met, one of them being that the faulty portion of
computer software executes on the CPU. A fault can also turn into a failure when the
software is ported to a different hardware platform or a different compiler, or when the
software gets extended. Software testing is the technical investigation of the product under
test to provide stakeholders with quality related information.
Software testing may be viewed as a sub-field of Software Quality Assurance but
typically exists independently (and there may be no SQA areas in some companies). In SQA,
software process specialists and auditors take a broader view on software and its
development. They examine and change the software engineering process itself to reduce the
amount of faults that end up in the code or deliver faster.
Regardless of the methods used or level of formality involved the desired result of
testing is a level of confidence in the software so that the organization is confident that the
software has an acceptable defect rate. What constitutes an acceptable defect rate depends on
the nature of the software. An arcade video game designed to simulate flying an airplane
would presumably have a much higher tolerance for defects than software used to control an
actual airliner.
A problem with software testing is that the number of defects in a software product
can be very large, and the number of configurations of the product larger still. Bugs that
occur infrequently are difficult to find in testing. A rule of thumb is that a system that is
expected to function without faults for a certain length of time must have already been tested
for at least that length of time. This has severe consequences for projects to write long-lived
reliable software.
A common practice of software testing is that it is performed by an independent group
of testers after the functionality is developed but before it is shipped to the customer. This
practice often results in the testing phase being used as project buffer to compensate for
project delays. Another practice is to start software testing at the same moment the project
starts and it is a continuous process until the project finishes.
Dept. of CSE, GPREC ,KNL
138
LENDING TREE
Another common practice is for test suites to be developed during technical support
escalation procedures. Such tests are then maintained in regression testing suites to ensure
that future updates to the software don't repeat any of the known mistakes.
It is commonly believed that the earlier a defect is found the cheaper it is to fix it.
Time Detected
Time Introduced Requirements Architecture Construction System
Test Post-Release
Requirements 1 3 5-10 10 10-100
Architecture - 1 10 15 25-100
Construction - - 1 10 10-25
In counterpoint, some emerging software disciplines such as extreme programming
and the agile software development movement, adhere to a "test-driven software
development" model. In this process unit tests are written first, by the programmers (often
with pair programming in the extreme programming methodology). Of course these tests fail
initially; as they are expected to. Then as code is written it passes incrementally larger
portions of the test suites. The test suites are continuously updated as new failure conditions
and corner cases are discovered, and they are integrated with any regression tests that are
developed. Unit tests are maintained along with the rest of the software source code and
generally integrated into the build process (with inherently interactive tests being relegated to
a partially manual build acceptance process). The software, tools, samples of data input and
output, and configurations are all referred to collectively as a test harness.
History
The separation of debugging from testing was initially introduced by Glenford J.
Myers in his 1978 book the "Art of Software Testing". Although his attention was on
breakage testing it illustrated the desire of the software engineering community to separate
fundamental development activities, such as debugging, from that of verification. Drs. Dave
Gelperin and William C. Hetzel classified in 1988 the phases and goals in software testing as
follows: until 1956 it was the debugging oriented period, where testing was often associated
to debugging: there was no clear difference between testing and debugging. From 1957-1978
there was the demonstration oriented period where debugging and testing was distinguished
Dept. of CSE, GPREC ,KNL
139
LENDING TREE
now - in this period it was shown, that software satisfies the requirements. The time between
1979-1982 is announced as the destruction oriented period, where the goal was to find errors.
1983-1987 is classified as the evaluation oriented period: intention here is that during the
software lifecycle a product evaluation is provided and measuring quality. From 1988 on it
was seen as prevention oriented period where tests were to demonstrate that software satisfies
its specification, to detect faults and to prevent faults. Dr. Gelperin chaired the IEEE 829-
1988 (Test Documentation Standard) with Dr. Hetzel writing the book "The Complete Guide
of Software Testing". Both works were pivotal in to today's testing culture and remain a
consistent source of reference. Dr. Gelperin and Jerry E. Durant also went on to develop High
Impact Inspection Technology that builds upon traditional Inspections but utilizes a test
driven additive.
6.2 White-box and black-box testing
To meet Wikipedia's quality standards, this section may require cleanup.
Please discuss this issue on the talk page, and/or replace this tag with a more specific
message.
White box and black box testing are terms used to describe the point of view a test engineer
takes when designing test cases. Black box being an external view of the test object and white
box being an internal view. Software testing is partly intuitive, but largely systematic. Good
testing involves much more than just running the program a few times to see whether it
works. Thorough analysis of the program under test, backed by a broad knowledge of testing
techniques and tools are prerequisites to systematic testing. Software Testing is the process of
executing software in a controlled manner; in order to answer the question “Does this
software behave as specified?” Software testing is used in association with Verification and
Validation. Verification is the checking of or testing of items, including software, for
conformance and consistency with an associated specification. Software testing is just one
kind of verification, which also uses techniques as reviews, inspections, walk-through.
Validation is the process of checking what has been specified is what the user actually
wanted.
Validation: Are we doing the right job?
Verification: Are we doing the job right?
Dept. of CSE, GPREC ,KNL
140
LENDING TREE
In order to achieve consistency in the Testing style, it is imperative to have and follow a
set of testing principles. This enhances the efficiency of testing within SQA team members
and thus contributes to increased productivity. The purpose of this document is to provide
overview of the testing, plus the techniques.
At SDEI, 3 levels of software testing is done at various SDLC phases
Unit Testing: in which each unit (basic component) of the software is tested to verify
that the detailed design for the unit has been correctly implemented
Integration testing: in which progressively larger groups of tested software
components corresponding to elements of the architectural design are integrated and
tested until the software works as a whole.
System testing: in which the software is integrated to the overall product and tested to
show that all requirements are met
A further level of testing is also done, in accordance with requirements:
Acceptance testing: upon which the acceptance of the complete software is based. The
clients often do this.
Regression testing: is used to refer the repetition of the earlier successful tests to
ensure that changes made in the software have not introduced new bugs/side effects.
In recent years the term grey box testing has come into common usage. The typical grey
box tester is permitted to set up or manipulate the testing environment, like seeding a
database, and can view the state of the product after his actions, like performing a SQL query
on the database to be certain of the values of columns. It is used almost exclusively of client-
server testers or others who use a database as a repository of information, but can also apply
to a tester who has to manipulate XML files (DTD or an actual XML file) or configuration
files directly. It can also be used of testers who know the internal workings or algorithm of
the software under test and can write tests specifically for the anticipated results. For
example, testing a data warehouse implementation involves loading the target database with
information, and verifying the correctness of data population and loading of data into the
correct tables.
Dept. of CSE, GPREC ,KNL
141
LENDING TREE
6.3 Test levels
Unit testing tests the minimal software component and sub-component or modules by
the programmers.
Integration testing exposes defects in the interfaces and interaction between integrated
components (modules).
Functional testing tests the product according to programmable work.
System testing tests an integrated system to verify/validate that it meets its
requirements.
Acceptance testing testing can be conducted by the client. It allows the end-user or
customer or client to decide whether or not to accept the product. Acceptance testing
may be performed after the testing and before the implementation phase. See also
Development stage
o Alpha testing is simulated or actual operational testing by potential
users/customers or an independent test team at the developers' site. Alpha
testing is often employed for off-the-shelf software as a form of internal
acceptance testing, before the software goes to beta testing.
o Beta testing comes after alpha testing. Versions of the software, known as beta
versions, are released to a limited audience outside of the company. The
software is released to groups of people so that further testing can ensure the
product has few faults or bugs. Sometimes, beta versions are made available to
the open public to increase the feedback field to a maximal number of future
users.
It should be noted that although both Alpha and Beta are referred to as testing it is in
fact use emersion. The rigors that are applied are often unsystematic and many of the basic
tenets of testing process are not used. The Alpha and Beta period provides insight into
environmental and utilization conditions that can impact the software.
After modifying software, either for a change in functionality or to fix defects, a
regression test re-runs previously passing tests on the modified software to ensure that the
modifications haven't unintentionally caused a regression of previous functionality.
Dept. of CSE, GPREC ,KNL
142
LENDING TREE
Regression testing can be performed at any or all of the above test levels. These regression
tests are often automated.
Test cases, suites, scripts and scenarios
A test case is a software testing document, which consists of event, action, input,
output, expected result and actual result. Clinically defined (IEEE 829-1998) a test case is an
input and an expected result. This can be as pragmatic as 'for condition x your derived result
is y', whereas other test cases described in more detail the input scenario and what results
might be expected. It can occasionally be a series of steps (but often steps are contained in a
separate test procedure that can be exercised against multiple test cases, as a matter of
economy) but with one expected result or expected outcome. The optional fields are a test
case ID, test step or order of execution number, related requirement(s), depth, test category,
author, and check boxes for whether the test is automatable and has been automated. Larger
test cases may also contain prerequisite states or steps, and descriptions. A test case should
also contain a place for the actual result. These steps can be stored in a word processor
document, spreadsheet, database or other common repository. In a database system, you may
also be able to see past test results and who generated the results and the system configuration
used to generate those results. These past results would usually be stored in a separate table.
The term test script is the combination of a test case, test procedure and test data.
Initially the term was derived from the byproduct of work created by automated regression
test tools. Today, test scripts can be manual, automated or a combination of both.
The most common term for a collection of test cases is a test suite. The test suite often
also contains more detailed instructions or goals for each collection of test cases. It definitely
contains a section where the tester identifies the system configuration used during testing. A
group of test cases may also contain prerequisite states or steps, and descriptions of the
following tests. Collections of test cases are sometimes incorrectly termed a test plan. They
might correctly be called a test specification. If sequence is specified, it can be called a test
script, scenario or procedure.
Dept. of CSE, GPREC ,KNL
143
LENDING TREE
A sample testing cycle
Although testing varies between organizations, there is a cycle to testing:
1. Requirements Analysis: Testing should begin in the requirements phase of the
software development life cycle.
During the design phase, testers work with developers in determining what aspects of
a design are testable and under what parameter those tests work.
2. Test Planning: Test Strategy, Test Plan(s), Test Bed creation.
3. Test Development: Test Procedures, Test Scenarios, Test Cases, Test Scripts to use in
testing software.
4. Test Execution: Testers execute the software based on the plans and tests and report
any errors found to the development team.
5. Test Reporting: Once testing is completed, testers generate metrics and make final
reports on their test effort and whether or not the software tested is ready for release.
6. Retesting the Defects
Not all errors or defects reported must be fixed by a software development team. Some
may be caused by errors in configuring the test software to match the development or
production environment. Some defects can be handled by a workaround in the production
environment. Others might be deferred to future releases of the software, or the deficiency
might be accepted by the business user. There are yet other defects that may be rejected by
the development team (of course, with due reason) if they deem it inappropriate to be called a
defect.
Testing is the major quality measure employed during the software engineering
development. Its basic function is to detect error in the software. Testing is necessary for the
proper functioning of the system. Testing has to be done at four levels.
Unit Testing
Dept. of CSE, GPREC ,KNL
144
LENDING TREE
Unit testing focuses verification effort on the smallest unit of the software, design the
module. Here, using the detail design as a guide, important control paths are tested to uncover
errors within the boundary of the module. Unit testing is always white-box oriented, and the
step can be conducted in parallel for multiple modules. .
Integration Testing
Integration testing is a systematic technique for constructing the program structure
while at the same time conducting tests to uncover errors, associated with interfacing .The
objective is to take the unit tested modules and build program structure that has been directed
by the design.
Validation Testing
Validation testing demonstrates the traces the requirements of the software .This can
be achieved through a series of black box tests.
System Testing
System testing is actually a series of different tests whose primary purpose is to fully
exercise the computer-based system. Although each test has a different purpose, all works
should verify that all system elements have been properly integrated and perform allocated
functions. The various tests include recovery testing, stress testing, and perform testing.
Maintenance:
Corrective maintenance
This acts to correct errors that are uncovered after the software is in use.
Adaptive Maintenance
This is applied when changes is the external environment precipitate modifications to
software.
Preventive maintenance
This improves future maintainability and reliability and provides basis for future
enhancements.
Dept. of CSE, GPREC ,KNL
145
LENDING TREE
FUTURE ENHANCEMENTS
Dept. of CSE, GPREC ,KNL
146
LENDING TREE
7. FUTURE ENHANCEMENT
The project Cyber Contributing Trees can be further enhanced to make more
sophisticated system which accompanies the following features.
provide online payment to the customer
Sending the SMS to the customer regarding the status of loan
Sending the mail notification to the customers regarding the loan term payments with this alerting the customer about the payment
Sending the mail notifications regarding pending applications to corresponding employee in the department with application link.It will reduce the process time and easy to access the application
So far Here the existing system is a manual one using which the banking agent can’t
maintain the sharing effectively across different branches with proper security and can’t track
details easily. It doesn’t provide proper co-ordination between different departments of the
company. It doesn’t allow the customer to check the status of his file in proper way which
leads customer dis-satisfaction.
The online automated system with web-based architecture can support issues like the system
maintains the information related different departments and stored at a central DB, which
leads easy accessibility and consistency.Interest rates of different banks and the other details
are also available at the click of a mouse.Customer can apply for a loan and track his file
details from online.The decision process is faster and more consistentProvides good
communication between two departments.Provides a facility to generate the reports very
easily.
Dept. of CSE, GPREC ,KNL
147
LENDING TREE
IMPLEMENTATION
SCREEN SHOTS
Dept. of CSE, GPREC ,KNL
148
LENDING TREE
8. IMPLEMENTATION SCREEN SHOTS
Dept. of CSE, GPREC ,KNL
149
LENDING TREE
Dept. of CSE, GPREC ,KNL
150
LENDING TREE
Dept. of CSE, GPREC ,KNL
151
LENDING TREE
Dept. of CSE, GPREC ,KNL
152
LENDING TREE
Dept. of CSE, GPREC ,KNL
153
LENDING TREE
Dept. of CSE, GPREC ,KNL
154
LENDING TREE
Dept. of CSE, GPREC ,KNL
155
LENDING TREE
Dept. of CSE, GPREC ,KNL
156
LENDING TREE
Dept. of CSE, GPREC ,KNL
157
LENDING TREE
Dept. of CSE, GPREC ,KNL
158
LENDING TREE
Dept. of CSE, GPREC ,KNL
159
LENDING TREE
Dept. of CSE, GPREC ,KNL
160
LENDING TREE
Dept. of CSE, GPREC ,KNL
161
LENDING TREE
Dept. of CSE, GPREC ,KNL
162
LENDING TREE
Dept. of CSE, GPREC ,KNL
163
LENDING TREE
Dept. of CSE, GPREC ,KNL
164
LENDING TREE
Dept. of CSE, GPREC ,KNL
165
LENDING TREE
Dept. of CSE, GPREC ,KNL
166
LENDING TREE
Dept. of CSE, GPREC ,KNL
167
LENDING TREE
Dept. of CSE, GPREC ,KNL
168
LENDING TREE
Dept. of CSE, GPREC ,KNL
169
LENDING TREE
Dept. of CSE, GPREC ,KNL
170
LENDING TREE
Dept. of CSE, GPREC ,KNL
171
LENDING TREE
Dept. of CSE, GPREC ,KNL
172
LENDING TREE
Dept. of CSE, GPREC ,KNL
173
LENDING TREE
Dept. of CSE, GPREC ,KNL
174
LENDING TREE
Dept. of CSE, GPREC ,KNL
175
LENDING TREE
Dept. of CSE, GPREC ,KNL
176
LENDING TREE
Dept. of CSE, GPREC ,KNL
177
LENDING TREE
Dept. of CSE, GPREC ,KNL
178
LENDING TREE
Dept. of CSE, GPREC ,KNL
179
LENDING TREE
Dept. of CSE, GPREC ,KNL
180
LENDING TREE
Dept. of CSE, GPREC ,KNL
181
LENDING TREE
Dept. of CSE, GPREC ,KNL
182
LENDING TREE
Dept. of CSE, GPREC ,KNL
183
LENDING TREE
Dept. of CSE, GPREC ,KNL
184
LENDING TREE
Dept. of CSE, GPREC ,KNL
185
LENDING TREE
Dept. of CSE, GPREC ,KNL
186
LENDING TREE
Dept. of CSE, GPREC ,KNL
187
LENDING TREE
Dept. of CSE, GPREC ,KNL
188
LENDING TREE
Dept. of CSE, GPREC ,KNL
189
LENDING TREE
Dept. of CSE, GPREC ,KNL
190
LENDING TREE
Dept. of CSE, GPREC ,KNL
191
LENDING TREE
Dept. of CSE, GPREC ,KNL
192
LENDING TREE
Dept. of CSE, GPREC ,KNL
193
LENDING TREE
Dept. of CSE, GPREC ,KNL
194
LENDING TREE
Dept. of CSE, GPREC ,KNL
195
LENDING TREE
Dept. of CSE, GPREC ,KNL
196
LENDING TREE
Dept. of CSE, GPREC ,KNL
197
LENDING TREE
Dept. of CSE, GPREC ,KNL
198
LENDING TREE
Dept. of CSE, GPREC ,KNL
199
LENDING TREE
Dept. of CSE, GPREC ,KNL
200
LENDING TREE
Dept. of CSE, GPREC ,KNL
201
LENDING TREE
Dept. of CSE, GPREC ,KNL
202
LENDING TREE
CONCLUSION
Dept. of CSE, GPREC ,KNL
203
LENDING TREE
9. CONCLUSION
Here by we conclude that the project Cyber Contributing Trees
Has been developed and deployed as per requirements stated by the Customer.
The system maintains the information related to different departments and stored at a central data base whih leads easy accessibility and consistency
Any specification-untraced errors will be concentrated in the coming versions, which are planned to be developed in the near future.
The application of Cyber Contributing Trees system needs more elaborative technicality for its inception and evolution.
Dept. of CSE, GPREC ,KNL
204
LENDING TREE
BIBLIOGRAPHY
Dept. of CSE, GPREC ,KNL
205
LENDING TREE
10. BIBLIOGRAPHY
Good Teachers are worth more than thousand books, we have them in Our
Department.
BOOKS:
HTML
1.HTML Black Book by Holzner
JAVA TECHNOLOGIES
1.JAVA Complete Reference
2.Java Script Programming by Yehuda Shiran
3.Mastering JAVA Security
4.JAVA2 Networking by Pistoria
5.JAVA Security by Scotl oaks
6.Head First EJB Sierra Bates
7.J2EE Professional by Shadab siddiqui
8.JAVA server pages by Larne Pekowsley
9.JAVA Server pages by Nick Todd
ORACLE
1.PL/SQL Programming by Scott Urman
2.SQL complete reference by Livion
JDBC
1.Java Database Programming with JDBC by Patel moss.
2.Software Engineering by Roger Pressman
Dept. of CSE, GPREC ,KNL
206
LENDING TREE
Dept. of CSE, GPREC ,KNL