Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 5AB68200CBC for ; Tue, 20 Jun 2017 21:48:58 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 58B72160BE1; Tue, 20 Jun 2017 19:48:58 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 9FB6C160BCC for ; Tue, 20 Jun 2017 21:48:57 +0200 (CEST) Received: (qmail 90102 invoked by uid 500); 20 Jun 2017 19:48:54 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 89941 invoked by uid 99); 20 Jun 2017 19:48:53 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Jun 2017 19:48:53 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 5EABD19205D for ; Tue, 20 Jun 2017 19:48:53 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.879 X-Spam-Level: * X-Spam-Status: No, score=1.879 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id j3NxN4LShoww for ; Tue, 20 Jun 2017 19:48:51 +0000 (UTC) Received: from mail-it0-f41.google.com (mail-it0-f41.google.com [209.85.214.41]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 695395F640 for ; Tue, 20 Jun 2017 19:48:50 +0000 (UTC) Received: by mail-it0-f41.google.com with SMTP id m62so20526735itc.0 for ; Tue, 20 Jun 2017 12:48:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=62QBOxBvLnPRcUXhwNfR8FxP8XcYaJPBWM+HByZOaak=; b=NWEvaqoRSpUAZDjXPCCVTw72QQiYpNIWPkjwzwXpDj2Wo68qyxSqBWNgQ4A2HJRonP v5rmWaban85To/iMhpfXP8cRQKvVx9WH0jYSy2Rw7PptwqF7PYLMVRLDP6B6bvlG76mE v2dsRE+kxBkyA+AyooQ0Et11ERxpPVlWYcmX2yQLJUm4sFhW65C4+aaXOOahxZXaMm0k VKKb3IOk0TxG+sngVsfgeOsw/06xVurzY8nRTz1jufJXPt2eUbfUQ4VEbi3I8bmojFTZ +l8r3by2tmpypSF9QsFpnbEJTlQIRbXOdTZ9BCJnBdcsP0qN2B0TAgYhiE40GwoWZGZR otjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=62QBOxBvLnPRcUXhwNfR8FxP8XcYaJPBWM+HByZOaak=; b=r9bUHLKR42IO7K1LyeadGbuu2wqvqktA1C9WMEnkkJH2JbAOwYe4T4oSkDbOiB1tt2 gI0Ga+HRdw/Ysbzc/7DNzbqWm6YQuNR0P6vKNxxLephATCHGWuy4zk+5Gn5ivYrHqouC MMeAF20Y9JAxkzFyNG/JHounoI3CYP/gQtntlcK+bBMjAX697EXZOf3JMt1ce06P5Y2z 30a/msPFa40MvDlDfxjsmsfM0MUtCpDUuHVz2GUpIcO41bY/aX5NDjpaEJxMEpUKF4dW B7fIfv6Lks0IDJc7U5hMawAETtUeouEOuD6gbX0ahO+Mhtiz2YLlrHfYF68ulBPP/xMh j2iA== X-Gm-Message-State: AKS2vOwbtn9eUID9TPOKQW7KNztwV8UEkyS6GQ1uMC1EEWkmUykPR3Oq ngFldufU2zRwn+dHzTIupJTMaYjV6Q== X-Received: by 10.36.6.137 with SMTP id 131mr5308466itv.28.1497988129145; Tue, 20 Jun 2017 12:48:49 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.25.199 with HTTP; Tue, 20 Jun 2017 12:48:48 -0700 (PDT) From: Ken McWilliams Date: Tue, 20 Jun 2017 13:48:48 -0600 Message-ID: Subject: Limitations using Struts2-conventions-plugin (lack of multiple configuration roots) To: Struts Users Mailing List Content-Type: multipart/alternative; boundary="001a113f7ce650d29b0552698a39" archived-at: Tue, 20 Jun 2017 19:48:58 -0000 --001a113f7ce650d29b0552698a39 Content-Type: text/plain; charset="UTF-8" I like to use the conventions plugin but find myself fighting with it more often than not. I think conventions should establish a "convention". Now the plugin certainly does this in the *singular* but say I want restful services handled by conventions, and then I want perhaps a set of packages to contain public documents, and another set of packages to require some form of security but also follow some sort of conventions... well I find it impossible to use the conventions plugin and need to resort to additional configuration. Creating packages in struts.xml, or using XML to override the conventions. Do you think it would be reasonable to have the conventions plugin, create a new configuration interceptor for which all the constants (package level constants, as there is one interceptor instance per stack), and the rest of the conventions configuration could be looked up from each of these configurations? So the conventions plugin would need to check each struts package to see if extends conventions-default and if so, wire the actions at startup for each in turn. If that is too limiting perhaps just make this one interceptor a requirement for the scan. Also under this scheme, it would be good to create an "include" for the Java package scan rather than the "exclude" which is more suited to one root. I think this scheme would greatly reduce annotation usage as it would be possible to stay entirely within established conventions, rendering overrides unnecessary. -- Sent from my C64 using a 300 baud modem --001a113f7ce650d29b0552698a39--