ONE Active Server Pages Product Home Page Developer Site Version


ASP Built-in Objects Reference

Sun ONE Active Server Pages includes built-in or intrinsic objects that handle many common programming tasks. The objects included in Sun ONE ASP are Application, ASPError, Request, Response, Server, and Session. Built-in objects are included on all ASP pages, and do not need to be created before they can be used. These objects enable you to avoid much of the overhead associated with complex Web programming, simplifying development by solving Web-protocol programming issues.

The built-in objects and their roles are listed in the following table, and discussed in this section. This section provides basic reference information about the ASP intrinsic objects. You may wish to consult additional print and Web resources for more detailed ASP reference information.

Note icon Note ASP intrinsic objects can now be accessed directly from Java code using Sun ONE ASP Chili!Beans technology. For more information, see ASP Servlet Interface.

Stores information (variables and objects) needed for all users of a particular application. Information stored in the Application object persists for the lifetime of the application.
Reports error information.
Provides access to values passed to the server by the client.
Controls the output from an ASP script to the requesting client.
Provides access to methods and properties on the server. These methods and properties typically serve as utility functions.
Stores information (variables and objects) needed for a particular user session. Information stored in the Session object is not discarded when the user jumps between pages in the application, but instead persists for the entire user session.

Note icon Note ASP scripts provided in examples are assumed to be enclosed in script delimiters. The <% %> and <SCRIPT> delimiters are generally not shown.

In this section:

ASP Application Object

ASPError Object

ASP Request Object

ASP Response Object

ASP Server Object

ASP Session Object

See also:

Using Sun ONE ASP Built-in Objects