* Only interpret last path element as action if it is not terminated by a "/".

This helps us to disambiguify URLs: /foo/ will never be interpreted as action,
   while /foo will be.
This commit is contained in:
hns 2005-08-29 12:06:24 +00:00
parent 37574fbdfd
commit 961f755c4f

View file

@ -231,7 +231,7 @@ public final class RequestEvaluator implements Runnable {
// if we're at the last element of the path,
// try to interpret it as action name.
if (i == (ntokens - 1)) {
if (i == (ntokens - 1) && !req.getPath().endsWith("/")) {
action = getAction(currentElement,
pathItems[i], req.getMethod());
}