Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

  Tutorial: Techniques used for Generating Dynamic Content Using Java Servlets.

Techniques used for Generating Dynamic Content Using Java Servlets. Techniques used for Generating Dynamic Content Common Gateway Interface (CGI) For any web application high performance and timely delivery are key ingredients to competitive

Tutorial Details:

success.
Earlier CGI was developed to provide the server-side capability to web application. Although CGI played a major role in the explosion of Internet, it's performance, scalability and usability issues make it less than the optimal solution. CGI runs in a separate process separated from the web server and it requires more hardware and software resources. CGI programs are slow because for each a new call is to the CGI program, which subsequently runs in a separate process. If your program needs to interact with Web Server, using CGI program you can't accomplish it as CGI's separate process can't interact with Web Server.
Scripting Languages
To solve all these problems several companies have developed server-side scripting languages. These scripts are popular and allows developers to develop web applications that generates dynamic pages. Microsoft has developed ASP (Active Server Pages) for IIS Server and Cold Fusion is product of Allaire. Web Server interprets these scripts when the pages are served. These scripting languages provide good performance but imposes the portability issues as they are limited to particular group of products or operating system.
Server plug-in technologies
Server side plug-in technology provide very good performance. NSAPI is the plug-in from Netscape and ISAPI is from Microsoft. Programming using these plug-in are difficult and also learning curve is also very high.
Java Servlets
Java Servlets eliminated all these problems. The first truly platform independent web development technique, Java Servlets breaks down all traditional barriers giving you flexibility to run your Web Application on any Web Server.
Built from the ground up using Sun's write once run anywhere technology, Java Servlets provide excellent framework to develop server-side application without sacrificing functionality or performance.
With Java Servlets you can finally develop your web application that can run on any platform. Java Servlets have number of advantages over CGI and other API's. They are:
Platform Independence:
This is very important feature of Servlets, which makes them portable across platforms and across different Web Servers, because the Servlet API defines a standard interface between a Servlet and a Web Server.
Persistent:
Java Servlets are loaded once by a Web Server when it receives a request from the client and serving the subsequent request is just a matter of creating new thread. Servlets can maintain system resources (e.g.. database connectivity etc.) between requests, thus making it easy to share resources like database connectivity.
Familiarity:
Servlets are written in Java Language, so anyone having some programming knowledge in Java can learn Servlets easily. This saves saves the valuable time of learning a new programming language.
In the next section we learn about JDBC and see how to use JDBC to connect our search engine to database.


 

Rate Tutorial:
http://www.roseindia.net/sourcecode/searchengine/001.shtml

Read Tutorial at: Click here to view the tutorial

Rate Tutorial:
Techniques used for Generating Dynamic Content Using Java Servlets.

View Tutorial:
Techniques used for Generating Dynamic Content Using Java Servlets.

Related Tutorials:

Build servlet-based enterprise Web applications - JavaWorld - December 1998
Build servlet-based enterprise Web applications - JavaWorld - December 1998
 
Understanding JavaServer Pages Model 2 architecture - JavaWorld December 1999
Understanding JavaServer Pages Model 2 architecture - JavaWorld December 1999
 
Create dynamic images in Java servlets - JavaWorld May 2000
Create dynamic images in Java servlets - JavaWorld May 2000
 
Which JSP book serves up the best lesson?
Which JSP bookAs for Web servers/databases, just mentioning a server in the book is not sufficient to be listed here.
 
Solve your servlet-based presentation problems - JavaWorld November 2000
Solve your servlet-based presentation problems - JavaWorld November 2000
 
Servlet 2.3: New features exposed - JavaWorld January 2001
Servlet 2.3: New features exposed - JavaWorld January 2001
 
Introducing the Portlet Specification, Part 1
Introducing the Get your feet wet with the specification's underlying terms and concepts
 
Interface Tool for Java
Interface Tool for Java Interface Tool for Java is a tool that allows Java programs to communicate with ActiveX objects. It allows easy integration of ActiveX objects into a Java Environment
 
Internet & Intranets: Java Servlets
What are servlets? "Servlets are modules that extend request/response-oriented servers, such as Java-enabled web servers. For example, a servlet might be responsible for taking data in an HTML order-entry form and applying the business logic used to upd
 
Java Servlets: Design Issues
This article covers the principal concepts associated with servlets. This article examines some of the design issues, and offers some guidelines on the applicability of Java servlets for web based application development.
 
JSP (JavaServer Pages) is a standard for combining Java and HTML to provide dynamic content in web pages.
With JSP, you embed Java code in HTML using special JSP tags similar to HTML tags. You install the JSP page, which has a .jsp extension, into the WebLogic Server document root, just as you would a static HTML page. When WebLogic Server serves a JSP page..
 
alaJSP JSP-similar processor
It is yet another servlet based preprocessor. The common idea behind that line of the products (see ColdCafe site) is splitting static HTML presentation which done by designers and dynamic proceed developed by programmers.
 
Introduction to Servlets, JSP, and Servlet Engines
Servlets are the Java Technologies' answer to CGI programming. They are programs which run on the server side and generate dynamic content. Why would one prefer to use Servlets over traditional CGI programming?
 
Using tiles-defs.xml in Tiles Application
In this lesson you will learn how to define and use the "plugin" definitation in tiles-defs.xml file.
 
Caching Dynamic Content with JSP 2.0
Server-side caching is a powerful and popular technique for improving the performance of server-side applications. After all, why compute twice what you can compute once and hang on to? Andrei Cioroianu shows you how to exploit this technique in JSP 2.0.
 
Developing Distributed application using Enterprise Java Beans, J2EE Architecture, EJB Tutorial, WebLogic Tutorial.
Developing Distributed application using Enterprise Java Beans, J2EE Architecture, EJB Tutorial, WebLogic Tutorial. Distributed Architecture Two-tier application: In the past two-tier applications were used. Two-tier applications are also know as
 
JSP FUNDAMENTALS
JSP FUNDAMENTALS JSP FUNDAMENTALS By: Hrishikesh Deshpande Introduction : JSP termed as Java Server Pages is a technology introduced by Sun Microsystems Inc. to develop the web application in more efficient way than Servlets. It has got many
 
Techniques used for Generating Dynamic Content Using Java Servlets.
Techniques used for Generating Dynamic Content Using Java Servlets. Techniques used for Generating Dynamic Content Common Gateway Interface (CGI) For any web application high performance and timely delivery are key ingredients to competitive
 
Building Search Engine Applications Using Servlets !
Building Search Engine Applications Using Servlets ! Building Search Engine Applications Using Servlets Please visit http://www.webappcabaret.com/javadevelopers/search to see running copy of our search engine. Introduction This tutorial takes
 
Brief Introduction to the Web Application development
Brief Introduction to the Web Application development Brief Introduction to the Web Application development Gone are the days of serving static HTML pages to the world. Now a days most website serves the dynamic pages based on the user and their
 
Site navigation
 

 

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2006. All rights reserved.