not found the actionForm name in action configure

sky000 07-01-16

Hi,各位兄弟

我在SimpleJdonFrameworkTest源码项目下面增加了一个简单的message模型相关内容进行测试
list成功了
但是其他action总是报错如下:not found the actionForm name in action configure;
但是我在struts的config文件中确实进行配置了的

sky000
2007-01-16 23:29

我的配置如下:
jdonframework.xml中:
...

<model key="ID" class ="com.jdon.framework.test.model.Message">
<actionForm name=
"messageForm"/>
<handler>
<service ref=
"messageService">
<getMethod name=
"getMessage" />
<createMethod name=
"createMessage" />
<updateMethod name=
"updateMessage" />
<deleteMethod name=
"deleteMessage" />
</service>
</handler>
</model>
</models>
<services>
<pojoService name=
"testService" class="com.jdon.framework.test.service.TestServicePOJOImp"/>
<pojoService name=
"messageService" class="com.jdon.framework.test.service.MessageServiceImpl"/>
pojoService name=
"constants" class="com.jdon.framework.test.Constants">
<constructor value=
"java:/TestDS"/>
</pojoService>
</services>


...
=======================================================
struts-config.xml中:
...

<form-beans>
...
<form-bean name="messageForm" type="com.jdon.framework.test.web.MessageActionForm" />
<form-bean name=
"messageListForm" type="com.jdon.strutsutil.ModelListForm" />
</form-beans>
...
<action name=
"messageForm" path="/messageAction" type="com.jdon.strutsutil.ModelViewAction"
scope=
"request" validate="false">
<forward name=
"create" path="/message.jsp" />
<forward name=
"edit" path="/message.jsp" />
</action>

<action name=
"messageForm" path="/messageSaveAction" type="com.jdon.strutsutil.ModelSaveAction"
scope=
"request" validate="true" input="/message.jsp">
<forward name=
"success" path="/messageResult.jsp" />
<forward name=
"failure" path="/messageResult.jsp" />
</action>
<action name=
"messageListForm" path="/messageListAction" type="com.jdon.framework.test.web.MessageListAction" scope="request">
<forward name=
"success" path="/messageList.jsp" />
</action>

...

请问各位一下
我的配置哪里错了啊?
实在没有找出啊


[该贴被sky000于2007-01-16 23:31修改过]

sky000
2007-01-16 23:43

再就是:
我访问的action确实是:messageAction

我出错时候访问的地址:
http://localhost:8080/testJdon/messageAction.do

greenteazsh
2007-01-17 15:23

sky000大侠,你好,我最近也在看SimpleJdonFrameworkTest,我用的是Tomcat和MySql,但是用http://127.0.0.1/testWeb/userAction.do的时候总是出错,插不到数据库中,你能让我看看你的数据源配置文件吗,我的邮箱是greentea05@126.com,谢谢了啊

sky000
2007-01-18 23:05

我是直接下载的整体包 包括jboss、mysql和相应的应用代码
没有更改过任何data source相关配置文件

sky000#gmail.com