Adobe 38000382 Getting Started Guide - Page 54
Creating servlets, JRun support for servlets
UPC - 718659575946
View all Adobe 38000382 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 54 highlights
Creating servlets JRun provides two methods for creating servlets: writing Java programs and writing JSPs. When you write Java programs, you have full access to the data-processing capabilities and benefits of Java. Typically, you use Java to write servlets that perform complex data manipulation such as database access. You can also create servlets from JSPs, which are a type of server-side scripting that combines HTML and scripting code. JSPs provide access to the full power of the Java programming language, but use a simple mechanism to embed Java code within HTML code. They are often used to implement servlets that produce HTML results returned directly to a client browser. This book describes both methods of servlet creation. JRun support for servlets One of the primary reasons to use JRun to work with servlets is that not all web servers have implemented servlet functionality. JRun extends your web server to handle servlets. Even if your web server has the capability to run servlets, the server's implementation of the servlet standard might be specific to that server or the hardware platform hosting the server. JRun offers a completely portable servlet solution. You can use any servlet that you write using JRun on any other web server that uses JRun, or any web server that supports the J2EE servlet standard. JRun supports the Java Servlet 2.3 specification, which introduces two important features: servlet event listeners and filters. JRun also provides a ready-to-use Java web server that you can use to develop servlets, even if you do not have access to an existing web server. You can create, test, and debug servlets using the built-in JRun Web Server, and then deploy them on your production server with guaranteed compatibility. JRun support for JSPs JRun support for JSPs includes all the capabilities of page compilation as defined by the Java web server and the current JSP 1.2 specification. JRun provides the following features: • Complete compatibility with JSP 1.2 specification • Full support for the JSP tag • Support for extending JSPs for true object-oriented page design • Support for recursive dependent file compiling • Support for presentation templates • Support for all Java Virtual Machines (JVMs) and Java compilers The JSP 1.2 specification includes the following additions: • Two tag types: IterationTag and TryCatchFinallyTag • An XML syntax for JSP pages (JSPX), which makes it easier to automate the authoring of JSP pages • A number of enhancements to Tag Library Descriptors (TLD) that improve portability and better support authoring tools For more information, see JRun Programmer's Guide. 40 Chapter 4 Using Servlets and JSP