Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 97906 invoked from network); 7 Jan 2010 09:18:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Jan 2010 09:18:53 -0000 Received: (qmail 96519 invoked by uid 500); 7 Jan 2010 09:18:50 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 96479 invoked by uid 500); 7 Jan 2010 09:18: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 96424 invoked by uid 99); 7 Jan 2010 09:18:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jan 2010 09:18:49 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jan 2010 09:18:41 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1NSoVZ-0006PS-8B for user@struts.apache.org; Thu, 07 Jan 2010 01:18:21 -0800 Message-ID: <27056996.post@talk.nabble.com> Date: Thu, 7 Jan 2010 01:18:21 -0800 (PST) From: Manimaran Ramaraj To: user@struts.apache.org Subject: Re: What may cause ognl.InappropriateExpressionException warning ? In-Reply-To: <26494899.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Nabble-From: manimaran.ramaraj@aspiresys.com References: <4988ADFF.6090307@encs.concordia.ca> <4988B417.3010607@encs.concordia.ca> <4988B9AD.6000202@yahoo.com> <4989A833.8080408@encs.concordia.ca> <4989E588.5020503@encs.concordia.ca> <23113496.post@talk.nabble.com> <26481347.post@talk.nabble.com> <4B0AC900.60303@gmail.com> <26494899.post@talk.nabble.com> Hi=20 =20 d-\d+?-[sop] =20 Instead of applying the above pattern, apply the following in struts.xml its easy and simple to resolve the problem of ( Inappropriate OGNL expression d-345234) =09 ~ Maran jsubei wrote: >=20 > Ok, I've configured the struts.xml as you say (directly in the > defaultStack for me) and it's perfect ! Thank you a lot ! > Regards, > Norbert >=20 >=20 > Oscar Calder=C3=B3n-2 wrote: >>=20 >> As Musachy says, you could ignore it in the params interceptor in this >> way: >>=20 >> >> =20 >> d-\d+?-[sop] >> =20 >> >>=20 >>> >>> >>> Musachy Barroso escribi=C3=B3: >>>> try adding quotes around it 'd-6836677-p' then it will be interpreted >>>> as a string, or try to ignore it in the params interceptor. >>>> >>>> On Mon, Nov 23, 2009 at 8:27 AM, jsubei wrote: >>>> =20 >>>>> Dear all, >>>>> >>>>> I'm using struts 2.1.8 with displaytag 1.2 >>>>> and, of course, I have the same problem. >>>>> >>>>> Have you found a solution ? >>>>> >>>>> Thank you, >>>>> >>>>> Norbert >>>>> >>>>> >>>>> >>>>> jctovarueda wrote: >>>>> =20 >>>>>> Lu Ying, >>>>>> >>>>>> I could detect the problem, it's apparently a bug from Struts 2 >>>>>> (XWorks). >>>>>> >>>>>> It seems to be that OGNL Utils setValue confuses the "d-6836677-p" >>>>>> expression as substract operation, it means, the expression is >>>>>> evaluated >>>>>> like ( d - 6836677 ) - p as mathematical operation. >>>>>> >>>>>> I will try to find a solution to this problem, if you have some >>>>>> solution, >>>>>> pls write to me. >>>>>> >>>>>> Regards, >>>>>> JC >>>>>> >>>>>> >>>>>> luy wrote: >>>>>> =20 >>>>>>>>> params interceptor doesn't like parameters with spaces >>>>>>>>> in the name (this was fixed in xwork already), to fix it, set >>>>>>>>> "acceptedParamNames" to "[[\p{Graph}\s]&&[^,#:=3D]]*" in your par= am >>>>>>>>> interceptor. >>>>>>>>> =20 >>>>>>>> Right, I am using displayTag(displaytag-1.2.jar). The parameter >>>>>>>> looks >>>>>>>> like: >>>>>>>> >>>>>>>> https://info/ProcessBrowse.action?d-6836677-p=3D7 >>>>>>>> >>>>>>>> "d-6836677-p=3D7" caused the problem. Is there any way that >>>>>>>> "d-6836677-p=3D7" can be accepted? >>>>>>>> =20 >>>>>>> Ok, I did a hack to disable warning message as a temporal solution: >>>>>>> >>>>>>> log4j.logger.com.opensymphony.xwork2.util.logging.commons.CommonsLo= gger=3DERROR >>>>>>> >>>>>>> -- >>>>>>> Lu Ying >>>>>>> >>>>>>> -------------------------------------------------------------------= -- >>>>>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org >>>>>>> For additional commands, e-mail: user-help@struts.apache.org >>>>>>> >>>>>>> >>>>>>> >>>>>>> =20 >>>>>> =20 >>>>> -- >>>>> View this message in context: >>>>> http://old.nabble.com/What-may-cause---ognl.InappropriateExpressionEx= ception--warning---tp21818620p26481347.html >>>>> Sent from the Struts - User mailing list archive at Nabble.com. >>>>> >>>>> >>>>> --------------------------------------------------------------------- >>>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org >>>>> For additional commands, e-mail: user-help@struts.apache.org >>>>> >>>>> >>>>> =20 >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org >>>> For additional commands, e-mail: user-help@struts.apache.org >>>> >>>> >>>> =20 >>=20 >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org >> For additional commands, e-mail: user-help@struts.apache.org >>=20 >>=20 >>=20 >=20 >=20 --=20 View this message in context: http://old.nabble.com/What-may-cause---ognl.I= nappropriateExpressionException--warning---tp21818620p27056996.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org