Introduction to JSP

JSP provide a Java(TM)-based solution used to address the problems currently associated with doing server-side programming, including inextensible scripting solutions, platform specific APIs, and incomplete interfaces.

JSP internally uses Servlet classes to work. For every JSP page, a class that uses Servlet API is created. Servlets are objects that conform to a specific interface that can be plugged into a Java based server. Servlets are to the server-side what applets are to the client-side -- object byte codes that can be dynamically loaded off the net. They differ from applets in that they are faceless objects (without graphics or a GUI component). They serve as a platform independent, dynamically-loadable, pluggable helper byte code objects on the server side that can be used to dynamically extend server-side functionality.

What is a JSP?

JSPs are modules that extend request/response-oriented servers, such as Java-enabled web servers. For example, a JSP page might be responsible for taking data in an HTML order-entry form and applying the business logic used to update a company's order database.

JSP page exists at the server side and applets are at browsers. Unlike applets, however, JSP has no graphical user interface.

JSP can be embedded in many different servers because the JSP API, which you use to write JSP pages, assumes nothing about the server's environment or protocol. JSP pages have become most widely used within HTTP servers; many web servers support the Servlet API.

Use JSP pages instead of CGI Scripts!

JSP pages are an effective replacement for CGI scripts. They provide a way to generate dynamic documents that is both easier to write and faster to run. JSPs also address the problem of doing server-side programming with platform-specific APIs: they are easy to write because it is just scripting.

So use JSP pages to handle HTTP client requests. For example, JSP pages can process data POSTed over HTTPS (Secured protocol) using a HTML form, including purchase order or credit card data. A JSP page could be part of an order-entry and processing system, working with product and inventory databases, and perhaps an on-line payment system.

Other Uses for JSPs

Here are a few more of the many applications for JSPs:

  • A JSP page has intrinsic objects such as request, response, out, session and application. We can use these object directly in a JSP page for generating Dynamic Pages.
  • Allowing collaboration between people. A JSP page can handle multiple requests concurrently, and can synchronize requests. This allows JSPs to support systems suchason-lineconferencing.
Forwarding requests. JSP page can forward requests to other servers and JSP pages. Thus JSP pages can be used to balance load among several servers that mirror the same content, and to partition a single logical service over several servers, according to task type or organizational boundaries.

ONLINE TRAINING

Dear friends we are happy to announce that we entered in corporate training. For the past two years we trained many students, Employees as per industrial requirements. Now we are started online training session for who dont have enough time and who dont want to waste time to come to institutes for learning. We are offering online sessions for Windows server 2003, windows server 2008, MCSE, .NET, Java. MS SQL Server and many more. For more details about course and fee structure please



Followers

Google Pagerank Powered by  MyPagerank.Net