<ao:sendError>

Returns an error status. Stops processing of the containing JSP page. Results in error handler processing.

Does not send error when the response has already been committed, but also does not throw any exception; logs FINE-level notice instead.

Important: Errors sent inside of standard <jsp:include> tags will be silently lost. Use <ao:include> instead of <jsp:include> to support sendError inside of includes.

Tag Information

Tag Class: com.aoapps.taglib.legacy.SendErrorTag
TagExtraInfo Class: None
Body Content: JSP
Display Name: None

Attributes

Name Required Evaluation Type Description
status Yes Runtime int

The status code for response.sendError.

message No Runtime String

The optional message to be sent. If not set as an attribute, the message will be taken from the body, trimmed.

Variables

No Variables Defined.