Class ActionMessage


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

Examples

 
    <s:actionmessage />
    <s:form .... >
       ....
    </s:form>
 
 
  • Field Details

    • escape

      protected boolean escape
  • Constructor Details

    • ActionMessage

      public ActionMessage(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)