Return-Path: X-Original-To: apmail-struts-issues-archive@minotaur.apache.org Delivered-To: apmail-struts-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 68DA918F16 for ; Wed, 29 Apr 2015 21:03:07 +0000 (UTC) Received: (qmail 58246 invoked by uid 500); 29 Apr 2015 21:03:07 -0000 Delivered-To: apmail-struts-issues-archive@struts.apache.org Received: (qmail 58204 invoked by uid 500); 29 Apr 2015 21:03:07 -0000 Mailing-List: contact issues-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list issues@struts.apache.org Received: (qmail 58192 invoked by uid 99); 29 Apr 2015 21:03:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Apr 2015 21:03:07 +0000 Date: Wed, 29 Apr 2015 21:03:07 +0000 (UTC) From: "adam brin (JIRA)" To: issues@struts.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (WW-4496) better reconciliation of static url mappings MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/WW-4496?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] adam brin updated WW-4496: -------------------------- Description: the struts static url mappings are great for simplifying URL paths and including "data" in the URL structures. We're having collisions that are causing problems though: eg. {quote} class1: @Namespace("/dataset/") ... @Action("\{id\}") ... class3: @Namespace("/dataset") ... @Action("columns/\{id\}") {quote} In this case, Class1's mapping seem to "own" everything under /dataset regardless of what other classes like (class2) define. It'd be nice if struts could, as it scans all of the namespaces and actions, evaluated left-to-right non-programatically specified values ahead of those that are variables. E.g. /dataset/columns/\{id\} would be evaluated prior to matching /dataset/\{id\} was: the struts static url mappings are great for simplifying URL paths and including "data" in the URL structures. We're having collisions that are causing problems though: eg. {quote} class1: @Namespace("/dataset/") ... @Action("\{id\}") ... class3: @Namespace("/dataset") ... @Action("columns/\{id\}") {quote} In this case, Class1's mapping seem to "own" everything under /dataset regardless of what other classes like (class2) define. It'd be nice if struts could, as it scans all of the namespaces and actions, evaluated left-to-right non-programatically specified values ahead of those that are variables. E.g. /dataset/columns/{id} would be evaluated prior to matching /dataset/{id} > better reconciliation of static url mappings > -------------------------------------------- > > Key: WW-4496 > URL: https://issues.apache.org/jira/browse/WW-4496 > Project: Struts 2 > Issue Type: Improvement > Affects Versions: 2.3.20 > Reporter: adam brin > > the struts static url mappings are great for simplifying URL paths and including "data" in the URL structures. We're having collisions that are causing problems though: > eg. > {quote} > class1: > @Namespace("/dataset/") > ... > @Action("\{id\}") > ... > class3: > @Namespace("/dataset") > ... > @Action("columns/\{id\}") > {quote} > In this case, Class1's mapping seem to "own" everything under /dataset regardless of what other classes like (class2) define. It'd be nice if struts could, as it scans all of the namespaces and actions, evaluated left-to-right non-programatically specified values ahead of those that are variables. E.g. /dataset/columns/\{id\} would be evaluated prior to matching /dataset/\{id\} -- This message was sent by Atlassian JIRA (v6.3.4#6332)