You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "McGregor, Chuckles" <mc...@llnl.gov> on 2017/01/17 23:45:57 UTC
migrating 2.3.17 to 2.5.8 s:url works differently
In our current 2.3.17 app we have working in s:urls in the form of <s:url var="remoteurl" action="jsonGenericGrid?gridType=ANL" />
But generate the message is no Action mapped for namespace [/anl] and action name [sonGenericGrid] associated where the jsp is anl/grid.jsp with version 2.5.8
I worked around the issue by changing the url to <s:url var="remoteurl" action="jsonGenericGrid?gridType=ANL" namespace="/" />
Is this a bug or the way things work in 2.5.8?
Re: migrating 2.3.17 to 2.5.8 s:url works differently
Posted by Lukasz Lenart <lu...@apache.org>.
2017-01-18 18:17 GMT+01:00 McGregor, Chuckles <mc...@llnl.gov>:
> My mistake it is 2.3.30.
Ok, now it makes sense :)
> On 1/17/17, 11:44 PM, "Lukasz Lenart" <lu...@apache.org> wrote:
>
> Struts 2.3.17? There was no such release, you are using unstable test
> build which could have bugs (that's why it wasn't promoted to be an
> official release, a GA)
>
> http://struts.apache.org/downloads.html#PriorReleases
>
> 2017-01-18 0:45 GMT+01:00 McGregor, Chuckles <mc...@llnl.gov>:
> > In our current 2.3.17 app we have working in s:urls in the form of <s:url var="remoteurl" action="jsonGenericGrid?gridType=ANL" />
> > But generate the message is no Action mapped for namespace [/anl] and action name [sonGenericGrid] associated where the jsp is anl/grid.jsp with version 2.5.8
And maybe that's the issue, a typo "[sonGenericGrid]" ? ^^
> > I worked around the issue by changing the url to <s:url var="remoteurl" action="jsonGenericGrid?gridType=ANL" namespace="/" />
> > Is this a bug or the way things work in 2.5.8?
>
> Not sure if I get it right - you have a <s:url/> inside a <s:form/>
> where the form is defined in a namespace "/anl", right? If so, the
> <s:url/> will inherit the namespace from parent or will use the
> current namespace if not specified - that's how it works all the time.
Anyway, I cannot reproduce the mentioned behaviour, <s:url/> inherits
the current namespace if attribute "namespace" was not defined.
Regards
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: migrating 2.3.17 to 2.5.8 s:url works differently
Posted by "McGregor, Chuckles" <mc...@llnl.gov>.
My mistake it is 2.3.30.
On 1/17/17, 11:44 PM, "Lukasz Lenart" <lu...@apache.org> wrote:
Struts 2.3.17? There was no such release, you are using unstable test
build which could have bugs (that's why it wasn't promoted to be an
official release, a GA)
http://struts.apache.org/downloads.html#PriorReleases
2017-01-18 0:45 GMT+01:00 McGregor, Chuckles <mc...@llnl.gov>:
> In our current 2.3.17 app we have working in s:urls in the form of <s:url var="remoteurl" action="jsonGenericGrid?gridType=ANL" />
> But generate the message is no Action mapped for namespace [/anl] and action name [sonGenericGrid] associated where the jsp is anl/grid.jsp with version 2.5.8
> I worked around the issue by changing the url to <s:url var="remoteurl" action="jsonGenericGrid?gridType=ANL" namespace="/" />
> Is this a bug or the way things work in 2.5.8?
Not sure if I get it right - you have a <s:url/> inside a <s:form/>
where the form is defined in a namespace "/anl", right? If so, the
<s:url/> will inherit the namespace from parent or will use the
current namespace if not specified - that's how it works all the time.
Here is a similar issue but in Portlet environment
https://issues.apache.org/jira/browse/WW-3769
Just one remark - the DOJO Plugin is deprecated and it isn't available
in 2.5.x branch, I hope you don't dependent on it.
Regards
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: migrating 2.3.17 to 2.5.8 s:url works differently
Posted by Lukasz Lenart <lu...@apache.org>.
Struts 2.3.17? There was no such release, you are using unstable test
build which could have bugs (that's why it wasn't promoted to be an
official release, a GA)
http://struts.apache.org/downloads.html#PriorReleases
2017-01-18 0:45 GMT+01:00 McGregor, Chuckles <mc...@llnl.gov>:
> In our current 2.3.17 app we have working in s:urls in the form of <s:url var="remoteurl" action="jsonGenericGrid?gridType=ANL" />
> But generate the message is no Action mapped for namespace [/anl] and action name [sonGenericGrid] associated where the jsp is anl/grid.jsp with version 2.5.8
> I worked around the issue by changing the url to <s:url var="remoteurl" action="jsonGenericGrid?gridType=ANL" namespace="/" />
> Is this a bug or the way things work in 2.5.8?
Not sure if I get it right - you have a <s:url/> inside a <s:form/>
where the form is defined in a namespace "/anl", right? If so, the
<s:url/> will inherit the namespace from parent or will use the
current namespace if not specified - that's how it works all the time.
Here is a similar issue but in Portlet environment
https://issues.apache.org/jira/browse/WW-3769
Just one remark - the DOJO Plugin is deprecated and it isn't available
in 2.5.x branch, I hope you don't dependent on it.
Regards
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org