[ http://mc4j.org/jira/browse/STS-262?page=comments#action_10822 ]
Aaron White commented on STS-262:
---------------------------------
This does not seem 'done' to me, so I'm not sure why it's marked as resolved. I
feel this is a very important feature for stripes, and so I hope this helps:
1) What changes need to be made to my web.xml to support this? Once I add a URL
Binding of "/resource/{whatever}" it no longer get's dispatched to my
ActionBean because it doesn't end in .action, etc. Seems some info should be
provided lest I have to unecessarily nest custom urls under "/virtual/..."
2) The stripes:link tag should ABSOLUTELY use the URLBinding information to
generate the href. This is very very important, and would put stripes in the
unique place of abstracting URL management to the most comfortable place.
> Friendly URL support
> --------------------
>
> Key: STS-262
> URL: http://mc4j.org/jira/browse/STS-262
> Project: Stripes
> Issue Type: New Feature
> Components: ActionBean Dispatching
> Reporter: Tim Fennell
> Assigned To: Ben Gunter
> Fix For: Release 1.5
>
> Attachments: 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://mc4j.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development