PATH |
D2WErrorPage
Package: com.webobjects.directtowebInherits from:D2WPage
Implements:
- com.webobjects.directtoweb.generation.DTWGeneration
- ErrorPageInterface
Subclasses:
Class Description
This class provides the behavior for the error page Direct to Web templates, specifically
Most of the methods in this class are accessed (via the .wod
) file. If you create a Direct to Web template from an error page, you can invoke the methods in this class in the same way. See the "Direct to Web" chapter of WebObjects Tools and Techniques for more information about creating a Direct to Web template.
Method Types
Constructors
Actions
Managing the Message
Managing the Next Page Parameters
Private Methods
Constructors
D2WErrorPage
public D2WErrorPage()
Standard Java no-argument constructor.
Methods
cancelAction
public WOComponent cancelAction()
This method is invoked when the user clicks Return. You can specify the component this action displays by overriding
nextPage
. Alternatively, you can override nextPageDelegate
; in this case, nextPage
is ignored.See Also:
nextPage (D2WPage)
nextPageDelegate (D2WPage)
firstLineOfMessage
public String firstLineOfMessage()
Returns a
formattedMessage
public String formattedMessage()
Returns a
hasNextPage
public boolean hasNextPage()
Returns whether
nextPage
or nextPageDelegate
have been set in the receiver. If either is set, the error page can navigate to another page when the user clicks Return. Otherwise, the error page displays a hyperlink that starts a new session.
message
public String message()
Returns the error message displayed by the error page.
replacementAssociationForAssociation
public WOAssociation replacementAssociationForAssociation(WOAssociation oldAssociation, String oldBinding, DTWTemplate aTemplate, WOContext aContext)
This method is intentionally undocumented. You should never have to invoke or customize it.
setMessage
public void setMessage(String message)
Sets the error message displayed by the error page.
© 2001 Apple Computer, Inc.