Developing Web Applications, Servlets, and Jsps for Oracle Weblogic Server 11G Release 1 (10.3.4) E13712-03

Developing Web Applications, Servlets, and Jsps for Oracle Weblogic Server 11G Release 1 (10.3.4) E13712-03

Oracle® Fusion Middleware Developing Web Applications, Servlets, and JSPs for Oracle WebLogic Server 11g Release 1 (10.3.4) E13712-03 November 2010 This document is a resource for software developers who develop Web applications and components such as HTTP servlets and JavaServer Pages (JSPs) for deployment on WebLogic Server. Oracle Fusion Middleware Developing Web Applications, Servlets, and JSPs for Oracle WebLogic Server, 11g Release 1 (10.3.4) E13712-03 Copyright © 2007, 2010, Oracle and/or its affiliates. All rights reserved. This software and related documentation are provided under a license agreement containing restrictions on use and disclosure and are protected by intellectual property laws. Except as expressly permitted in your license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license, transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means. Reverse engineering, disassembly, or decompilation of this software, unless required by law for interoperability, is prohibited. The information contained herein is subject to change without notice and is not warranted to be error-free. If you find any errors, please report them to us in writing. If this software or related documentation is delivered to the U.S. Government or anyone licensing it on behalf of the U.S. Government, the following notice is applicable: U.S. GOVERNMENT RIGHTS Programs, software, databases, and related documentation and technical data delivered to U.S. Government customers are "commercial computer software" or "commercial technical data" pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. As such, the use, duplication, disclosure, modification, and adaptation shall be subject to the restrictions and license terms set forth in the applicable Government contract, and, to the extent applicable by the terms of the Government contract, the additional rights set forth in FAR 52.227-19, Commercial Computer Software License (December 2007). Oracle USA, Inc., 500 Oracle Parkway, Redwood City, CA 94065. This software is developed for general use in a variety of information management applications. It is not developed or intended for use in any inherently dangerous applications, including applications which may create a risk of personal injury. If you use this software in dangerous applications, then you shall be responsible to take all appropriate fail-safe, backup, redundancy, and other measures to ensure the safe use of this software. Oracle Corporation and its affiliates disclaim any liability for any damages caused by use of this software in dangerous applications. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. This software and documentation may provide access to or information on content, products, and services from third parties. Oracle Corporation and its affiliates are not responsible for and expressly disclaim all warranties of any kind with respect to third-party content, products, and services. Oracle Corporation and its affiliates will not be responsible for any loss, costs, or damages incurred due to your access to or use of third-party content, products, or services. Contents Preface ............................................................................................................................................................... xiii Documentation Accessibility................................................................................................................... xiii Conventions ............................................................................................................................................... xiii 1 Introduction and Roadmap 1.1 Document Scope and Audience................................................................................................ 1-1 1.2 Guide To This Document........................................................................................................... 1-1 1.3 Related Documentation.............................................................................................................. 1-3 1.4 Examples for the Web Application Developer ....................................................................... 1-3 1.4.1 Avitek Medical Records Application (MedRec).............................................................. 1-3 1.4.2 Web Application Examples in the WebLogic Server Distribution............................... 1-3 1.5 New and Changed Features In This Release .......................................................................... 1-4 2 Understanding Web Applications, Servlets, and JSPs 2.1 The Web Applications Container ............................................................................................. 2-1 2.1.1 Web Applications and Java EE .......................................................................................... 2-1 2.1.2 Web Application Development Key Points..................................................................... 2-2 2.2 Servlets.......................................................................................................................................... 2-2 2.2.1 Servlets and Java EE ............................................................................................................ 2-2 2.2.2 What You Can Do with Servlets........................................................................................ 2-3 2.2.3 Servlet Development Key Points....................................................................................... 2-3 2.3 JavaServer Pages ......................................................................................................................... 2-4 2.3.1 JSPs and Java EE .................................................................................................................. 2-4 2.3.2 What You Can Do with JSPs .............................................................................................. 2-5 2.3.3 Overview of How JSP Requests Are Handled ................................................................ 2-5 2.4 Web Application Developer Tools ........................................................................................... 2-5 2.4.1 Other Tools ........................................................................................................................... 2-5 2.5 Web Application Security.......................................................................................................... 2-6 2.6 Avoiding Redirection Attacks................................................................................................... 2-6 2.7 P3P Privacy Protocol .................................................................................................................. 2-6 2.8 Displaying Special Characters on Linux Browsers ................................................................ 2-7 3 Creating and Configuring Web Applications 3.1 WebLogic Web Applications and Java EE .............................................................................. 3-1 3.2 Directory Structure ..................................................................................................................... 3-1 iii 3.2.1 DefaultWebApp/................................................................................................................. 3-2 3.2.2 DefaultWebApp/WEB-INF/web.xml.............................................................................. 3-2 3.2.3 DefaultWebApp/WEB-INF/weblogic.xml ..................................................................... 3-2 3.2.4 DefaultWebApp/WEB-INF/classes ................................................................................. 3-2 3.2.5 DefaultWebApp/WEB-INF/lib ........................................................................................ 3-2 3.2.6 Accessing Information in WEB-INF.................................................................................. 3-3 3.2.7 Directory Structure Example ............................................................................................. 3-3 3.3 Main Steps to Create and Configure a Web Application...................................................... 3-3 3.3.1 Step One: Create the Enterprise Application Wrapper.................................................. 3-3 3.3.2 Step Two: Create the Web Application ............................................................................ 3-4 3.3.3 Step Three: Creating the build.xml File............................................................................ 3-4 3.3.4 Step Four: Execute the Split Development Directory Structure Ant Tasks................. 3-4 3.4 Configuring How a Client Accesses a Web Application ...................................................... 3-5 3.5 Configuring Virtual Hosts for Web Applications .................................................................. 3-5 3.5.1 Configuring a Channel-based Virtual Host..................................................................... 3-5 3.5.2 Configuring a Host-based Virtual Host ........................................................................... 3-5 3.6 Targeting Web Applications to Virtual Hosts ........................................................................ 3-6 3.7 Loading Servlets, Context Listeners, and Filters.................................................................... 3-6 3.8 Shared Java EE Web Application

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    240 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us