PLAGIARISM FREE WRITING SERVICE
We accept
MONEY BACK GUARANTEE
100%
QUALITY

An Overview Of Servlets And JSP Technology Computer Technology Essay

JDBC is a front-end tool allowing you to connect to a server and is similar to ODBC however, JDBC can connect only Java customer and it uses ODBC for the connectivity. JDBC is essentially a minimal level application coding interface. It is called a minimal level API since any data manipulation, storage space and retrieval needs to be done by the program itself. Some tools offering a higher level of abstraction is expected soon.

The next question is why we are in need of JDBC, after we have ODBC on hand. We can use the ODBC to connect to all or any the databases and ODBC is a successful technology. Problem for accomplishing this is ODBC provides 'C' words API, which uses pointer extensively, since Java open JDBC to match its needs.

Jdbc Drivers Tipes

There are various types of driver, recognized the sun such that each you have some unique features and facilitates a link with the databases.

JDBC drivers fit into of four categories:

The JDBC-ODBC bridge provides JDBC gain access to via most ODBC drivers. Remember that some ODBC binary code and perhaps database consumer code should be filled on every customer machine which uses this diver, so these kind of drivers are more desirable in corporate sites, or for the applications in server code that is written in java 3-tier architecture.

A local-API partly-java driver change JDBC phone calls to the client API for DBMS or oracle Sybase Informix DB2. since, like bridge drivers these drivers needs binary code be packed on every consumer machine.

A world wide web protocol all java drivers explain JDBC message or calls into a DBMS-independent online protocol that transforms to a DBMS protocol through the server. This world wide web server middleware is competent to become a member of all java clients to different databases. The explicit protocol that is utilized depends on owner. Commonly it is the easiest JDBC choice. It is like the retailers for this solution may provide products that are suitable for the utilization of intranet. To support access to the internet for these products they need to need more extra requirements for security, access through firewalls, etc. many distributors are now accumulated JDBC driver for his or her present databases middleware products.

A local protocol driver

Jdbc Architecture

JDBC architecture is really as follows

JDBC Driver Manager

JDBC Diver

JDBC-ODBC Bridge

Application

JDBC Drivers Manager

Function of the driver manager is to determine available driver in the machine and connect the application to the correct database, every time a connection is requested. However, to help the drivers manager identify different types of motorists, each drivers should be authorized with the drivers manager.

JDBC Driver:

Function of the JDBC drivers is to accept the SQL message or calls from the application form and convert them into native cell phone calls to the databases, . However, in this process it may take help from some other motorists or even servers, which is determined by the type of JDBC drivers we are employing. It also is possible that the full total functionally of the databases server could be built into the drivers itself.

JDBC - ODBC Bridge:

Sun soft offers a special JDBC Drivers called JDBC-ODBC bridge that can be used to connect any existing data source, that is ODBC problem.

Servlet and JSP technology is among the most technology of preference for developing online stores, interactive Web applications, and other dynamic Web sites. Why? This section gives a high-level overview of the reasons for its reputation. Later chapters specific information on programming techniques.

A Servlet's Job

Servlet or java programs which operate on application servers, operates as middle layer among the requests coming from http Clients or web browsers and applications or database on the http server. Their work is to work on the following jobs.

Reading the use full information that is directed by the client.

The users generally go into this data in http from a web page. Even the info can be expected to come from an applet or custom http customer program. Chapter 4 discusses how servlet read this data.

Reading HTTP requests dispatched by the web browser.

This solo arrow implies that travelling from the client to the net server, but mainly they are two different types, the info which is joined by an individual in a form and the other you are behind-the-scenes HTTP information, both of these are very important. The HTTP information which contain cookies, reports about media and the strategies the internet browser can understand like compression.

Getting the results.

This process is necessary for, database to contact, to make an RMI or EJB call, to raise an internet service or focusing on replied data which is in a relational repository. But the data source may not run on http or go back brings about html, so the browser cannot directly package with the databases. Even if it could, for security reasons, you almost certainly would not want it to.

This discussion even can apply for other applications, so we are in need of the middle level to get the arriving data from http stream for the applications to put the leads to the document.

.

Sending the useful data to the clients:

The file can send in different types like (XML OR HTML), binary (GIF images), or in zip data files that is split together with other underlying format. Though HTML is a common format, servlet /JSP activity is for the results of HTML.

Send the implicit HTTP response data.

This explains about only an arrow going out of from the net middle coating (the servlet or JSP site) to the client. But there are two types of data delivered the document alone and last the views HTTP information. But these two types can affect the development, by mailing the HTTP data to the server or by preparing cookies and caching parameter yet others.

Features of JSP

JSP has an attractive option to other energetic scripting vocabulary by offering the following features:

Platform freedom:

The use of gives versatility to an online application by permitting its execution on any computer.

Enhanced performance:

The compilation process in JSP produces faster results or outcome.

Separation of reasoning from display:

The use of JSP allows the HTML-specific static content and a mixture of HTML, Java, and JSP-specific vibrant content to be put in split fillies.

Ease of administration

The use of JSP reduces the need for high-level specialized expertise, thereby assisting web designers, content makers, and content professionals to interact and develop Java-based applications in less time and with less work.

Ease of use:

All JSP applications operate on major web server and os's, including Microsoft IIS, Netscape venture server, I Entire world web server, and apache web server. These applications are available on Windows NT, house windows 2000, and solaris7.

Competing Products across Websites:

Competing products include energetic server pages (ASP), hypertext pre processor(PKP) and Java script.

JSP versus ASP:

ASP is the immediate contending technology from Microsoft. The active content of JSP is written in Java, in contrast to that of ASP, which is written using an ASP-specific terms, such as VBScript. As a result, complex applications may use the energy of Java to end result and embed Java components in JSP applications, second, JSP is portable to other os's and servers as opposed to the allegiance of ASP to house windows NT/2000and IIS.

JSP versus PHP:

PHP is similar to ASP and JSP to a certain degree. PHP is a free of charge, open-source, HTML-embedded, server-side scripting terminology, with basic HTML knowledge, however, a VBScript programmer can write ASP applications and a Java programmer can create JSP applications, whereas PHP requires learning an completely new terminology, second by virtue if the power of Java, JSP has usage of an extensive API for networking, database gain access to, and objects circulation.

In JSP there are two types of things.

Implicit objects

Explicit objects

Implicit items are automatically created.

Explicit objects are manufactured using activities.

Whenever a need has been designed for a JSP Web page, JSP page will create two types of things. These are:

Implicit objects

Explicit objects

Implicit items are automatically created by the JSP web designers may use this objects for his or her processing.

Explicit objects are created thought actions. Scripting code is employed to generate these explicit objects. Every explicit subject has some visible feature. Scripting elements can gain access to the explicit objects thought scripting-level parameters.

JSP defines several scopes for JSP objects.

Objects Scopes:

JSP defines several scopes for objects. Scopes are being used to indicate the context where the bean should be produced available.

Four types of scopes. They are:

1. Page

2. Request

3. Application

4. Session

While process the get, the JSP web page can create and /or the some Java things.

Scopes are being used to indicate the context in which the dean should be made available in JSP there are four scopes are available. They are:

Page:

It is the default scopes for all the Java items. It is used to point that the things are only available on the current webpage. After the response is repaid or the question is forwarded somewhere else all the thing reference, which has the page scope, will be released subject that contains

Page range is stored in the web page Content thing of the current page.

Request:

The request opportunity is used to point that the things are only available for the current consumer request. When the submission is forwarded to a source in the same runtime, the thing is still available. After the request is prepared, all the object reference, which has the request range, will be released. Objects that contain get scope will be released. Object personal references that contain need scope are stored in the request Object.

Session:

The session opportunity suggests that the available to all pages through the life of the existing session. All personal references to the objects shall be released after the associated period ends. References to things with session range are stored in the procedure objects from the page activation.

Application:

The application scope indicates that it's available to all internet pages that talk about the same framework object references that have the application range will be released when the runtime environment reclaims the servlet context objects references that contain the application range are stored are stored in the application objects from the site activation.

Directives And Activities:

JSP elements can be directives or activities. Directives elements provide global information for the translation phase. Actions elements give the request-processing stage. New action can be produced from the tag expansion mechanism.

JSP:

Elements can be directives or activities. Directive elements are used to provide global information, which is not dependent for any specific received by the JSP site. For instance directive elements may be used to include the external file inside the JSP Site.

Action elements provide information, which is dependent on the facts of the specific need received by the JSP webpage.

Directive elements provide information for the compilation/translation phase.

Action can create some objects and may provide to the scripting element. Action elements follow the syntax of XML elements.

JSP includes a tag expansion mechanism that allows the addition of new activities. Due to the device JSP can b easily portable. Activities can be custom-made to provide usage of the attribute values and also to their body. Custom action be nested and their physiques range from scripting elements.

ODBC:

Two different ways to access ODBC data resources with DAO the Microsoft Jet data source engine DBC direct Microsoft jet provides a broad range of efficiency. It handles many of the information on establishing and managing connection, translating concerns into a form suitable to the server, and controlling returned data in some instances, if you need to bypass the micro gentle Jet database engine unit and use DAO to make telephone calls right to the ODBC driver manager. This features is available through ODBC Direct.

The following steps offer a "quick start" to accessing ODBC data:

Use the ODBC databases administrator in the home windows control panel to create your ODBC databases and assign it a data

Source name (DSN)

In your Visual Basic code, arranged an ODBC hook up string that referrals the data source. The connect string is used to determine a connection to the info source

Create a new table def thing and establish it's hook up string to the worthiness specified in second step.

Append the desk to the desk defs collection

Open a record-set object on the linked stand. This record-set

7. Object has data in your OBDC data source and you will manipulate it using the properties and ways of a record-set subject.

More than 7 000 students trust us to do their work
90% of customers place more than 5 orders with us
Special price $5 /page
PLACE AN ORDER
Check the price
for your assignment
FREE