You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Tom Schneider (JIRA)" <ji...@apache.org> on 2007/10/30 05:26:40 UTC
[jira] Closed: (WW-764) URLBean improvements
[ https://issues.apache.org/struts/browse/WW-764?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tom Schneider closed WW-764.
----------------------------
Resolution: Implemented
Assignee: Tom Schneider
The URLBean setPage(String page) has already been implemented. The clear method has not--however, I think it's easy enough to just create a new url bean. Since this issue is 2+ years old, I'm pretty sure no one is patiently waiting for this feature.
> URLBean improvements
> --------------------
>
> Key: WW-764
> URL: https://issues.apache.org/struts/browse/WW-764
> Project: Struts 2
> Issue Type: Improvement
> Components: Misc
> Affects Versions: WW 2.2, 2.1.x
> Environment: N/A
> Reporter: mike haberman
> Assignee: Tom Schneider
> Fix For: 2.1.1
>
>
> 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.
-
You can reply to this email to add a comment to the issue online.