Skip Headers
Oracle® Fusion Middleware Developing Web Applications, Servlets, and JSPs for Oracle WebLogic Server
11g Release 1 (10.3.6)

Part Number E13712-06
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Master Index
Master Index
Go to Feedback page
Contact Us

Go to previous page
Previous
PDF · Mobi · ePub

D Web Application Best Practices

The following sections contain Oracle best practices for designing, developing, and deploying WebLogic Web applications and application resources:

CGI Best Practices

The following are CGI best practices with respect to calling a subscript:

Servlet Best Practices

Consider the following best practices when writing HTTP servlets:

JSP Best Practices

For a complete explanation on how to avoid JSP recompilation, see Avoiding Unnecessary JSP Compilation at http://www.oracle.com/technology/index.html and specifically the section called "Scenarios that Cause Recompilation of JSPs."

Best Practice When Subclassing ServletResponseWrapper

Java EE provides the class javax.servlet.ServletResponseWrapper, which you can subclass in your Servlet to adapt its response.

Oracle recommends that if you create your own response wrapper by subclassing the ServletResponseWrapper class, you should always override the flushBuffer() and resetBuffer() methods. Not doing so might result in the response being committed prematurely.