Streamlined link tag for single-parameter links
-----------------------------------------------
Key: WW-1517
URL: http://issues.apache.org/struts/browse/WW-1517
Project: Struts 2
Issue Type: New Feature
Components: Views
Reporter: Ted Husted
Fix For: 2.0.2
The url and param tags are very flexibile, but the most common case of a single
parameter link.
<s:url id="url" action="HelloWorld" includeContext="false">
<s:param name="request_locale">en</s:param>
</s:url>
<s:a href="%{url}">English</s:a>
is verbose (to the point of being silly).
It is worthwhile to have a streamlined link tag, a al Struts 1, to cover the
single-parameter case.
<s:link action="HelloWorld" param="request_locale"
paramValue="en">English</s:link>
In the interest of brevity, I would suggest that includeContext default to
"false" for the single-parameter case.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira