| Perl Application Server Developer's Guide | ||
|---|---|---|
| <<< Previous | Next >>> | |
Page objects are analogous to Servlets. As with Pas Server Pages, a Page object can be configured to service a given URI on your website.
Page objects adhere to a standard interface. The main method to override for a Page object is the execute method. Page objects are typically registered in the Pas configuration file to handle a specific URI.
The examples included with Pas list some registered page objects. In the following example, the class TestPage is registered to service the URL /pas/examples/TestPage, Therm::ThermPage is registered to service /pas/examples/therm/Conv, and the class Redirect is registered to handle /pas/examples/therm/Redirect.
pas.pages.examples.TestPage=TestPage
pas.pages.examples.therm.Conv=Therm::ThermPage
pas.pages.examples.therm.Redirect=Redirect
|
| <<< Previous | Home | Next >>> |
| PSP Environment | Writing Page Objects |