Class ActionError


public class ActionError extends UIBean
Render action errors if they exists the specific layout of the rendering depends on the theme itself. Empty (null or blank string) errors will not be printed. The action error strings will be html escaped by default.

Examples

 

    <s:actionerror />
    <s:form .... >
       ....
    </s:form>

 
 
  • Field Details

  • Constructor Details

    • ActionError

      public ActionError(ValueStack stack, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
  • Method Details

    • getDefaultTemplate

      protected String getDefaultTemplate()
      Description copied from class: UIBean
      A contract that requires each concrete UI Tag to specify which template should be used as a default. For example, the CheckboxTab might return "checkbox.vm" while the RadioTag might return "radio.vm". This value not begin with a '/' unless you intend to make the path absolute rather than relative to the current theme.
      Specified by:
      getDefaultTemplate in class UIBean
      Returns:
      The name of the template to be used as the default.
    • evaluateExtraParams

      protected void evaluateExtraParams()
      Overrides:
      evaluateExtraParams in class UIBean
    • setEscape

      public void setEscape(boolean escape)