[ 
http://www.stripesframework.org/jira/browse/STS-262?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrew Jaquith updated STS-262:
-------------------------------

    Attachment: CleanUrlParams.patch

I've attached a patch for this that fixes the issue. It adds a separator() 
method to the UrlBinding annotation (which defaults to "&"), and an equivalent 
getSeparator() method to the UrlBinding class. It also adds some processing 
logic to UrlBindingFactory to properly recognize when a clean URL that matches 
a prototype might have appended parameters.  

The patch includes a CleanUrlBindingTests file that exercises several edge 
cases.

> Friendly URL support
> --------------------
>
>                 Key: STS-262
>                 URL: http://www.stripesframework.org/jira/browse/STS-262
>             Project: Stripes
>          Issue Type: New Feature
>          Components: ActionBean Dispatching
>            Reporter: Tim Fennell
>            Assignee: Ben Gunter
>             Fix For: Release 1.5
>
>         Attachments: CleanUrlParams.patch, cleanurls-patches.zip, 
> cleanurls-src-01182007.zip
>
>
> One thing that comes up frequently is support for friendly URLs, e.g.:
>   /blog/2006/08/22
>   /user/6282/edit
> and so on.  While it's possible to acheive URLs like this using 3rd party 
> tools like UrlRewriteFilter it would be nice if they were built directly into 
> stripes because then all URL information could be kept in a single place for 
> each class.
> I'm envisaging an annotation something like this:
>     @UrlInfo("/{year}/{month}/{day}")
>     @UrlInfo("/{userId}/{event}")
> that would inform Stripes how to map the extra pieces of information encoded 
> in the URL.
> Optionally this could also be specified with the existing UrlBinding 
> annotations, e.g.
>     @UrlBinding("/blog/{year}/{month}/{day}")
> If done right, the stripes url and link tags could also take advantage of 
> this information to put certain parameters into the URL instead of a 
> parameter string.
> I'm very open to hearing alternative ideas around how to specify this, and 
> other functionality that would be desirable.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://www.stripesframework.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to