|
Building Java HTTP servlets
This tutorial teaches basic concepts about servlets: what, why, and how. It also gives you some practical experience writing simple HTTP servlets. The tutorial includes three servlets (and their code) to demonstrate typical scenarios.
|
|
PHP, Perl, Java servlets -- Which one's right for you?
Still can't decide whether to use PHP scripts, Perl CGIs, or Java servlets for your next Web development project? This article will help you decide by providing a side-by-side comparison of the functioning source code of all three languages. The three simple example programs provided take you from the most basic server-side scripts through object orientation to a simple Web storefront presenting product information to a user. Reading this article will give you a good idea of the difference between these three languages, and a better idea of which one is right for you.
|
|
Use Microsoft's Internet Information Server as a Java servlet engine
Are you a Java fanatic trapped in a Microsoft-only shop? Using just Microsoft's Internet Information Server and pure Java, you can run Java servlets without the help of any third-party products. Don't abandon the Microsoft ship just yet -- try the method described in this article and still maintain proprietary-free portable code.
|
|
Introduction to Server Side Programming
The Internet, with particular respect to the world wide web, is growing at a tremendous rate. With over one million new pages going live every day, each one vying for our attention, greater emphasis is being placed on the servers delivering this information. The Internet is no longer a colorful brochure, where the user merely flicks from page to page. It has become a fully interactive experience, complete with inline video and stereo sound. However, not everyone can enjoy the rich bandwidth that is required to enjoy streamed video.
|
|
Servlet introduction
A servlet is a small program that runs in response to a client connection to a server. Regardless of the type of server (web server, mail server, or any other server), a servlet is intended to extend a server's functionality. Think of a servlet as a server-side applet. In much the same way an applet extends the functionality of a browser, a servlet extends a server.
|
|
An Introduction to Java Servlets
Java servlets are making headlines these days, claiming to solve many of the problems associated with CGI and proprietary server APIs. In this article I will describe the overall servlet architecture and what you need to develop your application with servlets. I will use several code examples to show you how to use the Servlet API, and compare it with CGI and proprietary server APIs where appropriate.
March 10, 1999
|
|
Enterprise Java
JSPs or Servlets--Which Architecture is Right for You?
SINCE THE INTRODUCTION of JSP technology, two architectures have emerged for building server-side Web applications in Java. The first involves JSPs only, and the second uses JSPs and Servlets together. Referred to as Model 1 and Model 2 architectures, respectively, each model has its advantages and disadvantages. The Model 2 architecture has become quite popular recently, and has received a great deal of coverage on the Web and in trade magazines. In fact, many developers mistakenly believe this architecture has replaced the Model 1 architecture and is the "right" way to use JSPs.
|
|
Take control of the servlet environment, Part 1
The ever-popular servlet cleanly and simply develops and deploys Web-based applications. However, although Java is platform independent, the Web as a whole is not. The language and the servlet API do not provide such niceties as optional session-persistence schemas (i.e., store in memory, in a database, or in a cookie), and they don't easily accommodate ad hoc solutions to shortcomings in cookie handling.
|
|
Take control of the servlet environment, Part 2
In this installment, Thomas Davis and Craig Walker demonstrate the power of the RSEF framework by implementing a wrapper that gives you greater control over session management. Session state can be stored in the browser, in the server's memory, or in the database.
|
|
Take control of the servlet environment, Part 3
Browser cookies are wolves in sheep's clothing. Developers use these incredibly simple and useful mechanisms to create Web-based applications that rely on the persistence of sessions. However, cookies feature an odd little problem in relation to subdomains.
|
|
Solve your servlet-based presentation problems
Should you use raw servlets, JSP pages, servlets with a templating engine, an automatic HTML-to-Java compiler, or XSL stylesheets to implement content presentation in your next thin-client application?
|
|
First Servlets
Here's the outline of a basic servlet that handles GET requests. GET requests, for those unfamiliar with HTTP, are requests made by browsers when the user types in a URL on the address line, follows a link from a Web page, or makes an HTML form that does not specify a METHOD. Servlets can also very easily handle POST requests, which are generated when someone creates an HTML form that specifies METHOD="POST".
|
|
Servlets and JSP: An Overview
Servlets are Java technology's answer to CGI programming.
|
|
Trail: Servlets
The Servlets trail teaches you about servlets, the bodies of code that run inside servers, and extend their functionality. For example, servlets offer an efficient platform-independent replacement for CGI scripts. Servers that can host servlets are Java-enabled servers that respond to client requests.
|
|
What are Java Servlets?
Servlets are Java technology's answer to CGI programming. They are programs that run on a Web server and build Web pages.
|
|
How to get started with server-side Java
By now I'm sure you're familiar with client-side Java. You've probably even written your fair share of applets. But are you familiar with server-side Java? Have you written a server-side applet?
|
|
Write CGI programs in Java
Java makes a good language choice for writing CGI programs because it is a purely object-oriented language and offers connectivity to distributed objects and database management systems. Object-oriented languages are more suitable for the creation and maintenance of larger or more complex CGI programs. Here you'll find a library of functions that will help you start writing Java CGI programs right away.
|
|
Servlet Essentials
This document explains Servlets and provides a step-by-step tutorial for writing HTTP Servlets with complete source code for the example Servlets. The tutorial and the "Advanced Topics" chapter cover all facets of Servlet programming from a simple "Hello World" Servlet to advanced Servlet features like session tracking and Cookies. There are also appendices on compiling and running Servlets. The reader is assumed to have some basic knowledge of HTML and Java programming.
|
|
Replacing Your CGIs with Java Servlets
Servlet's portability makes them a powerful alternative to CGIs. Try this basic code and see whether servelets will work for your sites.
|