RE: OGNL WARNING

2013-06-28 Thread Martin Gainty
Hack1)
rewrite the interceptor


 
 
 
 good_input.ftl
 

the request will need to go to the action alias 'actionPrefix'  instead of the 
predefined 'submit' action alias.

so the ftl  will rewrite the action alias for submit tag
 the ftl will look something like

 <@s.form action="submit" namespace="/tags/non-ui/actionPrefix" method="POST">  
 
   <@s.submit name="action:actionPrefix" value="%{'action prefix'}" />

this is dangerous as it would change ALL of the submit names for 
action="someAction" using POST method

HACK2)
better to do it on a action by action basis:

 
   
   
 

Either way is a hack 
 
Best advice is to instruct your junior engineers to insert properly formatted 
action aliases..e.g. Action!execute

Martin 
__ 
Verzicht und Vertraulichkeitanmerkung

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.



 
> Date: Fri, 28 Jun 2013 15:42:56 +0530
> Subject: Re: OGNL WARNING
> From: sreekanth.n...@egovernments.org
> To: user@struts.apache.org
> 
> As i replied in the jira, we are heavily depends on "bang" syntax, how can
> we fix this... changing all ! is literally impossible now, since we have
> hundreds of action urls are in "bang" style.
> 
> -- 
> Thanks & Regards
> Srikanth
> Software Developer
> 
> eGovernments Foundations
> www.egovernments.org
> Mob : 9980078913
> 
> 
> 
> On Fri, Jun 28, 2013 at 3:27 PM, Martin Gainty  wrote:
> 
> >
> > Using the "bang" syntax, any alias method on an Action can be called from
> > the
> > action, submit, or button tags.
> >
> >
> > 
> >
> > Martin
> > __
> > Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
> >
> > Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
> > Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte
> > Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht
> > dient lediglich dem Austausch von Informationen und entfaltet keine
> > rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von
> > E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
> >
> > Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le
> > destinataire prévu, nous te demandons avec bonté que pour satisfaire
> > informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie
> > de ceci est interdite. Ce message sert à l'information seulement et n'aura
> > pas n'importe quel effet légalement obligatoire. Étant donné que les email
> > peuvent facilement être sujets à la manipulation, nous ne pouvons accepter
> > aucune responsabilité pour le contenu fourni.
> >
> >
> > > Date: Fri, 28 Jun 2013 13:13:26 +0530
> > > Subject: OGNL WARNING
> > > From: sreekanth.n...@egovernments.org
> > > To: user@struts.apache.org
> > >
> > > Don't know whats the reason i'm getting this following WARNIng in latest
> > > struts distro.
> > >
> > > WARN  [com.opensymphony.xwork2.ognl.OgnlValueStack]
> > > (http-localhost/127.0.0.1:8080-1) Error setting expression
> > > 'action:documentManager!updateDocument' with value
> > > '[Ljava.lang.String;@1c1abc1': ognl.ExpressionSyntaxException: Malformed
> > > OGNL expression: action:documentManager!updateDocument
> > > [ognl.ParseException: Encountered " ":" ": "" at line 1, column 7.
> > > Was expecting one of:
> > > 
> > > "," ...
> > > "=" ...
> > > "?" ...
> > > "||" ...
> > > "or" ...
> > > "&&" ...
> > > "and" ...
> > > "|" ...
> > > "bor" ...
> > > "^" ...
> > > "xor" ...
> > > "&" ...
> > > "band" ...
> > > "==" ...
&

Re: OGNL WARNING

2013-06-28 Thread Sreekanth S. Nair
As i replied in the jira, we are heavily depends on "bang" syntax, how can
we fix this... changing all ! is literally impossible now, since we have
hundreds of action urls are in "bang" style.

-- 
Thanks & Regards
Srikanth
Software Developer

eGovernments Foundations
www.egovernments.org
Mob : 9980078913



On Fri, Jun 28, 2013 at 3:27 PM, Martin Gainty  wrote:

>
> Using the "bang" syntax, any alias method on an Action can be called from
> the
> action, submit, or button tags.
>
>
> 
>
> Martin
> __
> Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
>
> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
> Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte
> Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht
> dient lediglich dem Austausch von Informationen und entfaltet keine
> rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von
> E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
>
> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le
> destinataire prévu, nous te demandons avec bonté que pour satisfaire
> informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie
> de ceci est interdite. Ce message sert à l'information seulement et n'aura
> pas n'importe quel effet légalement obligatoire. Étant donné que les email
> peuvent facilement être sujets à la manipulation, nous ne pouvons accepter
> aucune responsabilité pour le contenu fourni.
>
>
> > Date: Fri, 28 Jun 2013 13:13:26 +0530
> > Subject: OGNL WARNING
> > From: sreekanth.n...@egovernments.org
> > To: user@struts.apache.org
> >
> > Don't know whats the reason i'm getting this following WARNIng in latest
> > struts distro.
> >
> > WARN  [com.opensymphony.xwork2.ognl.OgnlValueStack]
> > (http-localhost/127.0.0.1:8080-1) Error setting expression
> > 'action:documentManager!updateDocument' with value
> > '[Ljava.lang.String;@1c1abc1': ognl.ExpressionSyntaxException: Malformed
> > OGNL expression: action:documentManager!updateDocument
> > [ognl.ParseException: Encountered " ":" ": "" at line 1, column 7.
> > Was expecting one of:
> > 
> > "," ...
> > "=" ...
> > "?" ...
> > "||" ...
> > "or" ...
> > "&&" ...
> > "and" ...
> > "|" ...
> > "bor" ...
> > "^" ...
> > "xor" ...
> > "&" ...
> > "band" ...
> > "==" ...
> > "eq" ...
> > "!=" ...
> > "neq" ...
> > "<" ...
> > "lt" ...
> > ">" ...
> > "gt" ...
> > "<=" ...
> > "lte" ...
> > ">=" ...
> > "gte" ...
> > "in" ...
> > "not" ...
> > "<<" ...
> > "shl" ...
> > ">>" ...
> > "shr" ...
> > ">>>" ...
> > "ushr" ...
> > "+" ...
> > "-" ...
> > "*" ...
> > "/" ...
> > "%" ...
> > "instanceof" ...
> > "." ...
> > "(" ...
> > "[" ...
> >  ...
> > "(" ...
> > ]
> > at ognl.Ognl.parseExpression(Ognl.java:112) [ognl-3.0.6.jar:]
> > at com.opensymphony.xwork2.ognl.OgnlUtil.compile(OgnlUtil.java:268)
> > [xwork-core-2.3.15.jar:2.3.15]
> > at com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:230)
> > [xwork-core-2.3.15.jar:2.3.15]
> > at
> >
> com.opensymphony.xwork2.ognl.OgnlValueStack.trySetValue(OgnlValueStack.java:183)
> > [xwork-core-2.3.15.jar:2.3.15]
> > at
> >
> com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:170)
> > [xwork-core-2.3.15.jar:2.3.15]
> > at
> >
> com.opensymphony.xwork2.ognl.OgnlValueStack.setParameter(OgnlValueStack.java:148)
> > [xwork-core-2.3.15.jar:2.3.15]
> > at
> >
> com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:318)
&g

RE: OGNL WARNING

2013-06-28 Thread Martin Gainty

Using the "bang" syntax, any alias method on an Action can be called from the 
action, submit, or button tags.




Martin 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.

Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.

 
> Date: Fri, 28 Jun 2013 13:13:26 +0530
> Subject: OGNL WARNING
> From: sreekanth.n...@egovernments.org
> To: user@struts.apache.org
> 
> Don't know whats the reason i'm getting this following WARNIng in latest
> struts distro.
> 
> WARN  [com.opensymphony.xwork2.ognl.OgnlValueStack]
> (http-localhost/127.0.0.1:8080-1) Error setting expression
> 'action:documentManager!updateDocument' with value
> '[Ljava.lang.String;@1c1abc1': ognl.ExpressionSyntaxException: Malformed
> OGNL expression: action:documentManager!updateDocument
> [ognl.ParseException: Encountered " ":" ": "" at line 1, column 7.
> Was expecting one of:
> 
> "," ...
> "=" ...
> "?" ...
> "||" ...
> "or" ...
> "&&" ...
> "and" ...
> "|" ...
> "bor" ...
> "^" ...
> "xor" ...
> "&" ...
> "band" ...
> "==" ...
> "eq" ...
> "!=" ...
> "neq" ...
> "<" ...
> "lt" ...
> ">" ...
> "gt" ...
> "<=" ...
> "lte" ...
> ">=" ...
> "gte" ...
> "in" ...
> "not" ...
> "<<" ...
> "shl" ...
> ">>" ...
> "shr" ...
> ">>>" ...
> "ushr" ...
> "+" ...
> "-" ...
> "*" ...
> "/" ...
> "%" ...
> "instanceof" ...
> "." ...
> "(" ...
> "[" ...
>  ...
> "(" ...
> ]
> at ognl.Ognl.parseExpression(Ognl.java:112) [ognl-3.0.6.jar:]
> at com.opensymphony.xwork2.ognl.OgnlUtil.compile(OgnlUtil.java:268)
> [xwork-core-2.3.15.jar:2.3.15]
> at com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:230)
> [xwork-core-2.3.15.jar:2.3.15]
> at
> com.opensymphony.xwork2.ognl.OgnlValueStack.trySetValue(OgnlValueStack.java:183)
> [xwork-core-2.3.15.jar:2.3.15]
> at
> com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:170)
> [xwork-core-2.3.15.jar:2.3.15]
> at
> com.opensymphony.xwork2.ognl.OgnlValueStack.setParameter(OgnlValueStack.java:148)
> [xwork-core-2.3.15.jar:2.3.15]
> at
> com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:318)
> [xwork-core-2.3.15.jar:2.3.15]
> at
> com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:231)
> [xwork-core-2.3.15.jar:2.3.15]
> at
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
> [xwork-core-2.3.15.jar:2.3.15]
> at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
> [xwork-core-2.3.15.jar:2.3.15]
> at
> com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:193)
> [xwork-core-2.3.15.jar:2.3.15]
> at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
> [xwork-core-2.3.15.jar:2.3.15]
> at
> com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:189)
> [xwork-core-2.3.15.jar:2.3.15]
> at
> com.opensymphony.xwork2.DefaultActionInvocation.

Re: OGNL WARNING

2013-06-28 Thread Sreekanth S. Nair
Updated in Jira
https://issues.apache.org/jira/browse/WW-4132

-- 
Thanks & Regards
Srikanth
Software Developer

eGovernments Foundations
www.egovernments.org
Mob : 9980078913



On Fri, Jun 28, 2013 at 1:50 PM, Maurizio Cucchiara
wrote:

> So, could you provide us some more details, maybe by filing an issue on
> jira [1] with a sample code.
>
> [1] https://issues.apache.org/jira/browse/WW
>
> Twitter :http://www.twitter.com/m_cucchiara
> G+  :https://plus.google.com/107903711540963855921
> Linkedin:http://www.linkedin.com/in/mauriziocucchiara
> VisualizeMe: http://vizualize.me/maurizio.cucchiara?r=maurizio.cucchiara
>
> Maurizio Cucchiara
>
>
> On 28 June 2013 10:10, Sreekanth S. Nair  >wrote:
>
> > Yes it was working
> >
> > --
> > Thanks & Regards
> > Srikanth
> > Software Developer
> > 
> > eGovernments Foundations
> > www.egovernments.org
> > Mob : 9980078913
> > 
> >
> >
> > On Fri, Jun 28, 2013 at 1:21 PM, Maurizio Cucchiara
> > wrote:
> >
> > > Looks like the colon char is not an expected input parameter.
> > > You talk about latest distro, did it works before with other distros?
> > >
> > > On 28 June 2013 09:43, Sreekanth S. Nair <
> > sreekanth.n...@egovernments.org
> > > >wrote:
> > >
> > > > action:documentManager!updateDocument
> > > >
> > >
> > >
> > >
> > > Twitter :http://www.twitter.com/m_cucchiara
> > > G+  :https://plus.google.com/107903711540963855921
> > > Linkedin:http://www.linkedin.com/in/mauriziocucchiara
> > > VisualizeMe:
> http://vizualize.me/maurizio.cucchiara?r=maurizio.cucchiara
> > >
> > > Maurizio Cucchiara
> > >
> >
>


Re: OGNL WARNING

2013-06-28 Thread Maurizio Cucchiara
So, could you provide us some more details, maybe by filing an issue on
jira [1] with a sample code.

[1] https://issues.apache.org/jira/browse/WW

Twitter :http://www.twitter.com/m_cucchiara
G+  :https://plus.google.com/107903711540963855921
Linkedin:http://www.linkedin.com/in/mauriziocucchiara
VisualizeMe: http://vizualize.me/maurizio.cucchiara?r=maurizio.cucchiara

Maurizio Cucchiara


On 28 June 2013 10:10, Sreekanth S. Nair wrote:

> Yes it was working
>
> --
> Thanks & Regards
> Srikanth
> Software Developer
> 
> eGovernments Foundations
> www.egovernments.org
> Mob : 9980078913
> 
>
>
> On Fri, Jun 28, 2013 at 1:21 PM, Maurizio Cucchiara
> wrote:
>
> > Looks like the colon char is not an expected input parameter.
> > You talk about latest distro, did it works before with other distros?
> >
> > On 28 June 2013 09:43, Sreekanth S. Nair <
> sreekanth.n...@egovernments.org
> > >wrote:
> >
> > > action:documentManager!updateDocument
> > >
> >
> >
> >
> > Twitter :http://www.twitter.com/m_cucchiara
> > G+  :https://plus.google.com/107903711540963855921
> > Linkedin:http://www.linkedin.com/in/mauriziocucchiara
> > VisualizeMe: http://vizualize.me/maurizio.cucchiara?r=maurizio.cucchiara
> >
> > Maurizio Cucchiara
> >
>


Re: OGNL WARNING

2013-06-28 Thread Sreekanth S. Nair
Yes it was working

-- 
Thanks & Regards
Srikanth
Software Developer

eGovernments Foundations
www.egovernments.org
Mob : 9980078913



On Fri, Jun 28, 2013 at 1:21 PM, Maurizio Cucchiara
wrote:

> Looks like the colon char is not an expected input parameter.
> You talk about latest distro, did it works before with other distros?
>
> On 28 June 2013 09:43, Sreekanth S. Nair  >wrote:
>
> > action:documentManager!updateDocument
> >
>
>
>
> Twitter :http://www.twitter.com/m_cucchiara
> G+  :https://plus.google.com/107903711540963855921
> Linkedin:http://www.linkedin.com/in/mauriziocucchiara
> VisualizeMe: http://vizualize.me/maurizio.cucchiara?r=maurizio.cucchiara
>
> Maurizio Cucchiara
>


Re: OGNL WARNING

2013-06-28 Thread Maurizio Cucchiara
Looks like the colon char is not an expected input parameter.
You talk about latest distro, did it works before with other distros?

On 28 June 2013 09:43, Sreekanth S. Nair wrote:

> action:documentManager!updateDocument
>



Twitter :http://www.twitter.com/m_cucchiara
G+  :https://plus.google.com/107903711540963855921
Linkedin:http://www.linkedin.com/in/mauriziocucchiara
VisualizeMe: http://vizualize.me/maurizio.cucchiara?r=maurizio.cucchiara

Maurizio Cucchiara


OGNL WARNING

2013-06-28 Thread Sreekanth S. Nair
Don't know whats the reason i'm getting this following WARNIng in latest
struts distro.

WARN  [com.opensymphony.xwork2.ognl.OgnlValueStack]
(http-localhost/127.0.0.1:8080-1) Error setting expression
'action:documentManager!updateDocument' with value
'[Ljava.lang.String;@1c1abc1': ognl.ExpressionSyntaxException: Malformed
OGNL expression: action:documentManager!updateDocument
[ognl.ParseException: Encountered " ":" ": "" at line 1, column 7.
Was expecting one of:

"," ...
"=" ...
"?" ...
"||" ...
"or" ...
"&&" ...
"and" ...
"|" ...
"bor" ...
"^" ...
"xor" ...
"&" ...
"band" ...
"==" ...
"eq" ...
"!=" ...
"neq" ...
"<" ...
"lt" ...
">" ...
"gt" ...
"<=" ...
"lte" ...
">=" ...
"gte" ...
"in" ...
"not" ...
"<<" ...
"shl" ...
">>" ...
"shr" ...
">>>" ...
"ushr" ...
"+" ...
"-" ...
"*" ...
"/" ...
"%" ...
"instanceof" ...
"." ...
"(" ...
"[" ...
 ...
"(" ...
]
at ognl.Ognl.parseExpression(Ognl.java:112) [ognl-3.0.6.jar:]
at com.opensymphony.xwork2.ognl.OgnlUtil.compile(OgnlUtil.java:268)
[xwork-core-2.3.15.jar:2.3.15]
at com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:230)
[xwork-core-2.3.15.jar:2.3.15]
at
com.opensymphony.xwork2.ognl.OgnlValueStack.trySetValue(OgnlValueStack.java:183)
[xwork-core-2.3.15.jar:2.3.15]
at
com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:170)
[xwork-core-2.3.15.jar:2.3.15]
at
com.opensymphony.xwork2.ognl.OgnlValueStack.setParameter(OgnlValueStack.java:148)
[xwork-core-2.3.15.jar:2.3.15]
at
com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:318)
[xwork-core-2.3.15.jar:2.3.15]
at
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:231)
[xwork-core-2.3.15.jar:2.3.15]
at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
[xwork-core-2.3.15.jar:2.3.15]
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
[xwork-core-2.3.15.jar:2.3.15]
at
com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:193)
[xwork-core-2.3.15.jar:2.3.15]
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
[xwork-core-2.3.15.jar:2.3.15]
at
com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:189)
[xwork-core-2.3.15.jar:2.3.15]
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)
[xwork-core-2.3.15.jar:2.3.15]
at
org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)
[struts2-core-2.3.15.jar:2.3.15]
at
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:563)
[struts2-core-2.3.15.jar:2.3.15]
at
org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)
[struts2-core-2.3.15.jar:2.3.15]
at
org.apache.struts2.dispatcher.ng.filter.StrutsExecuteFilter.doFilter(StrutsExecuteFilter.java:93)
[struts2-core-2.3.15.jar:2.3.15]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
[jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
[jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
at
com.opensymphony.sitemesh.webapp.SiteMeshFilter.obtainContent(SiteMeshFilter.java:129)
[sitemesh-2.4.2.jar:]
at
com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:77)
[sitemesh-2.4.2.jar:]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
[jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
[jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
at
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareFilter.doFilter(StrutsPrepareFilter.java:91)
[struts2-core-2.3.15.jar:2.3.15]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
[jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
[jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
at
org.springmodules.jcr.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:93)
[spring-modules-jcr-0.9patch.jar:0.9-20080306135025]
at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
[spring-web-3.2.3.RELEASE.jar:3.2.3.RELEASE]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
[jbossweb-7.2.0.Final-redhat-1.jar:7.2.0.Final-redhat-1]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF

Re: Struts 2 WW-1714: "Using the Redirect Action Result withparameters to the target action causes an OGNL warning" still fails

2011-09-09 Thread Maurizio Cucchiara
I got your point: what is explained on JIRA would not seem related to what
really happen.
On the other hand, it's just a debug message, I think is nothing to take
care.
Don't you think so?

Maurizio Cucchiara


Re: Struts 2 WW-1714: "Using the Redirect Action Result withparameters to the target action causes an OGNL warning" still fails

2011-09-08 Thread JOSE L MARTINEZ-AVIAL
Maurizio,
   I think I have some confusion here, so please correct me if I'm wrong.
Reading again the issue in JIRA, I understand that the correction was to
change the log level for that error to DEBUG, so it is still there, but it
would only appear if the log level is setup to DEBUG, and the devMode is set
to true. Is that right? Because I have the log level setup to DEBUG, but the
devMode is set to false, so it shouldn't be the case. I'm sorry, but the
description of the fix on JIRA doesn't seem very clear to me.

Thanks

JL

2011/9/8 Maurizio Cucchiara 

> I am sorry, but I am not able to reproduce it.
> This is what I did (please see [1] for further details):
> mvn archetype:generate -B \
>   -DgroupId=tutorial \
>   -DartifactId=tutorial \
>   -DarchetypeGroupId=org.apache.struts \
>   -DarchetypeArtifactId=struts2-archetype-blank \
>   -DarchetypeVersion=2.2.3.1
> Then I opened example.xml and added what you wrote before (I only
> changed the jsp):
>
>  
>  
>  NavigateTo
>  Enroll1
>  
>  
>  
>   /example/HelloWorld.jsp
>  
>
> Launched jetty with
> mvn jetty:run
>
> Now whenever I go to
> http://localhost:8080/tutorial/example/TestNavigateTo.action, Struts
> send a redirect to
> http://localhost:8080/tutorial/example/NavigateTo.action?navigateTo=Enroll1
>
> So, my guess is there is something with your current configuration
> (application server, environment, etc.)
>
> PS: FYI the latest release of Struts 2 is 2.2.3.1  (see
> http://struts.apache.org/2.2.3.1/index.html)
>
> [1] http://struts.apache.org/2.2.3/docs/struts-2-maven-archetypes.html
> Maurizio Cucchiara
>
>
>
> On 8 September 2011 14:19, JOSE L MARTINEZ-AVIAL  wrote:
> > I just have been able to replicate it on a blank Strus2 application
> > (Struts.2.2.3) I just added a package and a JSP to have something to
> > navigate to, and it is showing the same error message.
> >
> > 2011/9/8 JOSE L MARTINEZ-AVIAL 
> >
> >> Hi,
> >> I just added a very simple package to my app to test this. The package
> is
> >> defined as follows:
> >>
> >> 
> >> 
> >> 
> >>
> >> NavigateTo
> >> Enroll1
> >> 
> >> 
> >> 
> >> /WEB-INF/jsp/test.jsp
> >> 
> >> 
> >>
> >>It's still failing when I use that action. Any thoughts?
> >>
> >> 2011/9/8 
> >>
> >> Humm, I think I'm going to duplicate the two actions and go step by step
> >>> taking out my own additions(as you said Tiles and get back to the
> default
> >>> stack) and see on what moment it works fine. I'll let you know.
> >>>
> >>> Thanks
> >>>
> >>> JL
> >>> Sent via BlackBerry from T-Mobile
> >>>
> >>> -Original Message-
> >>> From: Maurizio Cucchiara 
> >>> Sender: maurizio.cucchi...@gmail.com
> >>> Date: Thu, 8 Sep 2011 10:44:36
> >>> To: Struts Users Mailing List
> >>> Reply-To: "Struts Users Mailing List" 
> >>> Subject: Re: Struts 2 WW-1714: "Using the Redirect Action Result with
> >>>  parameters to the target action causes an OGNL warning" still fails
> >>>
> >>> Please forget my last mail, I mixed up the action name with the param
> >>> name.
> >>> Anyway I have been able to test your specific use case, using the
> >>> blank webapp, and it works like a charm (that is without throwing any
> >>> exception).
> >>> So, I guess we need to know some further details.
> >>> Also, could you try to change the result type from tiles to dispatcher
> >>> (the default value), in order to exclude that is something related to
> >>> tiles.
> >>>
> >>> Maurizio Cucchiara
> >>>
> >>>
> >>>
> >>> On 7 September 2011 20:35, JOSE L MARTINEZ-AVIAL 
> >>> wrote:
> >>> >  eco.login.navigate-to.screen
> >>>
> >>> -
> >>> 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: Struts 2 WW-1714: "Using the Redirect Action Result withparameters to the target action causes an OGNL warning" still fails

2011-09-08 Thread Maurizio Cucchiara
I am sorry, but I am not able to reproduce it.
This is what I did (please see [1] for further details):
mvn archetype:generate -B \
   -DgroupId=tutorial \
   -DartifactId=tutorial \
   -DarchetypeGroupId=org.apache.struts \
   -DarchetypeArtifactId=struts2-archetype-blank \
   -DarchetypeVersion=2.2.3.1
Then I opened example.xml and added what you wrote before (I only
changed the jsp):

  
  
  NavigateTo
  Enroll1
  
  
  
  /example/HelloWorld.jsp
  

Launched jetty with
mvn jetty:run

Now whenever I go to
http://localhost:8080/tutorial/example/TestNavigateTo.action, Struts
send a redirect to
http://localhost:8080/tutorial/example/NavigateTo.action?navigateTo=Enroll1

So, my guess is there is something with your current configuration
(application server, environment, etc.)

PS: FYI the latest release of Struts 2 is 2.2.3.1  (see
http://struts.apache.org/2.2.3.1/index.html)

[1] http://struts.apache.org/2.2.3/docs/struts-2-maven-archetypes.html
Maurizio Cucchiara



On 8 September 2011 14:19, JOSE L MARTINEZ-AVIAL  wrote:
> I just have been able to replicate it on a blank Strus2 application
> (Struts.2.2.3) I just added a package and a JSP to have something to
> navigate to, and it is showing the same error message.
>
> 2011/9/8 JOSE L MARTINEZ-AVIAL 
>
>> Hi,
>> I just added a very simple package to my app to test this. The package is
>> defined as follows:
>>
>>     
>>         
>>             
>>
>>                 NavigateTo
>>                 Enroll1
>>             
>>         
>>         
>>             /WEB-INF/jsp/test.jsp
>>         
>>     
>>
>>    It's still failing when I use that action. Any thoughts?
>>
>> 2011/9/8 
>>
>> Humm, I think I'm going to duplicate the two actions and go step by step
>>> taking out my own additions(as you said Tiles and get back to the default
>>> stack) and see on what moment it works fine. I'll let you know.
>>>
>>> Thanks
>>>
>>> JL
>>> Sent via BlackBerry from T-Mobile
>>>
>>> -Original Message-
>>> From: Maurizio Cucchiara 
>>> Sender: maurizio.cucchi...@gmail.com
>>> Date: Thu, 8 Sep 2011 10:44:36
>>> To: Struts Users Mailing List
>>> Reply-To: "Struts Users Mailing List" 
>>> Subject: Re: Struts 2 WW-1714: "Using the Redirect Action Result with
>>>  parameters to the target action causes an OGNL warning" still fails
>>>
>>> Please forget my last mail, I mixed up the action name with the param
>>> name.
>>> Anyway I have been able to test your specific use case, using the
>>> blank webapp, and it works like a charm (that is without throwing any
>>> exception).
>>> So, I guess we need to know some further details.
>>> Also, could you try to change the result type from tiles to dispatcher
>>> (the default value), in order to exclude that is something related to
>>> tiles.
>>>
>>> Maurizio Cucchiara
>>>
>>>
>>>
>>> On 7 September 2011 20:35, JOSE L MARTINEZ-AVIAL 
>>> wrote:
>>> >  eco.login.navigate-to.screen
>>>
>>> -
>>> 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: Struts 2 WW-1714: "Using the Redirect Action Result withparameters to the target action causes an OGNL warning" still fails

2011-09-08 Thread JOSE L MARTINEZ-AVIAL
I just have been able to replicate it on a blank Strus2 application
(Struts.2.2.3) I just added a package and a JSP to have something to
navigate to, and it is showing the same error message.

2011/9/8 JOSE L MARTINEZ-AVIAL 

> Hi,
> I just added a very simple package to my app to test this. The package is
> defined as follows:
>
> 
> 
> 
>
> NavigateTo
> Enroll1
> 
> 
> 
> /WEB-INF/jsp/test.jsp
> 
> 
>
>It's still failing when I use that action. Any thoughts?
>
> 2011/9/8 
>
> Humm, I think I'm going to duplicate the two actions and go step by step
>> taking out my own additions(as you said Tiles and get back to the default
>> stack) and see on what moment it works fine. I'll let you know.
>>
>> Thanks
>>
>> JL
>> Sent via BlackBerry from T-Mobile
>>
>> -Original Message-
>> From: Maurizio Cucchiara 
>> Sender: maurizio.cucchi...@gmail.com
>> Date: Thu, 8 Sep 2011 10:44:36
>> To: Struts Users Mailing List
>> Reply-To: "Struts Users Mailing List" 
>> Subject: Re: Struts 2 WW-1714: "Using the Redirect Action Result with
>>  parameters to the target action causes an OGNL warning" still fails
>>
>> Please forget my last mail, I mixed up the action name with the param
>> name.
>> Anyway I have been able to test your specific use case, using the
>> blank webapp, and it works like a charm (that is without throwing any
>> exception).
>> So, I guess we need to know some further details.
>> Also, could you try to change the result type from tiles to dispatcher
>> (the default value), in order to exclude that is something related to
>> tiles.
>>
>> Maurizio Cucchiara
>>
>>
>>
>> On 7 September 2011 20:35, JOSE L MARTINEZ-AVIAL 
>> wrote:
>> >  eco.login.navigate-to.screen
>>
>> -
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>>
>


Re: Struts 2 WW-1714: "Using the Redirect Action Result withparameters to the target action causes an OGNL warning" still fails

2011-09-08 Thread JOSE L MARTINEZ-AVIAL
Hi,
I just added a very simple package to my app to test this. The package is
defined as follows:




NavigateTo
Enroll1



/WEB-INF/jsp/test.jsp



   It's still failing when I use that action. Any thoughts?

2011/9/8 

> Humm, I think I'm going to duplicate the two actions and go step by step
> taking out my own additions(as you said Tiles and get back to the default
> stack) and see on what moment it works fine. I'll let you know.
>
> Thanks
>
> JL
> Sent via BlackBerry from T-Mobile
>
> -Original Message-
> From: Maurizio Cucchiara 
> Sender: maurizio.cucchi...@gmail.com
> Date: Thu, 8 Sep 2011 10:44:36
> To: Struts Users Mailing List
> Reply-To: "Struts Users Mailing List" 
> Subject: Re: Struts 2 WW-1714: "Using the Redirect Action Result with
>  parameters to the target action causes an OGNL warning" still fails
>
> Please forget my last mail, I mixed up the action name with the param name.
> Anyway I have been able to test your specific use case, using the
> blank webapp, and it works like a charm (that is without throwing any
> exception).
> So, I guess we need to know some further details.
> Also, could you try to change the result type from tiles to dispatcher
> (the default value), in order to exclude that is something related to
> tiles.
>
> Maurizio Cucchiara
>
>
>
> On 7 September 2011 20:35, JOSE L MARTINEZ-AVIAL  wrote:
> >  eco.login.navigate-to.screen
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


Re: Struts 2 WW-1714: "Using the Redirect Action Result withparameters to the target action causes an OGNL warning" still fails

2011-09-08 Thread jlmagc
Humm, I think I'm going to duplicate the two actions and go step by step taking 
out my own additions(as you said Tiles and get back to the default stack) and 
see on what moment it works fine. I'll let you know.

Thanks

JL
Sent via BlackBerry from T-Mobile

-Original Message-
From: Maurizio Cucchiara 
Sender: maurizio.cucchi...@gmail.com
Date: Thu, 8 Sep 2011 10:44:36 
To: Struts Users Mailing List
Reply-To: "Struts Users Mailing List" 
Subject: Re: Struts 2 WW-1714: "Using the Redirect Action Result with
 parameters to the target action causes an OGNL warning" still fails

Please forget my last mail, I mixed up the action name with the param name.
Anyway I have been able to test your specific use case, using the
blank webapp, and it works like a charm (that is without throwing any
exception).
So, I guess we need to know some further details.
Also, could you try to change the result type from tiles to dispatcher
(the default value), in order to exclude that is something related to
tiles.

Maurizio Cucchiara



On 7 September 2011 20:35, JOSE L MARTINEZ-AVIAL  wrote:
>  eco.login.navigate-to.screen

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



Re: Struts 2 WW-1714: "Using the Redirect Action Result with parameters to the target action causes an OGNL warning" still fails

2011-09-08 Thread Maurizio Cucchiara
Please forget my last mail, I mixed up the action name with the param name.
Anyway I have been able to test your specific use case, using the
blank webapp, and it works like a charm (that is without throwing any
exception).
So, I guess we need to know some further details.
Also, could you try to change the result type from tiles to dispatcher
(the default value), in order to exclude that is something related to
tiles.

Maurizio Cucchiara



On 7 September 2011 20:35, JOSE L MARTINEZ-AVIAL  wrote:
>  eco.login.navigate-to.screen

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



Re: Struts 2 WW-1714: "Using the Redirect Action Result with parameters to the target action causes an OGNL warning" still fails

2011-09-07 Thread JOSE L MARTINEZ-AVIAL
You mean the param value for actionName? But that's the name of the action
where the user is redirected.


NavigateTo
Enroll
 




eco.login.navigate-to.screen


Any case, I just tried to lower the actionName to "navigateTo", but it gives
the same error(It navigates correctly, is just that annoying log).

Thanks

JL

2011/9/7 Maurizio Cucchiara 

> Does anything change if you change to lower the param name?:
>  navigateTo
> Maurizio Cucchiara
>
>
>
> On 7 September 2011 15:56, JOSE L MARTINEZ-AVIAL  wrote:
> > NavigateTo
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


Re: Struts 2 WW-1714: "Using the Redirect Action Result with parameters to the target action causes an OGNL warning" still fails

2011-09-07 Thread Maurizio Cucchiara
Does anything change if you change to lower the param name?:
 navigateTo
Maurizio Cucchiara



On 7 September 2011 15:56, JOSE L MARTINEZ-AVIAL  wrote:
> NavigateTo

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



Struts 2 WW-1714: "Using the Redirect Action Result with parameters to the target action causes an OGNL warning" still fails

2011-09-07 Thread JOSE L MARTINEZ-AVIAL
Hi,
  I'm having some issues with this bug. Apparently it was fixed on 2.1.8,
but I've tested both with 2.1.8 and 2.2.3, and it still givin an error
message when I use a result like the following:


NavigateTo
Enroll
 

It gives the following error:

2011-09-07 09:51:42,408 DEBUG
org.apache.struts2.dispatcher.ServletRedirectResult  - Caught OgnlException
while setting property 'navigateTo' on type
'org.apache.struts2.dispatcher.ServletActionRedirectResult'.
Caught OgnlException while setting property 'navigateTo' on type
'org.apache.struts2.dispatcher.ServletActionRedirectResult'. - Class:
ognl.ObjectPropertyAccessor
File: ObjectPropertyAccessor.java
Method: setProperty
Line: 166 - ognl/ObjectPropertyAccessor.java:166:-1
at
com.opensymphony.xwork2.ognl.OgnlUtil.internalSetProperty(OgnlUtil.java:412)
at
com.opensymphony.xwork2.ognl.OgnlUtil.setProperty(OgnlUtil.java:160)
at
com.opensymphony.xwork2.ognl.OgnlReflectionProvider.setProperty(OgnlReflectionProvider.java:91)
at
com.opensymphony.xwork2.ObjectFactory.buildResult(ObjectFactory.java:232)
at
com.opensymphony.xwork2.DefaultActionInvocation.createResult(DefaultActionInvocation.java:220)
at
com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:367)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:277)
at
weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
[...]
at
weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: ognl.NoSuchPropertyException:
org.apache.struts2.dispatcher.ServletActionRedirectResult.navigateTo
at
ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:166)
at
com.opensymphony.xwork2.ognl.accessor.ObjectAccessor.setProperty(ObjectAccessor.java:27)
at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2245)
at ognl.ASTProperty.setValueBody(ASTProperty.java:127)
at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220)
at ognl.SimpleNode.setValue(SimpleNode.java:301)
at ognl.Ognl.setValue(Ognl.java:737)
at com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:209)
at
com.opensymphony.xwork2.ognl.OgnlUtil.internalSetProperty(OgnlUtil.java:405)
... 67 more


Any idea?

TIA

Jose Luis