[ 
https://issues.apache.org/struts/browse/WW-764?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tom Schneider updated WW-764:
-----------------------------

    Affects Version/s: 2.1.x

> 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
>             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.
-
You can reply to this email to add a comment to the issue online.

Reply via email to