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

The id attribute is deprecated in Struts 2.1.x, and has been replaced by the var attribute.

Description

{snippet:id=javadoc|javadoc=true|url=org.apache.struts2.components.URL}

Setting a default value for includeParams

The property struts.url.includeParams can be used to set the default value of the includeParams attribute.

<struts>
   ...
   <constant name="struts.url.includeParams" value="none" />
   ...
</struts>

See Constant Configuration for further information.

As of Struts 2.1.3 the includeParams constant defaults to "none".

Parameters

{snippet:id=tagattributes|javadoc=false|url=struts2-tags/url.html}

Examples

{snippet:id=example|lang=xml|javadoc=true|url=org.apache.struts2.components.URL}