Revision: 897
http://stripes.svn.sourceforge.net/stripes/?rev=897&view=rev
Author: bengunter
Date: 2008-05-07 07:33:51 -0700 (Wed, 07 May 2008)
Log Message:
-----------
Fixed STS-560. When caching the path for a UrlBinding, if the suffix is not
null then cache path + suffix as well.
Modified Paths:
--------------
trunk/stripes/src/net/sourceforge/stripes/controller/UrlBindingFactory.java
Modified:
trunk/stripes/src/net/sourceforge/stripes/controller/UrlBindingFactory.java
===================================================================
--- trunk/stripes/src/net/sourceforge/stripes/controller/UrlBindingFactory.java
2008-04-28 11:11:59 UTC (rev 896)
+++ trunk/stripes/src/net/sourceforge/stripes/controller/UrlBindingFactory.java
2008-05-07 14:33:51 UTC (rev 897)
@@ -265,6 +265,8 @@
*/
public void addBinding(Class<? extends ActionBean> beanType, UrlBinding
binding) {
pathCache.put(binding.getPath(), binding);
+ if (binding.getSuffix() != null)
+ pathCache.put(binding.getPath() + binding.getSuffix(),
binding);
prefixCache.put(binding.getPath() + '/', binding);
List<Object> components = binding.getComponents();
if (components != null && !components.isEmpty() && components.get(0)
instanceof String)
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development