2016-07-06 13:22 GMT+02:00 Vidula Hasaranga <vhasara...@isa.ae>:
> No, I am not using getters, but some simple methods like searchUser(),
> searchUserForUsername(), etc. Even the getRole() given as an example is not
> a getter method, but it query the DB as per the logged in user to get roles.

By convention it is a getter - it doesn't matter how did you implement it.

> Can it be an incompatibility with struts version and tomcat
> since struts.enable.DynamicMethodInvocation is not set to true even though
> it set in the struts configurations by me as I found by config-browser
> plugin.
>
> Just as a note that I am using codebehind still, not the convention plugin.
>
>
> Error I am getting in console ::
>
> 06-Jul-2016 16:50:12.629 WARNING [http-nio-7070-exec-7]
> com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn Could not
> find action or result:
> /test-app/aa/bb/ui/reports!searchInitialActualReportRegionsYears.action
>  There is no Action mapped for namespace [/aa/bb/ui] and action name
> [reports!searchInitialActualReportRegionsYears] associated with context

This means that `struts.enable.DynamicMethodInvocation` is false and
it's because you are using old DTD, instead of this

<?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.3.dtd";>

you must set 2.3, like this

<?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache.org/dtds/struts-2.3.dtd";>


Regards
-- 
Ɓukasz
+ 48 606 323 122 http://www.lenart.org.pl/

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

Reply via email to