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 1784F1078E for ; Wed, 29 Jan 2014 06:22:37 +0000 (UTC) Received: (qmail 48244 invoked by uid 500); 29 Jan 2014 06:22:35 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 46821 invoked by uid 500); 29 Jan 2014 06:22:24 -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 46806 invoked by uid 99); 29 Jan 2014 06:22:20 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Jan 2014 06:22:20 +0000 Received: from localhost (HELO mail-yk0-f169.google.com) (127.0.0.1) (smtp-auth username lukaszlenart, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Jan 2014 06:22:20 +0000 Received: by mail-yk0-f169.google.com with SMTP id q9so6535623ykb.0 for ; Tue, 28 Jan 2014 22:22:19 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=woW8UgKOcxZ32kr7ZXjUX/e1yg36FU8gqqpMqI9PQkg=; b=WjHE3cytmYyitWkZht+C51H6Rpm1mDDjaX1zdq5++dIhBAttU5j1kycwrgcJUJFrXA SkJzDVa1Z0aaI8SqNRZ5OWsWLKcJaYbaxFeyXsQSolSSoBGzTgHHWhqeGtS49ZrCKCTx /Fte3YTpOv12VvHVvp2oy/0eMOgw0ffq1Atczzv93gN5p4kBHsiGmGZjHCvxUce/yxKm 0y09yefAJUxbRhT8GPVzy54HHxWVjVzwncaTPOh9u01a/QU9DxE60OebqYRyP9GItcLr TdAr1gK0s1q4foZi/RlHweYcDjx0l8+xhO6CgIuJSyeP+CP/0k6HLXFrTcw5sWPxAggB ZrSA== X-Received: by 10.236.199.82 with SMTP id w58mr339676yhn.57.1390976538990; Tue, 28 Jan 2014 22:22:18 -0800 (PST) MIME-Version: 1.0 Received: by 10.170.149.69 with HTTP; Tue, 28 Jan 2014 22:21:58 -0800 (PST) In-Reply-To: <52E7FCC9.90108@conicet.gov.ar> References: <52E7FCC9.90108@conicet.gov.ar> From: Lukasz Lenart Date: Wed, 29 Jan 2014 07:21:58 +0100 Message-ID: Subject: Re: Regarding latest struts 2.3.x changes and issues with DMI and Wildcards To: Struts Users Mailing List Cc: Diego Barrabino , Juan Pablo Soto Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable As from 2.3.15.2 action: prefix is disabled by default (this is how is rendered), to enable it you must add the below constant to struts.properties or struts.xml: ### Disables support for action: prefix struts.mapper.action.prefix.enabled =3D false Regards --=20 =C5=81ukasz + 48 606 323 122 http://www.lenart.org.pl/ 2014-01-28 Manuel L=C3=B3pez Blasi : > Hello, > hi to everyone, > i've been researching the last week all over the web in relation to the l= ast > 3 or 4 versions of struts 2.3.x, > it is in my understanding that certain changes have been applied to the > framework regarding security issues as > mentioned in > https://cwiki.apache.org/confluence/display/WW/Version+Notes+2.3.16 > security fixes from version 2.3.15.1, 2.3.15.2 , 2.3.15.3 and 2.3.16 > > My organization is currently using struts version 2.1.8.1 , so far we've > been able to call methods from an action class from jsp, > executing directly the method specified in the submit tag of jsp, we're > using stuff like this: > > value=3D"Registrar"/> > value=3D"Volver"/> > > where the action attribute specifies action=3D"registrarNovedad_registrar= " , > that would be to call the action "registrarNovedad" > and execute the method "registrar". Together with wildcard mappings, > everything works beautyfully as expected, in this case we use: > class=3D"ar.gov.conicet.apps.sigerh.presentation.administrador.CRegistrar= NovedadAction"> > > Up to here everything is fine but now we're trying to migrate from versio= n > 2.1.8.1 to 2.3.16 and suddenly this kind of stuff stopped working. > I've been trying to make it work, using as template the examples that com= e > bundled with the last package available, struts 2.3.16, the proyect > "struts2-blank", > wich is about the smallest proyect one can concieve i think, so there're = no > doubts or mistakes of configuration or anything is else. > > For what i've been able to see the syntax for s:submit tag has changed? I= t > doesn't react anymore to action=3D"registrarNovedad_registrar" > so that this doesn't work anymore: action=3D"registrarNovedad_registrar" value=3D"Registrar"/> > instead i've been able to make it work with name=3D"method:registrar" value=3D"Registrar"/> and proper configuration = in > struts.xml > . It > doesn't work with DynamicMethodInvocation set to false, it just doesn't f= ire > up the method. > > I tried every possible combination of configurations, actionPRoxy > interceptors, ActionMappers , retried with other combinations, changed > acceptedParams and excludeParams in ParametersInterceptor > and nothing seems to work. > > I'm a bit confused about Dynamic Method Invocation and Wildcards as i > believe, since the documentation i have read, that those are 2 differente > concepts/technologies. > In our proyect we have > > in struts.xml and this works perfect: > value=3D"Registrar"/> > by perfect i mean that if you click the button it will take you to the > action and method specified en the action attribute. > No luck on latest versions. > > > So here's my question: > Did the syntax of submit tag changed or has it been deprecated? > (name=3D"method:myMethod" VS. action=3D"MyAction_MyMethod") > > is there some way i can make my project work with DynamicMethodInvocation > set to false (turned off) using the same old syntax of submit tags and so > that i can call a method directly from jsp? > > Judging by the looks of what i've been researching all these are changes > related to security issues regarding Dynamic Method Invocation, i'm about= to > drop the update and keep with the old version > as the impact of not being able to call method from jsp would be so huge = in > the proyect and would require a mayor rewrite of it, it's litterally > impossible right now, u maybe somebody already got stuck > with this very same issues and have clues or solutions to this. > > Thank you very much for your time, > greetings to struts2 team for the great work and efforts. > > I hope somebody knows about this. > > Thanks a lot. > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org