Re: What may cause ognl.InappropriateExpressionException warning ?

2010-01-07 Thread Manimaran Ramaraj

Hi 



 d-\d+?-[sop]
 


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)




~ 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:
>> 
>> 
>>   
>>  d-\d+?-[sop]
>>   
>> 
>> 
>>>
>>>
>>> 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  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



Re: What may cause ognl.InappropriateExpressionException warning ?

2009-12-04 Thread bjornw

Hi, I have the very same problem. But I don't want to exclude these params
from the request. I fetch them "manually" in my action class, not using
OGNL, and this works perfectly. But I don't want my log cluttered with OGNL
warning. Is there a way of supressing only the OGNL warnings and not all
warnings in the application?

BR
Björn



Oscar Calderón-2 wrote:
> 
> As Musachy says, you could ignore it in the params interceptor in this
> way:
> 
> 
>   
>  d-\d+?-[sop]
>   
> 
> 
>>
>>
>> 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  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---tp21818620p26635839.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



Re: What may cause ognl.InappropriateExpressionException warning ?

2009-11-24 Thread jsubei

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:
> 
> 
>   
>  d-\d+?-[sop]
>   
> 
> 
>>
>>
>> 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  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---tp21818620p26494899.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



Re: What may cause ognl.InappropriateExpressionException warning ?

2009-11-23 Thread Oscar

As Musachy says, you could ignore it in the params interceptor in this way:


 
d-\d+?-[sop]
 
   




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  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



Re: What may cause ognl.InappropriateExpressionException warning ?

2009-11-23 Thread Musachy Barroso
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:
>
> 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



Re: What may cause ognl.InappropriateExpressionException warning ?

2009-11-23 Thread jsubei

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



Re: What may cause ognl.InappropriateExpressionException warning ?

2009-04-18 Thread jctovarueda

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://www.nabble.com/What-may-cause---ognl.InappropriateExpressionException--warning---tp21818620p23113496.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



Re: What may cause ognl.InappropriateExpressionException warning ?

2009-02-04 Thread Emi Lu

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



Re: What may cause ognl.InappropriateExpressionException warning ?

2009-02-04 Thread Musachy Barroso
That should work, it will complain in the logs that it wasn't able to
bind that parameter to the action, but you can just ignore it, or
configure the params interceptor to ignore it.

musachy

On Wed, Feb 4, 2009 at 9:37 AM, Emi Lu  wrote:
> Good morning Musachy,
>
>> 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?
>
>
> --
> Lu Ying
>
>
>> On Tue, Feb 3, 2009 at 5:36 PM, Musachy Barroso  wrote:
>>>
>>> That looks familiar, are you using displaytag?
>>>
>>> musachy
>>>
>>> On Tue, Feb 3, 2009 at 4:39 PM, Dave Newton 
>>> wrote:

 Wouldn't it make sense to include the JSP/expression that's causing the
 error?

 Dave

 Emi Lu wrote:
>>
>> When switching query result page by page (online), I got the following
>> warning message:
>>
>> WARNING: Error setting value
>> ognl.InappropriateExpressionException: Inappropriate OGNL expression:
>> (d
>> - 6836677) - p
>>
>> I am lost. Could someone tell me what may cause this warning please?
>
> Info searched for now :
> http://www.junlu.com/msg/317273.html
>
> But I already disabled devMode in struts.xml:
> 
> 
>
>
> By the way, I am using:
> struts-core 2.1.6
> displaytag-1.2.jar
>
>
>



-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: What may cause ognl.InappropriateExpressionException warning ?

2009-02-04 Thread Emi Lu

Good morning Musachy,


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?



--
Lu Ying



On Tue, Feb 3, 2009 at 5:36 PM, Musachy Barroso  wrote:

That looks familiar, are you using displaytag?

musachy

On Tue, Feb 3, 2009 at 4:39 PM, Dave Newton  wrote:

Wouldn't it make sense to include the JSP/expression that's causing the
error?

Dave

Emi Lu wrote:

When switching query result page by page (online), I got the following
warning message:

WARNING: Error setting value
ognl.InappropriateExpressionException: Inappropriate OGNL expression: (d
- 6836677) - p

I am lost. Could someone tell me what may cause this warning please?

Info searched for now :
http://www.junlu.com/msg/317273.html

But I already disabled devMode in struts.xml:




By the way, I am using:
struts-core 2.1.6
displaytag-1.2.jar




-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: What may cause ognl.InappropriateExpressionException warning ?

2009-02-03 Thread Musachy Barroso
If you are, the 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.

musachy

On Tue, Feb 3, 2009 at 5:36 PM, Musachy Barroso  wrote:
> That looks familiar, are you using displaytag?
>
> musachy
>
> On Tue, Feb 3, 2009 at 4:39 PM, Dave Newton  wrote:
>> Wouldn't it make sense to include the JSP/expression that's causing the
>> error?
>>
>> Dave
>>
>> Emi Lu wrote:

 When switching query result page by page (online), I got the following
 warning message:

 WARNING: Error setting value
 ognl.InappropriateExpressionException: Inappropriate OGNL expression: (d
 - 6836677) - p

 I am lost. Could someone tell me what may cause this warning please?
>>>
>>> Info searched for now :
>>> http://www.junlu.com/msg/317273.html
>>>
>>> But I already disabled devMode in struts.xml:
>>> 
>>> 
>>>
>>>
>>> By the way, I am using:
>>> struts-core 2.1.6
>>> displaytag-1.2.jar
>>>
>>> Thanks,
>>>
>>> --
>>> Lu Ying
>>>
>>> -
>>> 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
>>
>>
>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>



-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: What may cause ognl.InappropriateExpressionException warning ?

2009-02-03 Thread Musachy Barroso
That looks familiar, are you using displaytag?

musachy

On Tue, Feb 3, 2009 at 4:39 PM, Dave Newton  wrote:
> Wouldn't it make sense to include the JSP/expression that's causing the
> error?
>
> Dave
>
> Emi Lu wrote:
>>>
>>> When switching query result page by page (online), I got the following
>>> warning message:
>>>
>>> WARNING: Error setting value
>>> ognl.InappropriateExpressionException: Inappropriate OGNL expression: (d
>>> - 6836677) - p
>>>
>>> I am lost. Could someone tell me what may cause this warning please?
>>
>> Info searched for now :
>> http://www.junlu.com/msg/317273.html
>>
>> But I already disabled devMode in struts.xml:
>> 
>> 
>>
>>
>> By the way, I am using:
>> struts-core 2.1.6
>> displaytag-1.2.jar
>>
>> Thanks,
>>
>> --
>> Lu Ying
>>
>> -
>> 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
>
>



-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: What may cause ognl.InappropriateExpressionException warning ?

2009-02-03 Thread Dave Newton
Wouldn't it make sense to include the JSP/expression that's causing the 
error?


Dave

Emi Lu wrote:
When switching query result page by page (online), I got the following 
warning message:


WARNING: Error setting value
ognl.InappropriateExpressionException: Inappropriate OGNL expression: 
(d - 6836677) - p


I am lost. Could someone tell me what may cause this warning please?


Info searched for now :
http://www.junlu.com/msg/317273.html

But I already disabled devMode in struts.xml:




By the way, I am using:
struts-core 2.1.6
displaytag-1.2.jar

Thanks,

--
Lu Ying

-
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



Re: What may cause ognl.InappropriateExpressionException warning ?

2009-02-03 Thread Emi Lu
When switching query result page by page (online), I got the following 
warning message:


WARNING: Error setting value
ognl.InappropriateExpressionException: Inappropriate OGNL expression: (d 
- 6836677) - p


I am lost. Could someone tell me what may cause this warning please?


Info searched for now :
http://www.junlu.com/msg/317273.html

But I already disabled devMode in struts.xml:




By the way, I am using:
struts-core 2.1.6
displaytag-1.2.jar

Thanks,

--
Lu Ying

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



What may cause ognl.InappropriateExpressionException warning ?

2009-02-03 Thread Emi Lu

Good morning,

When switching query result page by page (online), I got the following 
warning message:


WARNING: Error setting value
ognl.InappropriateExpressionException: Inappropriate OGNL expression: (d 
- 6836677) - p


I am lost. Could someone tell me what may cause this warning please?

Thanks a lot!

--
Lu Ying

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org