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 1E657200C5B for ; Thu, 27 Apr 2017 22:11:52 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 1CFA0160BB5; Thu, 27 Apr 2017 20:11:52 +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 3DCE5160B9E for ; Thu, 27 Apr 2017 22:11:51 +0200 (CEST) Received: (qmail 32833 invoked by uid 500); 27 Apr 2017 20:11:49 -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 51762 invoked by uid 99); 27 Apr 2017 11:56:25 -0000 X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4.974 X-Spam-Level: **** X-Spam-Status: No, score=4.974 tagged_above=-999 required=6.31 tests=[DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_REPLY=1, KAM_ASCII_DIVIDERS=0.8, KAM_LIVE=1, NML_ADSP_CUSTOM_MED=1.2, SPF_SOFTFAIL=0.972, URIBL_BLOCKED=0.001] autolearn=disabled MIME-Version: 1.0 Message-ID: Subject: Re: Struts2 namespace confusion References: <1401325386.35408.BPMail_high_noncarrier@web142302.mail.bf1.yahoo.com> From: "Ralph Grove" In-Reply-To: <1401325386.35408.BPMail_high_noncarrier@web142302.mail.bf1.yahoo.com> Content-Type: text/plain; charset="iso-8859-1" x-ponymail-sender: 41de376a450f3de948d13987de12a7d3f2dda129 Date: Thu, 27 Apr 2017 11:56:21 -0000 x-ponymail-agent: PonyMail Composer/0.2 To: X-Mailer: LuaSocket 3.0-rc1 archived-at: Thu, 27 Apr 2017 20:11:52 -0000 Matt, did this solve your problem? I'm having the same issue with namespaces. With this example, I can request ".../Home", ".../Home/Alpha", ".../Alpha/Alpha/Alpha", etc. The action executes in each case, but if the URL contains more than one slash, the relative path is messed up for files included in the JSP. Ralph Grove /error.jsp /error.jsp /WEB-INF/jsp/index.jsp /WEB-INF/jsp/alpha.jsp /WEB-INF/jsp/beta.jsp /WEB-INF/jsp/index.jsp /WEB-INF/jsp/beta.jsp On 2014-05-28 21:03 (-0400), Matt Williams wrote: > > > I found the following property: struts.mapper.alwaysSelectFullNamespace (which is false by default). > > To me, it should be 'true' to match how the documentation explains matching actions to namespaces and falling back to default namespace. > > > > > > ------------------------------ > On Sat, May 24, 2014 8:51 PM CDT Dave Newton wrote: > > >This isn't the struts.enable.SlashesInActionNames = false setting? > > > >Dave > > > > > > > >On Sat, May 24, 2014 at 2:50 PM, Lukasz Lenart wrote: > > > >> Can you share your struts.xml file? > >> > >> Maybe you have defined default-action-ref or wildcard mapping? > >> > >> 2014-05-24 18:58 GMT+02:00 Matt Williams : > >> > > >> > > >> > No, there are no other 'search' actions defined anywhere else. > >> > > >> > > >> > > >> > ------------------------------ > >> > On Sat, May 24, 2014 11:46 AM CDT Ken McWilliams wrote: > >> > > >> >What he explains is likely the result of a search action also mapped in > >> the > >> >default namespace. > >> >On 2014-05-24 9:35 AM, "John Patrick" wrote: > >> >> > >> >> Not seen this happen myself, what strut > >> >> > >> >> Not seen this happen myself, what struts jar's do you have as it might > >> be > >> >> something like the convention plugin... > >> >> > >> >> If your using maven then it might be useful for others to include what > >> >> specific maven dependencies your including so potentially someone else > >> can > >> >> try using the exact same jars. > >> >> > >> >> John > >> >> > >> >> > >> >> > >> >> On 24 May 2014 15:28, Matt Williams wrote: > >> >> > >> >> > Hello, > >> >> > I have been using struts 2.1.8 for a while and last night noticed an > >> >> issue > >> >> > with mapping actions working with any url. > >> >> > > >> >> > For instance in the struts.xml file: > >> >> > - I have a package with a namespace of "/employee". > >> >> > - Within the package, I have an action mapping "search" > >> >> > - The webapp name is "TestWeb". > >> >> > > >> >> > So to access this page, I can go to: > >> >> > http://localhost:8080/TestWeb/employee/search.action and this works. > >> >> > However, if anything is added to the URL after the namespace such as: > >> >> > http://localhost:8080/TestWeb/employee/someExtraText/search.actionthe > >> >> > page still loads. > >> >> > > >> >> > Why does this happen? > >> >> > > >> >> > > >> >> > Reading the struts documentation > >> >> > ( > >> >> > >> http://struts.apache.org/release/2.1.x/docs/namespace-configuration.html) > >> >> > would make me assume that it should search the > >> "/employee/someExtraText" > >> >> > namespace...not find it, so then it should fall back to the default " > >> >> > namespace...not find it...then display no action mapping found. > >> >> > > >> >> > > >> >> > Any insight? Thanks! > >> >> > > >> >> > > >> >> > --------------------------------------------------------------------- > >> >> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > >> >> > For additional commands, e-mail: user-help@struts.apache.org > >> >> > > >> >> > > >> >> > >> > > >> > > >> > --------------------------------------------------------------------- > >> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > >> > For additional commands, e-mail: user-help@struts.apache.org > >> > > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > >> For additional commands, e-mail: user-help@struts.apache.org > >> > >> > > > > > >-- > >e: davelnewton@gmail.com > >m: 908-380-8699 > >s: davelnewton_skype > >t: @dave_newton > >b: Bucky Bits > >g: davelnewton > >so: Dave Newton > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > For additional commands, e-mail: user-help@struts.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org