Apache Struts 2 Documentation > Home > Guides > Tag Developers Guide > Struts Tags > Tag Reference > Generic Tag Reference > url |
![]() | Please make sure you have read the Tag Syntax document and understand how tag attribute syntax works. |
This tag is used to create a URL. You can use the "param" tag inside the body to provide additional request parameters. NOTE: When includeParams is 'all' or 'get', the parameter defined in param tag will take
precedence and will not be overriden if they exists in the parameter submitted. For
example, in Example 3 below, if there is a id parameter in the url where the page this
tag is included like http:// |
|
<-- Example 1 --> <ww:url value="editGadget.action"> <ww:param name="id" value="%{selected}" /> </ww:url> <-- Example 2 --> <ww:url action="editGadget"> <ww:param name="id" value="%{selected}" /> </ww:url> <-- Example 3--> <ww:url includeParams="get" > <:param name="id" value="%{'22'}" /> </ww:url> |