Please make sure you have read the Tag Syntax document and understand how tag attribute syntax works.

Description

Error formatting macro: snippet: java.lang.NullPointerException

Parameters

Error formatting macro: snippet: java.lang.NullPointerException

Examples

Error formatting macro: snippet: java.lang.NullPointerException
  • No labels

2 Comments

  1. The example seems to be wrong.

    one correction is
    [code]

    <s:hidden name="foo" value="%

    Unknown macro: {bar}

    " />

    rather than

    <s:hidden name="foo" value="bar" />

    1. I agree. The example should read:

      <-- example one -->
      <s:hidden name="foo" />
      <-- example two -->
      <s:hidden name="foo" value="%{bar}" />
      

      Example One Resulting HTML (if foo evaluates to bar):

      <input type="hidden" name="foo" value="bar" />
      

      Example Two Resulting HTML (if getBar method of the action or model returns 'bar')

      <input type="hidden" name="foo" value="bar" />