Skip navigation.

Developing Web Applications for WebLogic Server

   Previous Next vertical dots separating previous/next from contents/index/pdf Contents Index View as PDF   Get Adobe Reader

Web Applications Basics

How to Use This Book

Overview of Web Applications

Servlets

Java Server Pages

Web Application Directory Structure

Main Steps to Create a Web Application

Step One: Create the Enterprise Application Wrapper

Step Two: Create the Web Application

Step Three: Creating the build.xml File

Step Four: Execute the Split Development Directory Structure Ant Tasks

URLs and Web Applications

Web Application Developer Tools

WebLogic Builder

Ant Tasks to Create Skeleton Deployment Descriptors

XML Editors

appc Compiler

appc Syntax

appc Options

wlappc Ant Task

Web Application Security

Deploying Web Applications

Deployment Overview

Deployment Descriptors

Using WebLogic Builder to Edit Deployment Descriptors

Manually Editing XML Deployment Files

DOCTYPE Header Information

Dynamic Descriptor Updates

Deployment Options

Deployment Guidelines for Web Applications

Deploying Web Applications as Part of an Enterprise Application

Auto-Deployment of Web Applications

Redeploying a Web Application in Exploded Directory Format

Using Command Line Deployment

Refreshing Static Components

Deploying Multiple Web Applications

Configuring Web Application Components

Configuring Servlets

Servlet Mapping

Servlet Initialization Attributes

Configuring Java Server Pages (JSPs)

Registering a JSP as a Servlet

Configuring JSP Tag Libraries

Configuring Welcome Pages

Setting Up a Default Servlet

Customizing HTTP Error Responses

Using CGI with WebLogic Server

Configuring WebLogic Server to Use CGI

Requesting a CGI Script

CGI Best Practices

Serving Resources from the CLASSPATH with the ClasspathServlet

Configuring Resources in a Web Application

Configuring External Resources

Referencing External EJBs

More about the ejb-ref* Elements

Referencing Application-Scoped EJBs

Loading Servlets, Context Listeners, and Filters

Determining the Encoding of an HTTP Request

Mapping IANA Character Sets to Java Character Sets

Using Sessions and Session Persistence in Web Applications

Overview of HTTP Sessions

Setting Up Session Management

HTTP Session Properties

Session Timeout

Configuring WebLogic Server Session Cookies

Configuring Application Cookies That Outlive a Session

Logging Out and Ending a Session

Configuring Session Persistence

Attributes Shared by Different Types of Session Persistence

Using Memory-based, Single-server, Non-replicated Persistent Storage

Using File-based Persistent Storage

Using a Database for Persistent Storage (JDBC persistence)

Using Cookie-Based Session Persistence

Using URL Rewriting Instead of Cookies

Coding Guidelines for URL Rewriting

URL Rewriting and Wireless Access Protocol (WAP)

Application Events and Event Listener Classes

Overview of Application Event Listener Classes

Servlet Context Events

HTTP Session Events

Configuring an Event Listener Class

Writing an Event Listener Class

Templates for Event Listener Classes

Servlet Context Event Listener Class Example

HTTP Session Attribute Event Listener Class Example

Additional Resources

Filters

Overview of Filters

How Filters Work

Uses for Filters

Writing a Filter Class

Configuring Filters

Configuring a Filter

Configuring a Chain of Filters

Filtering the Servlet Response Object

Additional Resources

web.xml Deployment Descriptor Elements

icon

display-name

description

distributable

context-param

filter

filter-mapping

listener

servlet

icon

init-param

security-role-ref

servlet-mapping

session-config

mime-mapping

welcome-file-list

error-page

taglib

resource-env-ref

resource-ref

security-constraint

web-resource-collection

auth-constraint

user-data-constraint

login-config

form-login-config

security-role

env-entry

ejb-ref

ejb-local-ref

weblogic.xml Deployment Descriptor Elements

description

weblogic-version

security-role-assignment

run-as-role-assignment

reference-descriptor

resource-env-description

resource-description

ejb-reference-description

session-descriptor

session-param

jsp-descriptor

JSP Attribute Names and Values

auth-filter

container-descriptor

check-auth-on-forward

redirect-with-absolute-url

index-directory-enabled

index-directory-sort-by

servlet-reload-check-secs

single-threaded-servlet-pool-size

session-monitoring-enabled

save-sessions-enabled

prefer-web-inf-classes

default-mime-type

retain-original-url

charset-params

input-charset

charset-mapping

virtual-directory-mapping

url-match-map

preprocessor

preprocessor-mapping

security-permission

context-root

wl-dispatch-policy

servlet-descriptor

init-as

destroy-as

 

Skip footer navigation  Back to Top Previous Next