hey there i have a problem here when i try making an application using spring webflow (simple app.)
the error i get is :
state 'ProcessRequest' of flow 'myFlow'; nested exception is org.springframework.webflow.util.DispatchMethodInv oker$MethodLookupException: Unable to resolve action method with name 'ProcessRequest' and signature 'public org.springframework.webflow.Event ProcessRequest(interface org.springframework.webflow.RequestContext);'; make sure the method name is correct and such a public method is defined on targetClass com._4s_.banks.web.action.MyFlowAction; nested exception is java.lang.NoSuchMethodException: com._4s_.banks.web.action.MyFlowAction.ProcessRequ est(org.springframework.webflow.RequestContext)
my code is here:
webFlow.xml
--------------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE webflow PUBLIC "-//SPRING//DTD WEBFLOW//EN"
"http://www.springframework.org/dtd/spring-webflow.dtd">
<webflow id="myFlow" start-state="displayForm">
<view-state id="displayForm" view="form2">
<entry>
<action bean="myFlowAction" method="setupForm" />
</entry>
<transition on="submit" to="ProcessRequest">
<action bean="myFlowAction" method="bindAndValidate" />
</transition>
</view-state>
<action-state id="ProcessRequest">
<action bean="myFlowAction" />
<transition on="success" to="finish" />
</action-state>
<end-state id="finish" view="form" />
</webflow>
Action Code is :
---------------------
public class MyFlowAction extends FormAction {
public MyFlowAction() {
setFormObjectName("bank");
setFormObjectClass(Bank.class);
}
public Event ProcessRequest(RequestContext context) throws Exception {
return success();
}
}
and my servlet looks like this :
-------------------------------------------
<bean id="myFlow"
class="org.springframework.webflow.config.XmlFlowF actoryBean">
<property name="location" value="/WEB-INF/myFlow.xml" />
</bean>
<bean id="myFlowAction"
class="com._4s_.banks.web.action.MyFlowAction" />
<bean name="myApp"
class="org.springframework.webflow.mvc.FlowControl ler" />
so y do i keep getting this error??? knowing that i use the same myflow.xml with some modifications to use "ERVACON" jars insted of spring webflow pure jars
thanks alot for your time


Reply With Quote