You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ravi Mangalagiri <ra...@gmail.com> on 2007/03/01 15:01:10 UTC

Redirect Action Result - Need directions to configure my app to use ActionMapper

<package name="queryReports" extends="struts-default"
namespace="/queryReport/ajax">
     <action name="auditLogQueryReport" class="
com.xyz.customersolutions.ess.webapp.action.common.BaseAction">
          <result name="success" type="redirect-action">
               <param name="actionName">runReportReport!show</param>
               <param name="namespace">/queryReport/ajax</param>
               <param name="queryReportBeanName">auditLogQueryReport</param>
          </result>
     </action>

     <action name="runReportReport" class="
com.xyz.customersolutions.ess.webapp.action.queryreport.QueryReportAction">
          <result name="success">/pages/ajax/query.jsp</result>
     </action>
</package>

When I call <s:action namespace="/queryReport/ajax"
name="auditLogQueryReport" executeResult="true" />, I get the following
error

WARNING 03/01/2007 08:51:50 AM [OgnlUtil.internalSetProperty()] Caught
OgnlException while setting property 'queryReportBeanName' on type '
org.apache.struts2.dispatcher.ServletActionRedirectResult'.
SEVERE  03/01/2007 08:51:50 AM [ActionComponent.executeAction()] Could not
execute action: /queryReport/ajax/auditLogQueryReport

Please need guidance to use ActionMapper to make the above action work.

Thanks
Ravi