You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Ted Husted (JIRA)" <ji...@apache.org> on 2006/12/24 16:01:57 UTC
[jira] Updated: (WW-764) URLBean improvements
[ http://issues.apache.org/struts/browse/WW-764?page=all ]
Ted Husted updated WW-764:
--------------------------
Flags: [Patch] (was: [Important])
> URLBean improvements
> --------------------
>
> Key: WW-764
> URL: http://issues.apache.org/struts/browse/WW-764
> Project: Struts 2
> Issue Type: Improvement
> Components: Misc
> Affects Versions: WW 2.2
> Environment: N/A
> Reporter: mike haberman
> Fix For: Future
>
>
> I would like to see the following added to the URLBean class:
> URLBean setPage(String page)
> {
> // this would be consistent with addParameter()
> // currently its return type is void
> }
> URLBean clear()
> {
> // clears the params hash table
> }
> Also, I would like to request that all the intance variables be made protected so one can subclass URLBean
> this would allow for reuse in templates:
> #set ($href = $linkTool.clear())
> #set( $href = $href.setPage("accounts.vm")
> #set ($href = $href.addQueryParamenter("id", "234")
> <a href = "$href">test</a>
> #set ($href = $linkTool.clear().setPage("hello.vm").addQueryParameter("id", "123"))
> <a href = "$href ">test</a>
> thanks
> mike
--
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