[
https://issues.apache.org/jira/browse/WW-4131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13802722#comment-13802722
]
Hudson commented on WW-4131:
----------------------------
SUCCESS: Integrated in Struts2-JDK6 #822 (See
[https://builds.apache.org/job/Struts2-JDK6/822/])
WW-4131 Polishes JavaDoc a bit (lukaszlenart: rev 1534943)
*
/struts/struts2/trunk/core/src/main/java/org/apache/struts2/impl/PrefixBasedActionProxyFactory.java
WW-4131 Polishes JavaDoc a bit (lukaszlenart: rev 1534942)
*
/struts/struts2/trunk/core/src/main/java/org/apache/struts2/impl/PrefixBasedActionProxyFactory.java
WW-4131 Polishes JavaDoc a bit (lukaszlenart: rev 1534938)
*
/struts/struts2/trunk/core/src/main/java/org/apache/struts2/impl/PrefixBasedActionProxyFactory.java
WW-4131 Implements new ActionProxyFactory to cooperate with
PrefixBasedActionMapper (lukaszlenart: rev 1534936)
*
/struts/struts2/trunk/core/src/main/java/org/apache/struts2/impl/PrefixBasedActionProxyFactory.java
*
/struts/struts2/trunk/core/src/main/java/org/apache/struts2/impl/StrutsActionProxyFactory.java
* /struts/struts2/trunk/core/src/main/resources/struts-default.xml
*
/struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/DefaultActionProxyFactory.java
> RestActionProxyFactory is handling all requests with PrefixBasedActionMapper
> ----------------------------------------------------------------------------
>
> Key: WW-4131
> URL: https://issues.apache.org/jira/browse/WW-4131
> Project: Struts 2
> Issue Type: Bug
> Components: Plugin - REST
> Affects Versions: 2.3.12, 2.3.14, 2.3.15
> Reporter: Felipe Lorenz
> Assignee: Lukasz Lenart
> Priority: Minor
> Fix For: 2.3.16
>
>
> Using the following configuration:
> {code:xml}
> <constant name="struts.mapper.class"
> value="org.apache.struts2.dispatcher.mapper.PrefixBasedActionMapper"/>
> <constant name="struts.mapper.prefixMapping"
> value=":rest,/ajax:struts,/login:struts"/>
> {code}
> Is expected that when I request the following url
> http://xxxxxxxx.com/ajax/anyThingHere, struts action proxy should handle this
> call. But instead, RestActionProxyFactory is handling this call.
> But the RestActionProxyFactory class has a if, and every time the namespace
> attribute is injected with "/ajax" value. So the condition always is
> redirected to the rest plugin handler and not to the struts default.
> Here is my ActionProxyFactory implementation:
> {code:java}
> public class CustomActionProxyFactory extends RestActionProxyFactory {
> @Override
> public ActionProxy createActionProxy(String namespace, String actionName,
> String methodName, Map<String, Object> extraContext, boolean executeResult,
> boolean cleanupContext) {
> RestActionProxyFactory p = new RestActionProxyFactory();
> p.setContainer(container);
> if ("/ajax".equals(namespace)) {
> p.setNamespace("/idealogic");
> }
> return p.createActionProxy(namespace, actionName, methodName,
> extraContext, executeResult, cleanupContext);
> }
> }
> {code}
> By some reason, it fixed the origin behaviour.
> The begin of this issue was that <s:action> tag was rendering the action
> result, even with executeResult = false, which is the default value.
> Another observation was that, changing the flush attribute value, the result
> is rendered in different parts of the html.
--
This message was sent by Atlassian JIRA
(v6.1#6144)