architect a system with JavaServer Pages, Servlets, and JavaBeans
12255architect a system with JavaServer Pages, Servlets, and JavaBeanshttp://www.stardeveloper.com/asp_bk_projsp_1.aspThis chapter will examine a variety of ways to architect a system with JavaServer Pages, Servlets, and JavaBeans. We will see a series of different architectures, each a development of the one before. The diagram below shows this process in outline; the individual parts of the diagram will be explained in turn later in the chapter.Java > Tips and Tutorials > JSP and Servlets > Introduction to ServletsOct 12, 2006
This tutorial shows you how to write your first serlvet by introducing several key elements such as Basic Servlet Structure, A Simple Servlet Generating Plain Text, Compiling and Invoking the Servlet, A Simple Servlet Generating HTML, and Some Simple HTML Utilities for Servlets.
Dynamic XML document construction with the PHP DOM
When working with XML-based applications, developers often find themselves facing the requirement to generate XML-encoded data structures on the fly. This tutorial introduces you to the main functions in PHP's DOM API, showing you how to programmatically generate a complete well-formed XML document from scratch and save it to disk.
You normally give your file a .jsp extension, and typically install it in any place you could place a normal Web page. Although what you write often looks more like a regular HTML file than a servlet, behind the scenes, the JSP page just gets converted to a normal servlet, with the static HTML simply being printed to the output stream associated with the servlet's service method. This is normally done the first time the page is requested, and developers can simply request the page themselves when first installing it if they want to be sure that the first real user doesn't get a momentary delay when the JSP page is translated to a servlet and the servlet is compiled and loaded. Note also that many Web servers let you define aliases that so that a URL that appears to reference an HTML file really points to a servlet or JSP page.
I assume that you're familiar with HTTP and CGI or a proprietary server API like NSAPI or ISAPI. I also assume that you are somewhat familiar with Java programming or some other object-oriented language, such as C++. Even if you're not a Java programmer you should be able to appreciate the benefits of servlets reading this article, but before you develop your own servlets I recommend that you first learn the Java basics.
This chapter will examine a variety of ways to architect a system with JavaServer Pages, Servlets, and JavaBeans. We will see a series of different architectures, each a development of the one before. The diagram below shows this process in outline; the individual parts of the diagram will be explained in turn later in the chapter.
Joining mailing list will entitle you
to receive occasional emails informing you of news and
updates to the site and any special offers that may be
of interest to you.