[ http://mc4j.org/jira/browse/STS-399?page=comments#action_10765 ]
Ben Gunter commented on STS-399:
--------------------------------
I'm torn on this one. If we strip all trailing slashes, then that makes it
impossible to intentionally include a trailing slash in a value. That's a bit
of an odd requirement, but not out of the realm of possibility. But I certainly
see how it would be desirable to always strip that slash. Are you having
problems with browsers adding a trailing slash or something like that?
To work around this, all you have to do is add a trailing slash to your
@UrlBinding, as in @UrlBinding("/path/to/bean/{param}/") and the slash will be
stripped from the value if it is present in the URL. If it is not present, then
it will be OK since trailing parameters and/or literals can be omitted without
a problem.
Please let me know if I'm overlooking something or if this is really causing
you problems.
> @UrlBinding should ignore trailing slash
> ----------------------------------------
>
> Key: STS-399
> URL: http://mc4j.org/jira/browse/STS-399
> Project: Stripes
> Issue Type: Bug
> Components: ActionBean Dispatching
> Affects Versions: Release 1.5
> Environment: Stripes 1.5-trunk r587
> Reporter: Jeff Ferber
> Assigned To: Ben Gunter
> Priority: Minor
>
> Say you set up this clean url:
> @UrlBinding("/path/to/bean/{param}")
> The param will not bind if you include a trailing slash in the url:
> http://www.mysite.com/path/to/bean/moohahah/
> Works as expected (fantastic) without the trailing slash.
--
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: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development