Please make sure you have read the Tag Syntax document and understand how tag attribute syntax works.
Renders an HTML input element of type hidden, populated by the specified property from the ValueStack.
{% remote_file_content https://raw.githubusercontent.com/apache/struts/master/core/src/site/resources/tags/hidden-description.html %}
{% remote_file_content https://raw.githubusercontent.com/apache/struts/master/core/src/site/resources/tags/hidden-attributes.html %}
Example 1
<s:hidden name="foo" />
Example One Resulting HTML (if foo
evaluates to bar
):
<input type="hidden" name="foo" value="bar" />
Example 2
<s:hidden name="foo" value="%{bar}" />
Example Two Resulting HTML (if getBar
method of the action returns bar
)
<input type="hidden" name="foo" value="bar" />