struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "J Alex (JIRA)" <j...@apache.org>
Subject [jira] Created: (WW-3138) DWRValidator not working
Date Sun, 24 May 2009 18:14:42 GMT
DWRValidator not working
------------------------

                 Key: WW-3138
                 URL: https://issues.apache.org/struts/browse/WW-3138
             Project: Struts 2
          Issue Type: Bug
          Components: Other
    Affects Versions: 2.1.6
         Environment: Struts2.1.6, tested on Tomcat 6 and WAS 6.1
            Reporter: J Alex


There are 2 issues , first the DWR validator is not functional  - i.e it fails with a NPE
when creating the action proxy.

ActionProxy proxy = actionProxyFactory.createActionProxy(inv, namespace, mapping.getName(),
mapping.getMethod(), true, true);

This can be resolved by using : 

ActionProxy proxy = actionProxyFactory.createActionProxy(namespace, mapping.getName(), mapping.getMethod(),
ctx); 

instead.

Second, the mapping.getMethod() in the above call returns null; shouldn't it be the "method"
attribute specified in Action Mapping? 

Discussion on this issue is at http://www.nabble.com/DWRValidator-not-working-in-Struts-2.1.6-to23215316.html#a23215316





-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message