Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
Note

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

Note

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

Description

Wiki Markup
{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.

Code Block
XML
XML
titleSetting the default value of includeParams
<struts>
   ...
   <constant name="struts.url.includeParams" value="none" />
   ...
</struts>

See Constant Configuration for further information.

Info

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

Parameters

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

Examples

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