Hi <interceptor-ref name="sampleInterceptorStackIncludingDefaultStack"> d-\d+?-[sop] </interceptor-ref>
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) <interceptor name="params" class="com.opensymphony.xwork2.interceptor.ParametersInterceptor"/> ~ Maran jsubei wrote: > > 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 > > > Oscar Calderón-2 wrote: >> >> As Musachy says, you could ignore it in the params interceptor in this >> way: >> >> <interceptor-ref name="sampleInterceptorStackIncludingDefaultStack"> >> >> d-\d+?-[sop] >> >> </interceptor-ref> >> >>> >>> >>> Musachy Barroso escribió: >>>> 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 <jsu...@yahoo.fr> wrote: >>>> >>>>> 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: >>>>> >>>>>> 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: >>>>>> >>>>>>>>> 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]&&[^,#:=]]*" in your param >>>>>>>>> interceptor. >>>>>>>>> >>>>>>>> Right, I am using displayTag(displaytag-1.2.jar). The parameter >>>>>>>> looks >>>>>>>> like: >>>>>>>> >>>>>>>> https://info/ProcessBrowse.action?d-6836677-p=7 >>>>>>>> >>>>>>>> "d-6836677-p=7" caused the problem. Is there any way that >>>>>>>> "d-6836677-p=7" can be accepted? >>>>>>>> >>>>>>> Ok, I did a hack to disable warning message as a temporal solution: >>>>>>> >>>>>>> log4j.logger.com.opensymphony.xwork2.util.logging.commons.CommonsLogger=ERROR >>>>>>> >>>>>>> -- >>>>>>> Lu Ying >>>>>>> >>>>>>> --------------------------------------------------------------------- >>>>>>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >>>>>>> For additional commands, e-mail: user-h...@struts.apache.org >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>> -- >>>>> View this message in context: >>>>> http://old.nabble.com/What-may-cause---ognl.InappropriateExpressionException--warning---tp21818620p26481347.html >>>>> Sent from the Struts - User mailing list archive at Nabble.com. >>>>> >>>>> >>>>> --------------------------------------------------------------------- >>>>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >>>>> For additional commands, e-mail: user-h...@struts.apache.org >>>>> >>>>> >>>>> >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >>>> For additional commands, e-mail: user-h...@struts.apache.org >>>> >>>> >>>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> For additional commands, e-mail: user-h...@struts.apache.org >> >> >> > > -- View this message in context: http://old.nabble.com/What-may-cause---ognl.InappropriateExpressionException--warning---tp21818620p27056996.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org