Return-Path: X-Original-To: apmail-struts-user-archive@www.apache.org Delivered-To: apmail-struts-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8F645114BB for ; Tue, 8 Apr 2014 17:31:42 +0000 (UTC) Received: (qmail 5894 invoked by uid 500); 8 Apr 2014 17:31:41 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 4931 invoked by uid 500); 8 Apr 2014 17:31:34 -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 4921 invoked by uid 99); 8 Apr 2014 17:31:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Apr 2014 17:31:32 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ken.mcwilliams@gmail.com designates 209.85.219.50 as permitted sender) Received: from [209.85.219.50] (HELO mail-oa0-f50.google.com) (209.85.219.50) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Apr 2014 17:31:28 +0000 Received: by mail-oa0-f50.google.com with SMTP id i7so1384837oag.23 for ; Tue, 08 Apr 2014 10:31:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=Ha0PmJAWr626k9+ULdPu7OjesfAYZSblIrVOxQPxXmc=; b=sq7rHCAlt3LgLqNd3aHONzW/coYar1gcIr4C/9nYmyo226fxH2zHySMrmWTbvsBOxJ OK+GWv2FL6BHb60xDdL1wUT4WnBEhfRUZ02mPUCglojfPXB5H7F0CxQCSgMD4ZMlC0E8 iXid5Cds4a3gxOHCWsIyAccSkV7PdVZ16uYERcVjt8d/Pc7FG2wr0DPc8sa+22RvDnKT JYr9n13vitHw01tnMXSyftrmD2Pb4jDm89h7cu1+Jy4wyDbT5Q40rfRaibtw7cUomtQH yFj3WdpN97U92/qLaAq54Rl2Q6t9z8Y17THEH5CC+bNlSg/E37j/rJAmNfZul0a4iKub Q9ew== MIME-Version: 1.0 X-Received: by 10.182.248.131 with SMTP id ym3mr3291768obc.58.1396978265684; Tue, 08 Apr 2014 10:31:05 -0700 (PDT) Received: by 10.76.12.170 with HTTP; Tue, 8 Apr 2014 10:31:05 -0700 (PDT) Date: Tue, 8 Apr 2014 11:31:05 -0600 Message-ID: Subject: OT: Architectural Semantics: Model View Presenter From: Ken McWilliams To: Struts Users Mailing List Content-Type: multipart/alternative; boundary=001a11c20a0449006e04f68b5975 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c20a0449006e04f68b5975 Content-Type: text/plain; charset=ISO-8859-1 Marked as OT because this more of a conceptual issue and has to do with talking to .NET developers regarding framework difference than with framework use. I'm trying to wrap my head around the Model View Pattern (MVP) pattern. My issue is that I can't really differentiate it from what I do in Struts2. But in no documentation is there any claim that Struts2 follows MVP. Also it seems to be a term that only shows up mainly in Microsoft circles, is it a sort of branding? Given the Wikipedia article: http://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93presenter There is a picture at the top of the wiki article that shows the following: ---- Model Business Objects <=> Presenter Contains the logic for application <=> View UI Components Has no notion of the model. ---- This looks a lot like, the pattern most of us take for Struts2, where the middle part, the presenter, is replaced by the Struts2 action. The main difference is that this is less of an abstraction than found in most JEE applications, as the chain is typically: Data tier objects <=> service tier objects <=> struts2 action <=> view. I'm supposing that this extra level, isn't required for the MVP pattern and so omitted to focus on the pattern and not perhaps would be done in best practice. So is then is Struts2 following MVP (in most cases)? I've read that wiki article twice and still don't see a difference. Any light on the matter would be most welcome. On the other hand if there isn't a difference, we should add Struts2 to the list of MVP frameworks at the bottom! Regards, Ken --001a11c20a0449006e04f68b5975--