public class ValidationErrorReportResolution extends Object implements Resolution
ActionBeanContext.| Constructor and Description |
|---|
ValidationErrorReportResolution(ActionBeanContext context)
Construct a new instance to report validation errors in the specified context.
|
| Modifier and Type | Method and Description |
|---|---|
void |
execute(HttpServletRequest request,
HttpServletResponse response)
Called by the Stripes dispatcher to invoke the Resolution.
|
ActionBeanContext |
getContext()
Get the action bean context on which the validation errors occurred.
|
protected String |
getResource(ResourceBundle bundle,
String name,
String fallback)
Utility method that is used to lookup the resources used for the error header, footer, and
the strings that go before and after each error.
|
protected void |
sendErrors(HttpServletRequest request,
HttpServletResponse response)
Called by
execute(HttpServletRequest, HttpServletResponse) to write the actual
validation errors to the client. |
public ValidationErrorReportResolution(ActionBeanContext context)
public ActionBeanContext getContext()
public void execute(HttpServletRequest request, HttpServletResponse response) throws Exception
Resolutionexecute in interface Resolutionrequest - the current HttpServletRequestresponse - the current HttpServletResponseException - exceptions of any type may be thrown if the Resolution cannot be
executed as intendedprotected void sendErrors(HttpServletRequest request, HttpServletResponse response) throws Exception
execute(HttpServletRequest, HttpServletResponse) to write the actual
validation errors to the client. The header, footer, beforeError and
afterError resources are used by this method.request - The servlet request.response - The servlet response.Exceptionprotected String getResource(ResourceBundle bundle, String name, String fallback)
bundle - the bundle to look up the resource fromname - the name of the resource to lookup (prefixes will be added)fallback - a value to return if no resource can be found© Copyright 2005-2006, Stripes Development Team.