Please make sure you have read the Tag Syntax document and understand how tag attribute syntax works.
Render an HTML input tag of type password.
{% remote_file_content https://raw.githubusercontent.com/apache/struts/master/core/src/site/resources/tags/password-description.html %}
{% remote_file_content https://raw.githubusercontent.com/apache/struts/master/core/src/site/resources/tags/password-attributes.html %}
In this example, a password
tag is displayed. For the label, we are calling ActionSupport's getText()
to retrieve password label from a resource bundle.
<s:password label="%{text('password')}" name="password" size="10" maxlength="15" />